+ Reply to Thread
Results 1 to 3 of 3

Formula to copy cell from source column and add +1 for each duplicate found.

  1. #1
    Registered User
    Join Date
    06-24-2016
    Location
    USA
    MS-Off Ver
    Excel for MAC Office 365
    Posts
    18

    Formula to copy cell from source column and add +1 for each duplicate found.

    Formula to copy cell from source column and add +1 for each duplicate found in the column. When the value is the source column changes the sequential count should restart.
    Source New Column
    DDD DDD-1
    DDD DDD-2
    DDD DDD-3
    DDD DDD-4
    DDD DDD-5
    XXX XXX-1
    XXX XXX-2
    XXX XXX-3
    XXX XXX-4
    XXX XXX-5
    XXX XXX-6
    XXX XXX-7
    XXX XXX-8
    XXX XXX-9
    XXX XXX-10
    XXX XXX-11
    XXX XXX-12
    XXX XXX-13
    XXX XXX-14
    XXX XXX-15
    XXX XXX-16
    XXX XXX-17
    YYY YYY-1
    YYY YYY-2
    YYY YYY-3
    YYY YYY-4
    YYY YYY-5
    YYY YYY-6
    YYY YYY-7
    YYY YYY-8

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula to copy cell from source column and add +1 for each duplicate found.

    How about
    =A2&"-"&COUNTIFS(A$2:A2,A2)

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Formula to copy cell from source column and add +1 for each duplicate found.

    If your data is in A, then in B: =A2&"-"&COUNTIF(A$1:A1,A1)+1
    Click the * to say thanks.

+ 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] Search for value in row. if found, copy column formulas into found column range
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2017, 10:42 AM
  2. [SOLVED] Macro to copy cell from the next column if a certain word is found
    By prvimoon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2016, 07:18 PM
  3. Replies: 8
    Last Post: 06-04-2013, 04:36 AM
  4. Replies: 1
    Last Post: 06-01-2013, 01:27 AM
  5. Is a Macro going to be the best way to copy Column range if value cell D87 is found
    By extremecorvette in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2011, 12:00 PM
  6. Copy source cell down a column
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-20-2010, 05:05 PM
  7. user box options if cell entry is a duplicate found in a table column
    By humboldtguy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-24-2009, 02:04 PM

Tags for this Thread

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