Match 2 values in a table and output a figure if true

baggers719

Board Regular
Joined
Sep 18, 2009
Messages
104
I'm trying to lookup the value in column B and F in sheet1 and output the value in column I in sheet2 if these match in columns D and E in sheet2.


Sheet 1

B is Zone
F is Weight

Use this calculator for Pre-Paid DME Shipping Price Calculations
Shipping Box Dimensions: (round to 2nd decimal point)
Customer Shipping Zip Code:Zone:LengthWidthHeightDimensional WeightShipping Cost
3478788.28.26.23Not Available
3478788.28.26.23Not Available
79124520201227Not Available
3478788.28.26.23Not Available

Sheet2

D is Zone
E is Weight
I is cost

Standard
74​
FedEx SmartPost
1​
8​
5.8743
0​
$10.98​
Standard
74​
FedEx SmartPost
2​
8​
5.8743
0​
$10.98​
Standard
74​
FedEx SmartPost
3​
8​
6.3344
0​
$11.84​
Standard
74​
FedEx SmartPost
4​
8​
6.93895
0​
$12.97​
Standard
74​
FedEx SmartPost
5​
8​
7.4793
0​
$13.98​
Standard
74​
FedEx SmartPost
6​
8​
7.74145
0​
$14.47​
Standard
74​
FedEx SmartPost
7​
8​
8.2283
0​
$15.38​
Standard
74​
FedEx SmartPost
8​
8​
8.8382
0​
$16.52​
Standard
74​
FedEx SmartPost
9​
8​
20.20695
0​
$37.77​
Standard
74​
FedEx SmartPost
10​
8​
20.20695
0​
$37.77​

So I want to output cost (I) in Sheet1 where the the zone and cost match in sheet2. For example, shipping cost (column G) in sheet1 where zone is 8 and weight is 3 should read $11.84
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
How about

+Fluff.xlsm
ABCDEFG
1Use this calculator for Pre-Paid DME Shipping Price Calculations
2Shipping Box Dimensions: (round to 2nd decimal point)
3Customer Shipping Zip Code:Zone:LengthWidthHeightDimensional WeightShipping Cost
43478788.28.26.2311.84
53478788.28.26.2311.84
679124520201227NA
7NA
8NA
9NA
103478788.28.26.2311.84
Sheet1
Cell Formulas
RangeFormula
G4:G10G4=IFERROR(INDEX(Sheet2!$I$2:$I$11,MATCH(B4&"|"&F4,INDEX(Sheet2!$E$2:$E$11&"|"&Sheet2!$D$2:$D$11,0),0)),"NA")
 
Upvote 0
Thank you! It almost worked, and maybe it is me trying to translate the formula you gave into my spreadsheet. I get an error for when zone is 5 and weight is 27 though. It should be $31.32. I put some screenshots of my actual tabs below to maybe help further.
Capture1.JPG
Capture2.JPG
 
Upvote 0
You need to swap the B6&"|"F6 round.
From the data you originally showed along with the example you gave I assumed that the Zone & Weights were in E & D not D & E
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

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