Excel addin for a series of rates!?

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi All...if I could get this to work (not even sure on the approach) the entire office would have a much easier day at work :)

There is a database of rates, stored in an excel table. There are dates (in the format MMYY) and corresponding currencies (100 in total)

I would like to have a custom function where I could type

=RATELOOKUP("EUR","0911")

And the corresponding rate will appear

The excel file with the rates is stored read only in a locked folder on the network so the format and layout will not be affected

How could I macro this? - then turn the result into an addin so that everybody can take advantage of this as it is causing HUGE headache :)
 
Hmmm ok guys thanks for trying

So what would be the best approach?

Use ADO and SQL to pull the table?

Add to a collection (for each currency?)
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
If you were to write a VLOOKUP or similar formula to retrieve the rate for EUR for 0911 what would it look like if the source workbook is closed?
 
Upvote 0
The people in the office are not very technical with basic excel skills

Most do not know VLOOKUP

So I would like to be able to build the plugin/addin/user workbook so that everybody can simply type

=RATELOOKUP("EUR","0910") and it will return the number

Is there a simpler way of doing this?

:eeek:
 
Upvote 0
I understand what you are trying to do. I wasn't suggesting that your users use VLOOOKUP. What I need to know is what formula you would use to look up the rate for EUR 0910 (assuming you know how). Perhaps then we can turn it into a UDF.
 
Upvote 0
Sorry this is the formula I would use (should be on a previous reply)

The rate table has a name, and cell A1 contains the word "ANCHOR"

=INDEX(PROTECTED.xlsx!LookupTable[#All],MATCH("1210",PROTECTED.xlsx!LookupTable[[#All],[ANCHOR]],0),MATCH("EUR",PROTECTED.xlsx!LookupTable[#Headers],0))
 
Upvote 0
I am not sure how to use a formula on a closed workbook... hmmm...

Without structed references it would look at A1:E100

The row match uses A:A, the column match uses 1:1
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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