PC Review


Reply
Thread Tools Rate Thread

vlookup function to return the cell address of the found item

 
 
skiing
Guest
Posts: n/a
 
      9th Jul 2008
I have a one column list of data (around 3,000 items) - and I am using
the vlookup function to determine if an item is in that list using
something like the formula below:

=if(iserror(vlookup(A1,D13000,1,false)),"not in list","in list")

I would like to know if I can have this function return the cell
address or row number to indicate the location of the item in the list
- is this possible?

Thank you for your time and assistance
 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      9th Jul 2008
You can return the (relative) row number using MATCH, like this:

=if(iserror(vlookup(A1,D13000,1,false)),"not in
list",MATCH(A1,D13000,0))

As your range starts with D1, the relative row is the same as the actual
row, but if your range started with D10, for example, you would have to add
9 on to the result to get the actual row.

Hope this helps.

Pete


"skiing" <(E-Mail Removed)> wrote in message
news:b63fa45e-fa88-40e9-b260-(E-Mail Removed)...
>I have a one column list of data (around 3,000 items) - and I am using
> the vlookup function to determine if an item is in that list using
> something like the formula below:
>
> =if(iserror(vlookup(A1,D13000,1,false)),"not in list","in list")
>
> I would like to know if I can have this function return the cell
> address or row number to indicate the location of the item in the list
> - is this possible?
>
> Thank you for your time and assistance



 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      9th Jul 2008

Look in the help index for MATCH

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"skiing" <(E-Mail Removed)> wrote in message
news:b63fa45e-fa88-40e9-b260-(E-Mail Removed)...
>I have a one column list of data (around 3,000 items) - and I am using
> the vlookup function to determine if an item is in that list using
> something like the formula below:
>
> =if(iserror(vlookup(A1,D13000,1,false)),"not in list","in list")
>
> I would like to know if I can have this function return the cell
> address or row number to indicate the location of the item in the list
> - is this possible?
>
> Thank you for your time and assistance


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If no value found in vLookup, I need to return a NULL to the Cell Ben Microsoft Excel Discussion 4 15th Nov 2010 06:51 PM
How to return the address of a cell found via VLOOKUP? artisdepartis Microsoft Excel Programming 3 6th Jul 2007 11:54 AM
return address of found value with vlookup sybmathics Microsoft Excel Discussion 3 14th Jan 2007 04:57 PM
vlookup to return cell position as to where result was found =?Utf-8?B?Um9jaw==?= Microsoft Excel Programming 7 13th Mar 2005 01:13 AM
vlookup to return the cell positioning where the criteria is found =?Utf-8?B?Um9jaw==?= Microsoft Excel Programming 2 12th Mar 2005 04:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:59 PM.