All-
I'm really jammed up on this one and need urgent help for a project due today. I have a very large workbook that stores all of our currency information. Basically I need to be able to get a currency exchange rate from a table and run some sort of calculation with that rate. So for instance assume that :
A1 = "USD",
B1 = $100, and
C1 = EUR.
Then column "F" contains the currency pair e.g.
F1=EURUSD and
column "G" contains the exchange rate e.g.
G1=1.31, [F2=JPYUSD, G2=0.0123, F3=GBPUSD, G3=1.5926.....]
In D1 I'd like to calculate the value of $100 in EUR by pulling the exchange rate from the table. So D1 would be =B1/G1.
The problem is that the values of A1 and C1 can be any value i.e. EUR & GBP, AUD & JPY, ....
AND
they can appear on many different worksheets i.e. they won't always be in A1 & C1.
So what I think I need is a UDF (maybe a select case?) where the inputs are "currency1" & "currency2" and then the output pulls the currency rate from the table and allows me to run some sort of calculation with it.
I'm begging for help on this. Thank you very much in advance.
I'm really jammed up on this one and need urgent help for a project due today. I have a very large workbook that stores all of our currency information. Basically I need to be able to get a currency exchange rate from a table and run some sort of calculation with that rate. So for instance assume that :
A1 = "USD",
B1 = $100, and
C1 = EUR.
Then column "F" contains the currency pair e.g.
F1=EURUSD and
column "G" contains the exchange rate e.g.
G1=1.31, [F2=JPYUSD, G2=0.0123, F3=GBPUSD, G3=1.5926.....]
In D1 I'd like to calculate the value of $100 in EUR by pulling the exchange rate from the table. So D1 would be =B1/G1.
The problem is that the values of A1 and C1 can be any value i.e. EUR & GBP, AUD & JPY, ....
AND
they can appear on many different worksheets i.e. they won't always be in A1 & C1.
So what I think I need is a UDF (maybe a select case?) where the inputs are "currency1" & "currency2" and then the output pulls the currency rate from the table and allows me to run some sort of calculation with it.
I'm begging for help on this. Thank you very much in advance.