currency conversion macro

G

Guest

I want to create a macro that can check the currency and convert it to
others. For example ;
Original
A B C
John USD 100
Peter EURO 200
Charles HKD 700

Result
A B C D E
John USD 100 HKD 780
Peter EURO 2000 HKD 2000
Charles HKD 700 HKD 700

Thanks in advance.
Bond
 
G

Guest

You can do it with a lookup function

=lookup(b3,{"USD","EURO","HKD",c3*123,c3*456,c3*789}
where 123 is the conversion ratte for USD
where 456 is the conversion ratte for EURO
where 789 is the conversion ratte for HKD
 
G

Guest

The macro is below. Put the function in column E3 ( or change th erow
number to the appropriate row). Also change the conversion rates i put in
(123, 456, 789) to the correct values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top