+ Reply to Thread
Results 1 to 3 of 3

Excel formula to increment an appended number

  1. #1
    Forum Contributor
    Join Date
    07-01-2009
    Location
    Maine, USA
    MS-Off Ver
    Excel 2016
    Posts
    161

    Excel formula to increment an appended number

    I have a spreadsheet that looks like the attached image. I also have a module with the following code:

    Please Login or Register  to view this content.
    In cell B60, I would like to take take the first letter of each word in E60 ('PA' in this instance), and then see if there is 'PA1' in column E. If not, use 'PA1', if so, then check 'PA2' until it finds a PA# that's not used.

    I've started with the below, but am unsure how to best accomplish what I'm trying to do.

    Please Login or Register  to view this content.
    Any help would be greatly appreciated!
    Attached Images Attached Images

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Excel formula to increment an appended number

    I'm being lazy and don't feel like typing out a bunch of data. Could you attach a workbook, please?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Excel formula to increment an appended number

    Maybe try at B5 and drag down

    =LEFT(E5)&MID(E5,FIND(" ",E5)+1,1)&COUNTIF(E$5:E5,LEFT(E5)&"*"&MID(E5,FIND(" ",E5)+1,1)&"*")

+ 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] Need To Increment row number in Formula when copying
    By Archichuk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-07-2018, 04:04 AM
  2. Replies: 8
    Last Post: 03-15-2012, 02:27 PM
  3. Increment Certain Number of Columns in Formula
    By BigLa in forum Excel General
    Replies: 6
    Last Post: 12-18-2011, 07:53 PM
  4. Formula Required to increment value after N number of rows
    By bakshi.ishan in forum Excel General
    Replies: 6
    Last Post: 10-01-2011, 03:04 PM
  5. Increment number by itself formula?
    By zumsing in forum Excel General
    Replies: 1
    Last Post: 08-21-2008, 05:21 PM
  6. [SOLVED] What does the '#' character mean when appended to a number?
    By Marilyn Kilian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2006, 01:15 PM
  7. [SOLVED] Files opening with a number appended
    By Rich May in forum Excel General
    Replies: 1
    Last Post: 03-10-2005, 02:06 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