+ Reply to Thread
Results 1 to 3 of 3

Formula to create ID number based on adjacent column

  1. #1
    Forum Contributor
    Join Date
    10-03-2015
    Location
    North Carolina, USA
    MS-Off Ver
    Office 365
    Posts
    167

    Formula to create ID number based on adjacent column

    I am looking for the simplest way to create unique ID numbers for tasks. Here is what I have:

    Column B contains a list of tasks such as TMF setup, TMF maintenance, Initial Country-Specific ICF Development, CDP Collection and Review
    In column A, I want a formula that will number each of the tasks in column B, but if the same task repeats multiple times, I want the ID number to be the same for those repeated tasks.

    For example:

    1| TMF setup
    2| TMF Maintenance
    3| Initial Country-Specific ICF Development
    3| Initial Country-Specific ICF Development
    3| Initial Country-Specific ICF Development
    4| CDP Collection and Review
    4| CDP Collection and Review

    Thanks for all help.

  2. #2
    Registered User
    Join Date
    10-15-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    75

    Re: Formula to create ID number based on adjacent column

    Hi,

    You can use this (it assumes your 'list of tasks' is within range B2:B12):

    =COUNTIF($B$2:$B$12,"<="&B2)

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,452

    Re: Formula to create ID number based on adjacent column

    Try in A2:

    Please Login or Register  to view this content.
    Drag down
    Attached Images Attached Images
    Quang PT

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to sum numbers but only if the number is zero in adjacent column
    By maym in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2020, 08:58 PM
  2. [SOLVED] Formula to have a number in a column go to zero, if adjacent cell goes to zero
    By BryanHCR in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-02-2019, 04:45 PM
  3. Replies: 5
    Last Post: 02-14-2019, 02:20 PM
  4. [SOLVED] Create Unique List based on matching value in adjacent column
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-06-2016, 01:29 PM
  5. [SOLVED] macro to autofil formula based on number of rows on adjacent column
    By kramtelbuab in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2013, 08:28 PM
  6. [SOLVED] Increment a number based on the text in the adjacent column
    By lday75 in forum Excel General
    Replies: 7
    Last Post: 07-27-2012, 03:42 PM
  7. Autofill a column based on number in adjacent column
    By fbonetti in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-08-2011, 04:19 PM

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