PC Review


Reply
Thread Tools Rate Thread

need vlookup function to return the row number

 
 
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
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      9th Jul 2008
Use =match() instead.

=if(isnumber(match(a1,d1:d3000,0)),match(a1,d1:d3000,0),"No match")

=match() will either return an error (if there's no match) or it'll return an
index into the range. Since your range starts in D1, it'll be the same as the
row.

skiing wrote:
>
> 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


--

Dave Peterson
 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      9th Jul 2008
Why repost? You have answers to your earlier post, 2 hours ago.

Pete

"skiing" <(E-Mail Removed)> wrote in message
news:a6f91650-1df0-414c-ac01-(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
function - find first number in row > 0, return cell column number cate Microsoft Excel Programming 3 19th Apr 2011 10:44 PM
R: Re: function - find first number in row > 0, return cell column number r Microsoft Excel Programming 0 19th Apr 2011 10:44 PM
#N/A in VLookup - Can I use another function that will return 0? =?Utf-8?B?QXJsYQ==?= Microsoft Excel Worksheet Functions 9 30th Jan 2009 08:11 PM
how do i use VLOOKUP to find text and return a number? =?Utf-8?B?cm96YV9qMjAwMg==?= Microsoft Excel Misc 8 15th Aug 2006 12:59 AM
H/VLookup to return a column or row number Lauren Microsoft Excel Worksheet Functions 2 30th Oct 2003 07:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 AM.