+ Reply to Thread
Results 1 to 7 of 7

Help with formula to add prefix letters and -001 for each duplicate number listed.

  1. #1
    Registered User
    Join Date
    05-11-2015
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    58

    Post Help with formula to add prefix letters and -001 for each duplicate number listed.

    Greetings Everyone.

    Any help with the following formula that will help me save time. I am tasked with the following. I have pasted an example of what I am trying to accomplish. I have a list of project numbers. Each project number listed twice is a sub project that is linked to the main project number. I need to create a new proj# keeping the proj# in tack but adding "PGB" in front of it and -001 for each sub project that is linked. So if I have one project# listed then all I need is PFG-17658-001. If a project is listed twice then the only thing that changes is the -001 for the first project # listed then adding a 002 for the second and so on if there was a third entry for a project. Hope this helps. Please let me know if this is not clear.

    My file has thousand of rows so this will be a formula I use and copy straight down.

    Thank you and have a great day!

    Proj # new Proj #
    176589 PGB-176589-001
    176589 PGB-176589-002
    176538 PGB-176538-001
    176345 PGB-176345-001
    176345 PGB-176345-002
    176345 PGB-176345-003
    175478 PGB-175478-001
    175478 PGB-175478-002

    Image1.JPG
    Last edited by mcvideo; 08-28-2018 at 11:23 AM.

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

    Re: Help with formula to add prefix letters and -001 for each duplicate number listed.

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-11-2015
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    58

    Re: Help with formula to add prefix letters and -001 for each duplicate number listed.

    Hi @Fluff13. Testing it out now. I will report back.

  4. #4
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Help with formula to add prefix letters and -001 for each duplicate number listed.

    =COncatenate("PGB-",A1,Countif($A$1:$A1,$A1))

    A1 is the Project number (columnA) $A$1:$A1 $A$1 is the first project number $A1 is the current Project number (as you copy it down - it will reflect A1, A2, A3...)

    if you need the 00 I think =Concatenate("PGB-",A1,Text(Countif($A$1:$A1,$A1),"###"))

    EDIT left out ,"-", before my Text(....
    Last edited by CRIMEDOG; 08-28-2018 at 11:49 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Help with formula to add prefix letters and -001 for each duplicate number listed.

    good job fluff - I am a slow typist :D

  6. #6
    Registered User
    Join Date
    05-11-2015
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    58

    Re: Help with formula to add prefix letters and -001 for each duplicate number listed.

    Quote Originally Posted by Fluff13 View Post
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you for the help.. worked great.

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

    Re: Help with formula to add prefix letters and -001 for each duplicate number listed.

    Glad to help & thanks for the feedback

+ 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 Calculate the Number of Authors Listed Within Brackets in a Range
    By Taisir in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-10-2018, 01:26 AM
  2. Replies: 8
    Last Post: 04-02-2018, 08:26 AM
  3. Prefix number in formula
    By wholly1971 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-19-2016, 12:12 PM
  4. Replies: 1
    Last Post: 05-21-2014, 02:30 PM
  5. Vlook two set of datas but one data has some extra prefix and suffix letters
    By KSQUARE2K6 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-27-2013, 01:37 AM
  6. Check Prefix Duplicate
    By The_Stig in forum Excel General
    Replies: 2
    Last Post: 05-21-2013, 12:48 PM
  7. [SOLVED] how do i prefix a column with letters
    By prefixing columns in forum Excel General
    Replies: 2
    Last Post: 04-28-2005, 09:06 AM

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