Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Table lookup

Ive a currency table with historical exchange rates for the year.
The months, Jan, Feb, Mar€¦. are column labels and the currencies
CZK, DKK, EUR, HUF€¦(sorted) are row labels and the different monthly
exchange rate in the intersections.
Id like to find the rate for EUR in April but VLOOKUP or HLOOKUP
only gives me a REF error. It seems that it doesnt accept other
that 1, 2 ,3, 4€¦. as column labels in Vlookup or as row labels in HLookup.
Strange, I think Ive played with these two ones before and it worked OK.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Table lookup

Use INDEX/MATCH to give intersection of Month and Currency

=INDEX($B$2:$M$10,MATCH($J$2,$A$2:$A$10,0),MATCH($ J$1,$B$1:$M$1,0))

j2=Currency Code
J1=Date
b2:M10 contain currency rates

HTH

"Mats Samson" wrote:

Ive a currency table with historical exchange rates for the year.
The months, Jan, Feb, Mar€¦. are column labels and the currencies
CZK, DKK, EUR, HUF€¦(sorted) are row labels and the different monthly
exchange rate in the intersections.
Id like to find the rate for EUR in April but VLOOKUP or HLOOKUP
only gives me a REF error. It seems that it doesnt accept other
that 1, 2 ,3, 4€¦. as column labels in Vlookup or as row labels in HLookup.
Strange, I think Ive played with these two ones before and it worked OK.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Table lookup

Tools/Options Calculations - Allow Labels in Formulas.

Mike F
"Toppers" wrote in message
...
Use INDEX/MATCH to give intersection of Month and Currency

=INDEX($B$2:$M$10,MATCH($J$2,$A$2:$A$10,0),MATCH($ J$1,$B$1:$M$1,0))

j2=Currency Code
J1=Date
b2:M10 contain currency rates

HTH

"Mats Samson" wrote:

I've a currency table with historical exchange rates for the year.
The months, Jan, Feb, Mar.. are column labels and the currencies
CZK, DKK, EUR, HUF.(sorted) are row labels and the different monthly
exchange rate in the intersections.
I'd like to find the rate for EUR in April but VLOOKUP or HLOOKUP
only gives me a REF error. It seems that it doesn't accept other
that 1, 2 ,3, 4.. as column labels in Vlookup or as row labels in
HLookup.
Strange, I think I've played with these two ones before and it worked OK.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Table lookup

Thanks Toppers,
it worked fine, even looking up in the currency table in an external file.
Cheers
Mats

"Toppers" wrote:

Use INDEX/MATCH to give intersection of Month and Currency

=INDEX($B$2:$M$10,MATCH($J$2,$A$2:$A$10,0),MATCH($ J$1,$B$1:$M$1,0))

j2=Currency Code
J1=Date
b2:M10 contain currency rates

HTH

"Mats Samson" wrote:

Ive a currency table with historical exchange rates for the year.
The months, Jan, Feb, Mar€¦. are column labels and the currencies
CZK, DKK, EUR, HUF€¦(sorted) are row labels and the different monthly
exchange rate in the intersections.
Id like to find the rate for EUR in April but VLOOKUP or HLOOKUP
only gives me a REF error. It seems that it doesnt accept other
that 1, 2 ,3, 4€¦. as column labels in Vlookup or as row labels in HLookup.
Strange, I think Ive played with these two ones before and it worked OK.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Table lookup

Thank you for thefeedback.

"Mats Samson" wrote:

Thanks Toppers,
it worked fine, even looking up in the currency table in an external file.
Cheers
Mats

"Toppers" wrote:

Use INDEX/MATCH to give intersection of Month and Currency

=INDEX($B$2:$M$10,MATCH($J$2,$A$2:$A$10,0),MATCH($ J$1,$B$1:$M$1,0))

j2=Currency Code
J1=Date
b2:M10 contain currency rates

HTH

"Mats Samson" wrote:

Ive a currency table with historical exchange rates for the year.
The months, Jan, Feb, Mar€¦. are column labels and the currencies
CZK, DKK, EUR, HUF€¦(sorted) are row labels and the different monthly
exchange rate in the intersections.
Id like to find the rate for EUR in April but VLOOKUP or HLOOKUP
only gives me a REF error. It seems that it doesnt accept other
that 1, 2 ,3, 4€¦. as column labels in Vlookup or as row labels in HLookup.
Strange, I think Ive played with these two ones before and it worked OK.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Table lookup

Thanks Mike,
but it won't help! The option is already ticked.
It seems curious that a row or column indexes must have 1,2 ,3 or A, B, C
labels
to work. Excel is usually more intellegent!
But anyway, Toppers proposal solved it.

"Mike Fogleman" wrote:

Tools/Options Calculations - Allow Labels in Formulas.

Mike F
"Toppers" wrote in message
...
Use INDEX/MATCH to give intersection of Month and Currency

=INDEX($B$2:$M$10,MATCH($J$2,$A$2:$A$10,0),MATCH($ J$1,$B$1:$M$1,0))

j2=Currency Code
J1=Date
b2:M10 contain currency rates

HTH

"Mats Samson" wrote:

I've a currency table with historical exchange rates for the year.
The months, Jan, Feb, Mar.. are column labels and the currencies
CZK, DKK, EUR, HUF.(sorted) are row labels and the different monthly
exchange rate in the intersections.
I'd like to find the rate for EUR in April but VLOOKUP or HLOOKUP
only gives me a REF error. It seems that it doesn't accept other
that 1, 2 ,3, 4.. as column labels in Vlookup or as row labels in
HLookup.
Strange, I think I've played with these two ones before and it worked OK.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup data in a variable table & retrieve data from a pivot table Shawna Excel Worksheet Functions 3 October 10th 08 11:11 PM
table lookup pm Excel Discussion (Misc queries) 8 September 24th 08 09:50 AM
Lookup table help please sandy Excel Discussion (Misc queries) 0 November 15th 07 04:04 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
lookup or table, not sure what to do [email protected] Excel Worksheet Functions 2 February 17th 05 09:36 PM


All times are GMT +1. The time now is 06:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"