VLOOKUP and MATCH question

Jnrrpg11

New Member
Joined
Jun 29, 2017
Messages
28
Hello,

Im trying to figure out a formula but I'm struggling to even describe it to search for it online.

Below I have in Table 1 a list of countries, an invoice amount, and the currency the invoice was in.
In table 2 I have the countries, their native currency and the tax amount.



So i want my Formula to check the Country in table 1 against table 2 and if the currency then matches - apply the tax amount. If not just use the invoice amount.

For example Table 1 Row 3 has a GBP invoice from the UK and because in table 2, UK and GBP coincide the output will be 80 (Invoice amount 100 * tax 0.8) giving the untaxed amount.
In the same example we can see row 5 is in the UK but the invoice is in EURO and therefore the amount should stay 250.

I know if i used MATCH i could get the resulting row in the array(UK = 1, UAE = 3 & Spain = 6) but this is where i think i need VLOOKUP to check the Currancies against each other.

Any help would be appreciated and even a hint of how to research this would be amazing.

Thanks in advance.

Richard
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try:
Code:
=IF(VLOOKUP(A3,$F$2:$H$8,2,0)=C3,VLOOKUP(A3,$F$2:$H$8,3,0)*B3,B3)
 
Upvote 0

Forum statistics

Threads
1,215,432
Messages
6,124,858
Members
449,194
Latest member
HellScout

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