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

#### Nat27

##### New Member
 Box Number L W H SKU Length Width Height Correct Box 1 30.5 30.5 30.5 40 40 40 2 2 40.6 40.6 40.6 50 3 3 50.8 50.8 50.8 150 15 15 4 4 150 15 15 30 30 30 1 5 N/A N/A N/A 85 15 33 5 6 120 30 30 1 7 85.3 15 33 1 8 N/A N/A N/A 1 9 N/A N/A N/A 1 10 N/A N/A N/A 1 11 30 30 200 1 12 164 24 24 1 13 43.2 43.2 60 1 15 52.5 47.5 52.5 1 16 60 60 30 1 17 100 20 100 1 18 38 88 38 1 19 85 60 85 1

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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

#### Fluff

##### MrExcel MVP, Moderator
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

#### Nat27

##### New Member
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?

#### Fluff

##### MrExcel MVP, Moderator
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")``

Replies
8
Views
102
Replies
2
Views
237
Replies
8
Views
179
Replies
19
Views
361
Replies
4
Views
109

1,128,025
Messages
5,628,196
Members
416,299
Latest member
Kxs00301

### 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.

### Which adblocker are you using?

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

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