+ Reply to Thread
Results 1 to 6 of 6

Add a second line of the same number but add a "a" to it

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Ft Mcmurray,Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Add a second line of the same number but add a "a" to it

    Hi All
    Is there a way to populate something like this... without typing it individually.
    Add a second line of the same number but add a "a" to it

    Like this:
    0611
    0611a
    0612
    0612a
    0613
    0613a
    And down in this order to these numbers
    0723
    0723a
    0724
    0724a



    Thanks BBryan

  2. #2
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Add a second line of the same number but add a "a" to it

    Put the "0611" text in A1... then put this formula on A2 and bellow:

    Please Login or Register  to view this content.
    Don't forget to put the 0611 as TEXT format, or do format with 4 numbers
    If I have solved your question, please mark the thread as [SOLVED],
    And consider adding reputation

    ?Simplicity is the ultimate sophistication? (Leonardo Da Vinci)

    Regards,
    F?bio Gatti

    https://www.youtube.com/pulodogatti
    https://www.linkedin.com/in/fabiocgatti/
    https://instagram.com/pulodogatti

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: Add a second line of the same number but add a "a" to it

    Assuming the values start as 0611, 0612, ..., 0724, and start in cell A1, IMMEDIATELY BELOW the last number, type =A1&"a". Drag the formula down until you just get an "a", that is, after the number 0724.

    Then select all the new formulae, Ctrl-C to copy the data, and Paste Special | Values

    Now you can use a Custom Sort on column A and choose Sort Numbers and Text separately.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Add a second line of the same number but add a "a" to it

    Add the values and formulas in A2:A4 as shown:

    A
    B
    1
    Header
    2
    611 A2: Input
    3
    611a A3: =A2&"a"
    4
    612 A4: =A2+1


    Select A3:A4 and drag down:

    A
    1
    Header
    2
    611
    3
    611a
    4
    612
    5
    612a
    6
    613
    7
    613a
    8
    614
    9
    614a
    10
    615
    11
    615a
    12
    616
    13
    616a
    14
    617
    15
    617a
    16
    618
    17
    618a
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    04-05-2013
    Location
    Ft Mcmurray,Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Add a second line of the same number but add a "a" to it

    Hi All,
    I just tried all off these.
    All Of them works Perfect!!
    Thanks so much you saved me a lot of work..........


    Thanks BBryan

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: Add a second line of the same number but add a "a" to it

    You're welcome.


    Must admit, I like shg's method if you have a starting number from which you can generate the rest of the numbers ... and they are numbers as opposed to what looked like text codes (with a leading zero)




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Problem creating Line Chart from columns "date" and "money"
    By brosef in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 11-05-2012, 09:01 AM
  2. [SOLVED] Macro to insert excat number of rows as in column "K" below each line with data
    By awais6547 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-12-2012, 08:00 AM
  3. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  4. How to change "From" & to have a dynamic "Subject" line in Excel Mailing
    By andy_iyeng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2012, 03:04 AM
  5. GoTo compile error: "Expected: line number or label"
    By elfsprin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-29-2011, 09:21 PM
  6. Replies: 4
    Last Post: 02-03-2008, 05:11 PM
  7. [SOLVED] Re: macro for converting number stored as "text" (or preceeded with ') to "number" formatting
    By markx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2006, 07:14 AM
  8. Replies: 1
    Last Post: 06-23-2006, 10:20 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