#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Lookup Value

I am trying to lookup a value without using the vlookup or hlookup
functions, as I am unable to. My data range is in A1:D2. I need to find the
corresponding value in row 1 from the lookup_value in row 2.

Example:

45 60 35 79
AA BB CC DD

The lookup_value is CC. I need the result to be 35.

vlookup and hlookup cannot be used in this case. What are my alternatives?

Ruan


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Lookup Value

Try this:

A5 = CC

=INDEX(A1:D1,MATCH(A5,A2:D2,0))

--
Biff
Microsoft Excel MVP


"Ruan" wrote in message
...
I am trying to lookup a value without using the vlookup or hlookup
functions, as I am unable to. My data range is in A1:D2. I need to find the
corresponding value in row 1 from the lookup_value in row 2.

Example:

45 60 35 79
AA BB CC DD

The lookup_value is CC. I need the result to be 35.

vlookup and hlookup cannot be used in this case. What are my alternatives?

Ruan



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Lookup Value

Try this out:
=OFFSET($A$1,0,MATCH("CC",$A$2:$D$2,0)-1)

"Ruan" wrote:

I am trying to lookup a value without using the vlookup or hlookup
functions, as I am unable to. My data range is in A1:D2. I need to find the
corresponding value in row 1 from the lookup_value in row 2.

Example:

45 60 35 79
AA BB CC DD

The lookup_value is CC. I need the result to be 35.

vlookup and hlookup cannot be used in this case. What are my alternatives?

Ruan



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 looks to the prior column if zero appears in the lookup col kenbquik Excel Discussion (Misc queries) 2 March 12th 09 03:41 AM
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 12:58 PM.

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

About Us

"It's about Microsoft Excel"