Vlookup

ARatn

New Member
Joined
Sep 21, 2014
Messages
3
SHEET 1
ProvinceSalesTransportDivision
NS88,84$ WEB
BC79,55$ WEC
QC238,68$ WEC
ON71,97$ WEB
AB19,99$ AMA
ON7 196,00$ WEC
NS121,28$ WEB
QC110,45$ WEB

SHEET 2
ProvinceAMAWEBWEC
AB9,959,9514,95
BC9,959,9514,95
MB9,959,9514,95
NB9,959,9514,95
NL303030
NS9,959,9514,95

===========================
Hi, If total sales in sheet 1 (col 2) is less than $40 than it should pick the transport cost from sheet 2 with matching province and division from corresponding province and web on sheet 2 from one of three columns (AMA,WEB,WEC) on sheet 2.

Thank you for help on Sunday evening.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
20,903
Office Version
  1. 365
Platform
  1. Windows
Try...

Sheet1!C2, copied down:

=IF(B2<40,INDEX(Sheet2!$B$2:$D$7,MATCH(A2,Sheet2!$A$2:$A$7,0),MATCH(D2,Sheet2!$B$1:$D$1,0)),0)

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,191,036
Messages
5,984,273
Members
439,881
Latest member
Amitoj95

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
Top