Embedded Vlookup for values within Date Range --- Help!

Mgess

New Member
Joined
Sep 10, 2015
Messages
2
Hello! Please comment if you have an idea about how to do this!

I am trying to convert foreign sales prices dating back 10 years into USD amounts using a vlookup function embedded within an If function (I also tried a Lookup function) to return the appropriate conversion rate from the appropriate year. The one I am using keeps returning incorrect values. I have approximately 10,000 observations, so i really want to automate this.




ABCDEFGHI
1DateSales PriceCurrencyCurrency ConversionPrice (USD)FromToUSD/HKD
24/6/15106,250HKD???D2*106,2509/1/148/31/157.75
34/6/1562,500HKD???D3*62,5009/1/138/31/147.73
47/16/1440,000GBP???D4*40,000
5FromToUSD/GBP
69/1/148/31/15.649
79/1/138/31/14.603

<tbody>
</tbody>
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I was using the following formula (the formula on my actual spreadsheet refers to different cells. This formula refers to my example above):

=If(C2="USD",1,If(C2="HKD",Lookup(A2,G2:H3,I2:I3),If(C2="GBP",Lookup(A2,G6:H7,I6:I7),0)))
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,840
Members
449,471
Latest member
lachbee

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