VBA solution for currency change in different columns

mpatino

Board Regular
Joined
Jul 8, 2009
Messages
82
Hi guys,

wondering if someone could help me get a VBA solution for my currency exchange to different currencies. I am travelling to different countries so I am expending money in different currencies, however, I'd like to have a column where I can see how much did I pay in USD. This is an example of what am I doing:

Date$£
Nov-07-1435.942,030.47
Nov-08-1410.71605.12
Nov-08-1410.7117.00
Nov-09-1429.0015,776.00

<tbody>
</tbody>

So, I'd like to have a VBA to help me convert to USD in column B no matter if I enter a value in columns C, D or E

Thank you,
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try in this way:

ABCDE
1£
2Fx Rates $54456.49611.5873
3
4Date$£
511/07/20142030.47
611/08/2014605.12
711/08/201417
811/09/201415776

<tbody>
</tbody>

I have calculated the Fx Rates dividing the amounts in your table. For example the Fx Rate $/£ 17/10.71 = 1.5873 ecc

In Cell B5 copy the following formula:

{=INDEX(C5:E5,MATCH("*",IF(ISNUMBER(C5:E5),TEXT(C5:E5,"General")),0))/INDEX($C$2:$E$2,MATCH("*",IF(ISNUMBER(C5:E5),TEXT(C5:E5,"General")),0))}

enter it with Ctrl+Shift+Enter.

Then scroll down for all the $ amounts that you want to calculate.
 
Upvote 0

Forum statistics

Threads
1,215,757
Messages
6,126,693
Members
449,331
Latest member
smckenzie2016

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