Ignoring values on a different sheet

awd1963

New Member
Joined
Aug 24, 2023
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
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.

IgnoreExample.xlsx
BCDEF
2ProductMax SA Tank of Product in Cell B4MSB of Product in Cell B4Next Product with MBS That Is Not Product in Cell B4MBS of Next Product That Is Not Product in Cell B4
3Want 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?
4D200151500#N/A#N/A
Sheet1
Cell Formulas
RangeFormula
C4C4=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)))
D4D4=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)))
E4E4=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)))
F4F4=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
BCDEFG
2ProductDensity (mg/ml)Volume (ml)MBS (mg)SA (cm2)MBS/SA
3A10005050000100500.00
4A1000100100000150666.67
5A1000150150000200750.00
6B9505047500100475.00
7B95010095000150633.33
8B950150142500200712.50
9C10005050000100500.00
10C1000100100000150666.67
11C1000150150000200750.00
12D10105050500100505.00
13D1010100101000150673.33
14D1010150151500200757.50
15E9755048750100487.50
16E97510097500150650.00
17E975150146250200731.25
Sheet2
Cell Formulas
RangeFormula
E3:E17E3=D3*C3
G3:G17G3=E3/F3


Thanks for the help.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Here is as close as I have gotten to ignoring values.

I put everything on one sheet for now to make it simpler to navigate.

IgnoreExample.xlsx
BCDEFGHIJKLMNOP
2ProductMax SA Tank of Product in Cell B4MBS of Product in Cell B4Next Product with MBS That Is Not Product in Cell B4MBS of Next Product That Is Not Product in Cell B4ProductDensity (mg/ml)Volume (ml)MBS (mg)SA (cm2)MBS/SA
3A200150000C150000A10005050000100500.00
4B200142500C150000A1000100100000150666.67
5C200150000B142500A1000150150000200750.00
6D200151500B142500B9505047500100475.00
7E200146250B142500B95010095000150633.33
8B950150142500200712.50
9C10005050000100500.00
10C1000100100000150666.67
11C1000150150000200750.00
12D10105050500100505.00
13D1010100101000150673.33
14D1010150151500200757.50
15E9755048750100487.50
16E97510097500150650.00
17E975150146250200731.25
Sheet1
Cell Formulas
RangeFormula
C3:C7C3=IF(B3="","Need to enter a product that is in Column K first in cell B4",INDEX($O$3:$O$17,MATCH(MAXIFS($P$3:$P$17,$K$3:$K$17,B3),$P$3:$P$17,0)))
D3:D7D3=IF(B3="","Need to enter a product that is in Column K first in cell B4",INDEX($N$3:$N$17,MATCH(MAXIFS($P$3:$P$17,$K$3:$K$17,B3),$P$3:$P$17,0)))
E3:E7E3=IF(B3="","Need to enter a product that is in Column K first in cell B4",INDEX(FILTER($K$3:$K$17,($K$3:$K$17<>B3)),MATCH(MIN($N$3:$N$17),$N$3:$N$17,0)))
F3:F7F3=IF(B3="","Need to enter a product that is in Colum K first in cell B4",INDEX($N$3:$N$17,MATCH(1,($K$3:$K$17=E3)*($O$3:$O$17=C3),0)))
N3:N17N3=M3*L3
P3:P17P3=N3/O3




Rows 5, 6, and 7 give me the correct response in Column E but Row 3 should provide B in Column E and Row 4 should provide E in Column E.

Any help that can be provided would be great.

Also, I am trying to stay away from VBA as much as possible.

Thanks
 
Upvote 0
This has been resolved by another person on the MS Excel forums.
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.
Be sure to follow & read the link at the end of the rule too!

Please post a link to the question you asked on the other forum.
If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,952
Members
449,095
Latest member
nmaske

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