sheet is called 'work'
stock id           start weight 200705  200706  return  end wt  country
code
AUSAHA1           8.32% #N/A            11.10           AUS
AUSAZH1           5.22%                 -1.53           AUS
AUSBUU1           5.39%                 -0.27           AUS
AUSADW1          4.08%                  0.52            AUS


sheet is called fx
Date    AUS     AUT
199704  0.782   0.082
199705  0.761   0.083
199706  0.749   0.082
199707  0.745   0.077
199708  0.735   0.079


i would like to get the fx rate for each stock id given its country
and the yearmonth i'm investigating. ideally the macro will populate
'200705' and '200706' from the .csv file i open then
it will lookup the fx rates for the given month and the given country.

the proble is this:
=vlookup(country code, 'fx', column number,false)
country code is a cell that is easily referenced and 'fx' is stored as
a name, but the COLUMN NUMBER IS FIXED. i would like this to be
dynamic.  can i do a vlookup within a vlookup where the column number
is linked to the column header in the sheet 'work' (its the yearmonth
which can be used in the fx matrix)??????????


--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 5,200 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to