Table Formulas

econnell

New Member
Joined
Oct 11, 2024
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am looking for help on a formula that is adaptive to other cell references. For instance in image, if D9 is 25, D10 is 1 and D11 is 10 then I want the cell D12 to return "yes" if the batch size is between 156 and 219 and "no" if it is outside that range. The cells driving the criteria are D9 which can be 25, 50, 100 or 250, then D11 which is how many vessels and then the ratio either @10 or @40.

1741640418319.png


1741640288366.png
 
Perhaps something like this?

ABCDEFGHIJKLMNOPQ
1
2
3
4
5
6
7
8Batch Size (mg)400
9Container Size (ml)25
10No vessels3
11Coupling ratio (mg/ml40
12Within scope?No
13
14
152550100250
16Min@10Max@10Min@10Max@10Min@10Max@10Min@10Max@10
17One156219300400300400300400
18Two312438600900600900600900
19Three468656900130090013009001300
20
21Min@40Max@40Min@40Max@40Min@40Max@40Min@40Max@40
22One624875120017001200170012001700
23Two12481750250035002500350025003500
24Three18722625370052003700520037005200
Sheet1
Cell Formulas
RangeFormula
D12D12=IF(D8=MEDIAN(D8,OFFSET(INDEX(D17:Q24,D10+IF(D11=10,0,5),MATCH(D9,D15:P15,)),,,,2)),"Yes","No")


If you are using Excel 2016, I'm pretty sure you'll need to array-enter this formula (i.e. CTRL-Shift-Enter).
 
Upvote 0
Solution
Perhaps something like this?

ABCDEFGHIJKLMNOPQ
1
2
3
4
5
6
7
8Batch Size (mg)400
9Container Size (ml)25
10No vessels3
11Coupling ratio (mg/ml40
12Within scope?No
13
14
152550100250
16Min@10Max@10Min@10Max@10Min@10Max@10Min@10Max@10
17One156219300400300400300400
18Two312438600900600900600900
19Three468656900130090013009001300
20
21Min@40Max@40Min@40Max@40Min@40Max@40Min@40Max@40
22One624875120017001200170012001700
23Two12481750250035002500350025003500
24Three18722625370052003700520037005200
Sheet1
Cell Formulas
RangeFormula
D12D12=IF(D8=MEDIAN(D8,OFFSET(INDEX(D17:Q24,D10+IF(D11=10,0,5),MATCH(D9,D15:P15,)),,,,2)),"Yes","No")


If you are using Excel 2016, I'm pretty sure you'll need to array-enter this formula (i.e. CTRL-Shift-Enter).
Amazing! Thank you so much!! The only thing that doesnt work when I tested its limits is the maximum values show No for being within scope.

1741697837126.png
1741697883779.png
1741697845832.png


The lower limit works just fine as that is still within scope.

1741697916951.png
 
Upvote 0
It's impossible to tell what's going on based on just a picture.

But my first guess is that the upper batch size limits are not integer values 2,188 and 219 as displayed, but slightly lower values?
 
Upvote 0
Yes that was it! the cell was pulling from a calculation but only displaying a 'false' integer. Thank you!!
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top