+ Reply to Thread
Results 1 to 7 of 7

Create a sequence when the first cell has text and numbers

  1. #1

    Create a sequence when the first cell has text and numbers

    This might be a silly question, but I haven't been able to find the
    answer. I have one cell that will always have the the following
    format: ABCD1111111111111111 (4 letters and 16 numbers). That will be
    my first cell, I want to be able to create that number plus 1 on the
    cell below, and repeat (scroll down) as many rows as there is
    information on the left column. I t can be either using a formula or a
    macro:

    A B
    1 Apples ABCD0000000000000005
    2 Oranges ABCD0000000000000006
    3 Pears ABCD0000000000000007
    4 Coconut ABCD0000000000000008

    I tried Autofill but it doesn't work, and neither does =previous column
    +1.

    Help!

    Thanks!


  2. #2
    Dave Peterson
    Guest

    Re: Create a sequence when the first cell has text and numbers

    I put this in B1
    ="ABCD"&TEXT(ROW(A5),REPT("0",14))
    and dragged down.

    When I was done, I selected that column
    edit|copy
    edit|paste special|values
    to change the formulas to values.

    [email protected] wrote:
    >
    > This might be a silly question, but I haven't been able to find the
    > answer. I have one cell that will always have the the following
    > format: ABCD1111111111111111 (4 letters and 16 numbers). That will be
    > my first cell, I want to be able to create that number plus 1 on the
    > cell below, and repeat (scroll down) as many rows as there is
    > information on the left column. I t can be either using a formula or a
    > macro:
    >
    > A B
    > 1 Apples ABCD0000000000000005
    > 2 Oranges ABCD0000000000000006
    > 3 Pears ABCD0000000000000007
    > 4 Coconut ABCD0000000000000008
    >
    > I tried Autofill but it doesn't work, and neither does =previous column
    > +1.
    >
    > Help!
    >
    > Thanks!


    --

    Dave Peterson

  3. #3

    Re: Create a sequence when the first cell has text and numbers

    WOW Dave, it works great!

    Now a quick question, what if the number I want to start with is not
    0000000000000001 but something like 0000010000000001?

    Thanks!


  4. #4

    Re: Create a sequence when the first cell has text and numbers

    WOW Dave, it works great!

    Now a quick question, what if the number I want to start with is not
    0000000000000001 but something like 0000010000000001?

    Thanks!


  5. #5

    Re: Create a sequence when the first cell has text and numbers

    wow dave, this is great. Now, what if the first number is not
    0000000000000001 but 0000100000000001 or something else? can I start
    the list with any random number?


  6. #6
    Dave Peterson
    Guest

    Re: Create a sequence when the first cell has text and numbers

    ="ABCD"&TEXT(100000000+ROW(A1),REPT("0",14))

    change that big number to your starting point.

    [email protected] wrote:
    >
    > wow dave, this is great. Now, what if the first number is not
    > 0000000000000001 but 0000100000000001 or something else? can I start
    > the list with any random number?


    --

    Dave Peterson

  7. #7

    Re: Create a sequence when the first cell has text and numbers

    awesome, thank you SO much!


+ 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