#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Data Search

Hi all,

Need some help plz. I have a sheet with names in column B and codes in
column C. I want to search a range of cells in column C and return the name
in the adjacent column B if a certain code is entered into Column C. Hope I
am making sense. Example:

B C
John Doe AT-577
Jane Doe AT-598

I need to search column C for "AT-577" and have the result to be "John Doe".
This seems simple but I can't get it to work for the life of me. I have
Excel 2003. Any help is greatly appreciated. Thanks.

Ron
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Data Search

I put the names in C and the codes in B and put this in a cell:

=VLOOKUP("AT-577",B:C,2,FALSE)

This will look in column B for the value AT-577 and return the
corresponding value in column C.

Cheers,
Jason Lepack


Airfive wrote:
Hi all,

Need some help plz. I have a sheet with names in column B and codes in
column C. I want to search a range of cells in column C and return the name
in the adjacent column B if a certain code is entered into Column C. Hope I
am making sense. Example:

B C
John Doe AT-577
Jane Doe AT-598

I need to search column C for "AT-577" and have the result to be "John Doe".
This seems simple but I can't get it to work for the life of me. I have
Excel 2003. Any help is greatly appreciated. Thanks.

Ron


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Data Search

With AT-577 in F1, use the formula
=INDEX($B$1:$B$10,MATCH(F1,$C$1:$C$10,0))

"Airfive" wrote:

Hi all,

Need some help plz. I have a sheet with names in column B and codes in
column C. I want to search a range of cells in column C and return the name
in the adjacent column B if a certain code is entered into Column C. Hope I
am making sense. Example:

B C
John Doe AT-577
Jane Doe AT-598

I need to search column C for "AT-577" and have the result to be "John Doe".
This seems simple but I can't get it to work for the life of me. I have
Excel 2003. Any help is greatly appreciated. Thanks.

Ron

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
Search Data from one Workbook and copy it into another Workbook Matz Excel Discussion (Misc queries) 0 August 4th 06 10:45 AM
Macro question Chris Excel Worksheet Functions 12 July 7th 06 01:23 AM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM


All times are GMT +1. The time now is 05:42 AM.

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"