+ Reply to Thread
Results 1 to 6 of 6

List all the row numbers that this value appears in

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    178

    List all the row numbers that this value appears in

    Hi there,

    I hope someone can help me with this problem.

    I have a list of 4,000+ rows and in a seperate worksheet I have a list of values. I know how many times each value appears in the list but I need to know which rows they appear on. If each just appeared once then I could do this using match but as they appear several times and I need to know every row they appear on I do not know the best of going about this.

    Could anybody help me with this please?

    Many thanks in advance.
    Last edited by Jessica.Bush; 02-22-2011 at 10:06 AM.

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: List all the row numbers that this value appears in

    Hi,

    This link has an attachment that does a findall and place the found info in a listbox.
    It's the zipped attachment.(The code will loop thru all worksheets)
    You may be able to modify the code and his may help.

    http://www.excelforum.com/excel-prog...h-options.html
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: List all the row numbers that this value appears in

    The FindAll function and code is from Chip Pearson.

    http://www.cpearson.com/excel/FindAll.aspx

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: List all the row numbers that this value appears in

    Hi there,

    Take a look at the attached workbook - Sheet 2 displays the row numbers where the values on Sheet 1 occur. It may be possible to adapt this workbook to suit your specific needs.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-24-2009
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    178

    Re: List all the row numbers that this value appears in

    Hi everyone,

    Thank you for all of your responses, it is much appreciated.

    Greg, that was great, thanks, i went down this line in the and with a couple of amendments to suit my data it works perfectly!

    Thanks again.

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: List all the row numbers that this value appears in

    Hi Jessica,

    Many thanks for your feedback - I'm very pleased that I was able to help.

    Regards,

    Greg M

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1