+ Reply to Thread
Results 1 to 3 of 3

Add a set series of numbers to a column of repeating values

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Add a set series of numbers to a column of repeating values

    Hi everyone,

    Ram has been assisting me with an excel 2010 issue I have, but I had a thought which I figured might be a totally separate solution.

    What I have is column A with a series of repeating values that that are of different lengths like the following:

    XXX
    XXX
    XXX
    YYY
    YYY
    YYY
    YYY
    ZZ
    ZZ

    is there any way I can create a column which combines column A with a number 1-4 and apply this number to the value in column A? The result would be:

    XXX1
    XXX2
    XXX3
    YYY1
    YYY2
    YYY3
    YYY4
    ZZ1
    ZZ2

    Thoughts?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Add a set series of numbers to a column of repeating values

    assuming your data starts in A1, in B1:
    =A1 & countif($A$1:A1,"="&A1)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Add a set series of numbers to a column of repeating values

    =a1&countif($a$1:a1,a1) would give that result
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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] Auto Fill a Column with repeating numbers
    By gobeavers in forum Excel General
    Replies: 3
    Last Post: 12-26-2012, 02:47 PM
  2. Replies: 2
    Last Post: 12-22-2011, 08:41 PM
  3. Count Consecutive Repeating Numbers in One Column
    By ExcelQuestFL in forum Excel General
    Replies: 2
    Last Post: 04-06-2011, 05:58 PM
  4. Max from column of repeating numbers
    By RIKIL in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2008, 11:26 AM
  5. [SOLVED] Repeating a sequence of numbers down a column
    By Nexan in forum Excel General
    Replies: 2
    Last Post: 03-04-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