Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need a function that finds a value in a table range and returns the cell number

HI, i need a function that finds a value in a table range and returns
the next cell value.
For example

Got this list
A B C
1 RED 120
2 BLUE 10
3 BLACK 230
4 PINK 330
5 WHITE 500
6


If want to find black...so the function should return 230. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Need a function that finds a value in a table range and returnsthe cell number

=VLOOKUP("BLACK",A1:B5, 2,FALSE)

Alan Beban

Tony wrote:
HI, i need a function that finds a value in a table range and returns
the next cell value.
For example

Got this list
A B C
1 RED 120
2 BLUE 10
3 BLACK 230
4 PINK 330
5 WHITE 500
6


If want to find black...so the function should return 230. Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Need a function that finds a value in a table range and returns the cell number

Tony,

Use the VLOOKUP function. For example,

=VLOOKUP("Black",A1:B10,2,FALSE)

See help for more details about VLOOKUP.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Tony" wrote in message
om...
HI, i need a function that finds a value in a table range and returns
the next cell value.
For example

Got this list
A B C
1 RED 120
2 BLUE 10
3 BLACK 230
4 PINK 330
5 WHITE 500
6


If want to find black...so the function should return 230. Thanks



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
Function to put worksheet name in cell returns text, need number Pennyc Excel Discussion (Misc queries) 5 September 21st 09 05:44 PM
Function that returns the page number a cell falls on Don-in-Kent-UK Excel Worksheet Functions 1 May 15th 06 05:36 PM
Need a formula that finds the last used cell in a range samfw Excel Worksheet Functions 4 February 6th 06 03:30 PM
Vlookup finds a blank, but returns a zero - HELP! flummoxed Excel Discussion (Misc queries) 6 January 18th 05 03:15 PM
Which @function finds the mean of a number? Coffeecoco930 Excel Worksheet Functions 5 December 9th 04 03:11 AM


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