Looking for help creating a formula to match products to the right sized box

Nat27

New Member
Joined
Jan 26, 2021
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
  2. Web
Box NumberLWHSKULengthWidthHeightCorrect Box
130.530.530.54040402
240.640.640.6503
350.850.850.815015154
415015153030301
5N/AN/AN/A8515335
612030301
785.315331
8N/AN/AN/A1
9N/AN/AN/A1
10N/AN/AN/A1
1130302001
1216424241
1343.243.2601
1552.547.552.51
166060301
17100201001
183888381
198560851

I'm Looking to create a formula that will match products to the correct box/ and if there's no correct box to say match, the formula I have used only seems to work up to box 4, unsure why this. any help would be most appreciated
=IFERROR(INDEX(A$2:A$19,MATCH(1,(B$2:B$19>=F2)*(C$2:C$19>=G2)*(D$2:D$19>=H2),0),0))
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
How about
Excel Formula:
=IFERROR(INDEX(A$2:A$19,MATCH(1,($B$2:$B$19<>"N/A")*(B$2:B$19>=F2)*(C$2:C$19>=G2)*(D$2:D$19>=H2),0)),0)
The problem is that text strings are larger than numbers, so it wont see beyond a row with N/A
 
Upvote 0
How about
Excel Formula:
=IFERROR(INDEX(A$2:A$19,MATCH(1,($B$2:$B$19<>"N/A")*(B$2:B$19>=F2)*(C$2:C$19>=G2)*(D$2:D$19>=H2),0)),0)
The problem is that text strings are larger than numbers, so it wont see beyond a row with N/A
Thank you, I have changed the n/a to 0 on the spreadsheet so then the formula would work, is there a way to get the formula to so no match if there's not box that fits that product?
 
Upvote 0
How about
Excel Formula:
=IFERROR(INDEX(A$2:A$19,MATCH(1,($B$2:$B$19<>"N/A")*(B$2:B$19>=F2)*(C$2:C$19>=G2)*(D$2:D$19>=H2),0)),"No match")
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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