Hi, I am new to this so please be patient.
Want E4 to return the next product with the smallest MBS for the same SA.
For the example, D is the product on this sheet but the product with the min MBS for the same SA is B on Sheet 2. How to get B displayed from the information on Sheet 2?
This same information is also in the Excel cell. Cell E4 is setup as an array.
Thanks for the help.
Want E4 to return the next product with the smallest MBS for the same SA.
For the example, D is the product on this sheet but the product with the min MBS for the same SA is B on Sheet 2. How to get B displayed from the information on Sheet 2?
This same information is also in the Excel cell. Cell E4 is setup as an array.
IgnoreExample.xlsx | |||||||
---|---|---|---|---|---|---|---|
B | C | D | E | F | |||
2 | Product | Max SA Tank of Product in Cell B4 | MSB of Product in Cell B4 | Next Product with MBS That Is Not Product in Cell B4 | MBS of Next Product That Is Not Product in Cell B4 | ||
3 | Want E4 to return the next product with the smallest MBS for the same SA. For the example, D is the product on this sheet but the product with the min MBS for the same SA is B on Sheet 2. How to get B displayed from the information on Sheet 2? | ||||||
4 | D | 200 | 151500 | #N/A | #N/A | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C4 | C4 | =IF(B4="","Need to enter a product that is on Sheet 2 first",INDEX(Sheet2!$F$3:$F$17,MATCH(MAXIFS(Sheet2!$G$3:$G$17,Sheet2!$B$3:$B$17,B4),Sheet2!G3:G17,0))) |
D4 | D4 | =IF(B4="","Need to enter a product that is on Sheet 2 first",INDEX(Sheet2!$E$3:$E$17,MATCH(MAXIFS(Sheet2!$G$3:$G$17,Sheet2!$B$3:$B$17,B4),Sheet2!G3:G17,0))) |
E4 | E4 | =IF(B4="","Need to enter a product that is on Sheet 2 first",INDEX(Sheet2!$B$3:$B17,MATCH(1,(Sheet2!F3:F17=Sheet1!C4)*(Sheet2!B3:B17<>B4)*(MIN(Sheet2!$E$3:$E$17)),0))) |
F4 | F4 | =IF(B4="","Need to enter a product that is on Sheet 2 first",INDEX(Sheet2!E3:E17,MATCH(1,(Sheet2!B3:B17=E4)*(Sheet2!F3:F17=C4),0))) |
Press CTRL+SHIFT+ENTER to enter array formulas. |
IgnoreExample.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | |||
2 | Product | Density (mg/ml) | Volume (ml) | MBS (mg) | SA (cm2) | MBS/SA | ||
3 | A | 1000 | 50 | 50000 | 100 | 500.00 | ||
4 | A | 1000 | 100 | 100000 | 150 | 666.67 | ||
5 | A | 1000 | 150 | 150000 | 200 | 750.00 | ||
6 | B | 950 | 50 | 47500 | 100 | 475.00 | ||
7 | B | 950 | 100 | 95000 | 150 | 633.33 | ||
8 | B | 950 | 150 | 142500 | 200 | 712.50 | ||
9 | C | 1000 | 50 | 50000 | 100 | 500.00 | ||
10 | C | 1000 | 100 | 100000 | 150 | 666.67 | ||
11 | C | 1000 | 150 | 150000 | 200 | 750.00 | ||
12 | D | 1010 | 50 | 50500 | 100 | 505.00 | ||
13 | D | 1010 | 100 | 101000 | 150 | 673.33 | ||
14 | D | 1010 | 150 | 151500 | 200 | 757.50 | ||
15 | E | 975 | 50 | 48750 | 100 | 487.50 | ||
16 | E | 975 | 100 | 97500 | 150 | 650.00 | ||
17 | E | 975 | 150 | 146250 | 200 | 731.25 | ||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E3:E17 | E3 | =D3*C3 |
G3:G17 | G3 | =E3/F3 |
Thanks for the help.