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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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