Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Les Les is offline
external usenet poster
 
Posts: 240
Default Cell Content Lookup Function

I have a worksheet of 5 columns and many rows w/ a header row. The contents
will change daily. Col A (unique) is the search key and I want to lookup the
contents in Col B and on.

Example Worksheet

Name Age Sex (Header row)
Brown 42 M
Smith 31 F
Bush 55 M

=ADDRESS(MATCH("Smith",A,0),1,4,TRUE)

will give me the result "A3", which is the correct address for "Brown".

What I really want is the age or sex for brown. I am not having any luck
with Cell (Contents) function. Am I doing this the correct way or there is a
better way of doing it?

Thanks
Les




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Cell Content Lookup Function

Les wrote...
....
Name Age Sex (Header row)
Brown 42 M
Smith 31 F
Bush 55 M

=ADDRESS(MATCH("Smith",A,0),1,4,TRUE)

will give me the result "A3", which is the correct address for "Brown".


Presumably you mean the correct address for Smith.

What I really want is the age or sex for brown. . . .


Why not use

=VLOOKUP("Smith",$A$1:$C$100,2,0) for age

=VLOOKUP("Smith",$A$1:$C$100,3,0) for sex

?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Les Les is offline
external usenet poster
 
Posts: 240
Default Cell Content Lookup Function

Harlan,

Thanks. This works even better.

Les

"Harlan Grove" wrote:

Les wrote...
....
Name Age Sex (Header row)
Brown 42 M
Smith 31 F
Bush 55 M

=ADDRESS(MATCH("Smith",A,0),1,4,TRUE)

will give me the result "A3", which is the correct address for "Brown".


Presumably you mean the correct address for Smith.

What I really want is the age or sex for brown. . . .


Why not use

=VLOOKUP("Smith",$A$1:$C$100,2,0) for age

=VLOOKUP("Smith",$A$1:$C$100,3,0) for sex

?

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
IF function to return date content of another cell lesg46 Excel Worksheet Functions 7 September 10th 08 06:50 PM
is there a function for getting the content of a cell? tzvarza` Excel Worksheet Functions 5 November 12th 05 02:20 PM
How to lookup row # based on content of another column's cell Mr. Jan Park Excel Worksheet Functions 7 November 2nd 05 12:58 AM
lookup cell content in multiple files oldbuffer Excel Worksheet Functions 0 September 13th 05 06:37 PM
IF function - need to evaluate cell content in 2 separate files-#N PBM Excel Worksheet Functions 3 July 5th 05 08:17 AM


All times are GMT +1. The time now is 03:03 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"