Index match with multiple criteria and zip codes

zeppidoo

New Member
Joined
Jan 5, 2017
Messages
8
I am trying to use a table to determine a rate for a specific Zip code with freight class.
BKBLBMBNBOBPBQBRBSBT

<tbody>
</tbody>
ZipClass AMC MC30050010002000500010000

<tbody>
</tbody>

08753175101429.33406.11289.62197.73159.0796.6380.26
08753200101429.33464.13330.99225.97181.79110.4391.73
08753250101429.33580.16413.75282.46227.24138.04114.66
08753300101429.33696.19496.49338.96272.69165.65137.59

<tbody>
</tbody>

So the user puts a zip(CK13) and class(CM39) and weight(CY39) and the formula should find the rate =INDEX('Outbound Rates'!$BO$4:$BT$688503,MATCH($CK$13&$CM$39,INDEX('Outbound Rates'!$BK$4:$BK$688503&'Outbound Rates'!$BL$4:$BL$688503,),0),MATCH($CY39,'Outbound Rates'!$BO$3:$BT$3))
So if the zip is 08753, class is 250, and weight is 500 the result should be 413.75 however it returns a result for a row below that is very similar but still very different. $356.98

87531400101931.783090.062596.242124.841745.931565.791281.47
87531500101931.783862.573245.292656.052182.411957.231601.84
8753250101931.78424.89356.98292.16240.06215.3176.21
8753255101931.78459.65386.19316.07259.71232.9190.62

<tbody>
</tbody>

I have all cells formatted as number and I know it has something to do with the leading zero in 08753
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
The cell where the user puts in the Zip Code (C13), it it formatted the same as the Zip Codes in your table?
Note that you must compare number-to-numbers or text-to-text. Comparing numbers-to-text will not work properly.
And note that numbers really do not have leading zeroes. They can only be formatted to be displayed that way, but they aren't really there (if you go to that cell and look in the formula bar, you can see this).

When in doubt, check to see if they are really the same, i.e. see if this returns TRUE or FALSE:
=C13=address of a zip code cell in your table
 
Upvote 0
I think the problem is the concatenation
See if this works
=INDEX('Outbound Rates'!$BO$4:$BT$688503,MATCH($CK$13&"|"&$CM$39,INDEX('Outbound Rates'!$BK$4:$BK$688503&"!"&'Outbound Rates'!$BL$4:$BL$688503,),0),MATCH($CY39,'Outbound Rates'!$BO$3:$BT$3))
Ctrl+Shift+Enter

M.
 
Upvote 0
Sorry there is a typo in my formula above - the second separator "!" (exclamation mark) should be "|" (pipe) like the first

Maybe this
=INDEX('Outbound Rates'!$BO$4:$BT$688503,MATCH($CK$13&"|"&$CM$39,INDEX('Outbound Rates'!$BK$4:$BK$688503&"|"&'Outbound Rates'!$BL$4:$BL$688503,),0),MATCH($CY39,'Outbound Rates'!$BO$3:$BT$3))

M.
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,653
Members
449,111
Latest member
ghennedy

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