+ Reply to Thread
Results 1 to 5 of 5

Using CONCATENATE and need to increase last digit by 1

  1. #1
    Registered User
    Join Date
    08-24-2010
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    13

    Using CONCATENATE and need to increase last digit by 1

    Good Afternoon!

    I've received a lot of great help from this forum before and i'm hoping someone has a solution

    I'm creating a template that will automatically generate the names of computers on a network

    I have 2 named cells - HOST_PREFIX and HOST_SUFFIX - this is where you enter the names of the computers.

    here's my concatenate formula

    =CONCATENATE(HOST_PREFIX,HOST_SUFFIX,01)

    If i enter CORP in the Host Prefix and then PC in the host suffix it will return the result
    CORPPC1

    I'd like to have it return:
    CORPPC01
    But i've had no luck with that.

    What i REALLY need is the ability to copy/paste or CTRL+DRAG and have it count up, resulting in
    CORPPC01
    CORPPC02
    CORPPC03, etc.

    Attached is my sample spreadsheet.

    any help would be greatly appreciated!

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Using CONCATENATE and need to increase last digit by 1

    Hi,

    Excel's concatenate worksheet function is pretty useless and has no more ability than the & operator.

    If you put this formila in B14 and drag it down you should get the results you want.
    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    08-24-2010
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Using CONCATENATE and need to increase last digit by 1

    EXACTLY what i needed!

    Thanks a lot!

    Chris

  4. #4
    Registered User
    Join Date
    08-24-2010
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Using CONCATENATE and need to increase last digit by 1

    OK, I'm really exposing my Newbie status here...

    I need to be able to move these cells up and down in the sheet, and it seems as though it is dependant on how many cells away the reference cell is.

    What i need is an ABSOLUTE starting point and have the results generated relative to that.

    SO if i put my reference cell in B9 and call it HOST_NAME, i've started it out as count 00.
    CORPPC00

    If i put the following formula in B10 it returns the result CORPPC01 as i hope.

    but if i insert a few blank spaces, B13 reports CORPPC05 where i had hoped it would report CORPPC01 so that it would re-start the numbering.

    another desired feature is to have them count up by 2 so that i may arrange them in different columns by evens and odds.

    Thanks again!

    Chris
    Attached Files Attached Files

  5. #5
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Using CONCATENATE and need to increase last digit by 1

    Hi Chris,

    In that case try this formula in B10 instead:
    Please Login or Register  to view this content.
    So this formula says that if the cell above it is blank then start renumbering again, else increase by the increment.

    The increment is +1. The number to restart the numbering from is 1.

    So if you wanted the renumbering to start from 0 and for increments of +2 you would use:
    Please Login or Register  to view this content.
    Then, instead of putting them in as constants in the formula, you could create an increment and a starting number range and reference them instead.

+ 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