+ Reply to Thread
Results 1 to 3 of 3

Get location of the first occurence & last occurence of value in a set of duplicate entry

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Post Get location of the first occurence & last occurence of value in a set of duplicate entry

    Hi -

    I have a set of names in column A, it is listed alphabetically and names are duplicated several times, in column B is the list of all names... I want to get the location of both the first and last occurence of each names listed in column A base on the names in column B and select the entire row.

    Please see attached file for reference. Thank you...

    Hudas
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Get location of the first occurence & last occurence of value in a set of duplicate e

    You could use the formula:
    =MATCH(B1,A$1:A$23,0) in cell C1 and =MATCH(B1,A$1:A$23,1) in cell C2 and copy them down for each row in b1:b3.
    Of course the same thing can be done with macro.

    Regards,
    Antonio

  3. #3
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Get location of the first occurence & last occurence of value in a set of duplicate e

    I get the idea.. Thank you very much! have a good day!!

+ 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