#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Lookup Question

I am trying to set up the formula for lookup using the assist where I can
fill in the function arguments:

In lookup value, I enter B2 and the correct value is displayed.
In lookup vector, I enter something like "A","B" - the value displayed is
INVALID
In the result vector, I want 1 to display if A is matched and 2 to display
if B is matched. I have entered 1,2 and it shows as "1,2"

What am I doing wrong here?

Thanks,
Barb Reinhardt




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Lookup Question

=LOOKUP(B2,{"A","B"},{1,2})

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Barb Reinhardt" wrote in message
...
I am trying to set up the formula for lookup using the assist where I can
fill in the function arguments:

In lookup value, I enter B2 and the correct value is displayed.
In lookup vector, I enter something like "A","B" - the value displayed is
INVALID
In the result vector, I want 1 to display if A is matched and 2 to display
if B is matched. I have entered 1,2 and it shows as "1,2"

What am I doing wrong here?

Thanks,
Barb Reinhardt






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 problem RD Wirr Excel Worksheet Functions 4 February 8th 06 01:14 PM
Help using lookup function Blackbird Excel Discussion (Misc queries) 9 December 19th 05 11:40 PM
Lookup Type Question carl Excel Worksheet Functions 1 March 8th 05 08:30 PM
Formula Question... LookUP G Excel Discussion (Misc queries) 4 March 7th 05 01:38 AM
Lookup Function Problem seve Excel Discussion (Misc queries) 9 February 28th 05 02:46 AM


All times are GMT +1. The time now is 09:24 PM.

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"