+ Reply to Thread
Results 1 to 3 of 3

Idex number relating to name

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Cardiff
    MS-Off Ver
    2003
    Posts
    123

    Idex number relating to name

    I have a list of names in column A and I would like to create an index number based on these names.

    Due to other information on the sheet each name is repeated several times but I would like to assign the same index number to the same name. So that for instance, if there are 500 records but only 130 names thre would only be 130 index numbers.
    Last edited by Back2Basics; 02-12-2009 at 10:31 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446

    Re: Idex number relating to name

    Hi,

    1. First, use advanced filter to produce a unique values list

    Select the range of names

    Data > filter > advanced filter

    Copy to another location

    Unique records only


    2. Then apply the index numbers to the list eg 1 -130 as you have suggested.

    3. Use index and match (or vlookup) to match the names in the original list to the names in the filtered list with index numbers assigned.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Idex number relating to name

    Are the names listed sequentially ?

    If not... let's insert some headers such that A1 & B1 are headers and names listed in A2 to A501 (assuming 500 records)... then

    B2: 
    =IF($A2="","",LOOKUP(10^10,CHOOSE({1,2},MAX($B$1:$B1)+1,VLOOKUP($A2,$A$1:$B1,2,0))))
    Copy down to B500

+ 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