If and Vlook up for Currency Converter

chikku

New Member
Joined
Feb 26, 2017
Messages
2
Hello,

I have an formula to enter in the FX column rate for the two currency on a given date, for example per below table 1.1 I want to get the FX rate as on date, when I enter USD or AUD on the currency column, I have created one more excel sheet where I have downloaded all the 2016 FX rate for USD and AUD in the other sheet which shows date and FX rate of AUD and USD and the formula I am using is IF(D11=AUD,VLOOKUP(C11,FX!D4:E202,2,FALSE),IF(D11=USD,VLOOKUP(C11,FX!A4:B223,2,FALSE))), I am not sure if it is correct. if any one can help me.

Thanks,

Table 1.1
DateCurrencyFX Rate
01/01/2016USD.11111
01/01/2016AUD.88888
02/08/2016USD.2222
02/08/2016AUD.99999

<tbody>
</tbody>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
That formula would probably result in a #NAME error. You need to put the currency code in "". Also, you should probably fix the lookup range with $. Like this:

=IF(D11="AUD",VLOOKUP(C11,FX!$D$4:$E$202,2,FALSE),IF(D11="USD",VLOOKUP(C11,FX!$A$4:$B$223,2,FALSE)))
 
Last edited:
Upvote 0
That formula would probably result in a #NAME error. You need to put the currency code in "". Also, you should probably fix the lookup range with $. Like this:

=IF(D11="AUD",VLOOKUP(C11,FX!$D$4:$E$202,2,FALSE),IF(D11="USD",VLOOKUP(C11,FX!$A$4:$B$223,2,FALSE)))

Thanks Iliace, it worked.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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