+ Reply to Thread
Results 1 to 17 of 17

How can I create sequential number with "." in between numbers?

  1. #1
    Registered User
    Join Date
    03-13-2020
    Location
    Canada
    MS-Off Ver
    MS OFFICE 16 PRO
    Posts
    11

    How can I create sequential number with "." in between numbers?

    I'm stumped after many try.
    What I'm trying to do on Excel 16 is to create a sequence like this:

    abcdefg_##.##.## (## = 00 ~ 99)

    ex) abcdegf_00.00.00
    abcdegf_00.00.01
    .
    .
    abcdegf_01.00.01
    .
    .
    abcdegf_99.99.99


    How can I generate this sequence without manually typing it?


    Important:

    Also how can I control the number the last 2 digits end?

    What I mean by that is, instead of designating the last two digits to end at 99, I want it to end at 39 or 89.


    Also, is there an alternative to doing this using other tools and not necessarily excel?
    I'm opened to other means of doing it.


    I tried to solve this problem but it's beyond my basic understanding of excel.
    Thank you!
    Last edited by appplejack; 03-13-2020 at 10:22 PM.

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: How can I create sequential number with "." in between numbers?

    For the first part of your question, put 0 in cell A1 and put this formula in cell A2...

    =1+A1

    Then select both cells and use this Custom Format for them...

    "abcdegf_"00\.00\.00

    Then select cell A2 and copy it down as far as needed.

    Let me think about the second question.

    EDIT NOTE: Is that "stopping number" to only apply to the last two digits or to each group of two digits? In other words, If the "stopping number" is 39, what comes after this...

    abcdegf_00.39.39
    Last edited by Rick Rothstein; 03-13-2020 at 10:43 PM.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How can I create sequential number with "." in between numbers?

    Hi ApppleJack and welcome to the forum,

    I think you are going to need to build your rows using real numbers and then put a formula in to add those periods. Look at the attached Col a where I typed in cell A1 and then used AutoFill (drag bottom right handle of the cell) to have it auto number downwards. Then in Col B I used a formula of:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To put those periods in:
    Period between counting digits.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How can I create sequential number with "." in between numbers?

    I think Rick showed me the answer with this kind of formula on Sheet 2,

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Period between counting digits 2.xlsx

  5. #5
    Registered User
    Join Date
    03-13-2020
    Location
    Canada
    MS-Off Ver
    MS OFFICE 16 PRO
    Posts
    11

    Re: How can I create sequential number with "." in between numbers?

    Thank you guys!! I'm going to spend some time working on this.
    Also, I was wondering how I could autofill like this: (essentially freezing the last two digits)
    00.00.00
    00.01.00
    00.02.00
    00.03.00
    ...

  6. #6
    Registered User
    Join Date
    03-13-2020
    Location
    Canada
    MS-Off Ver
    MS OFFICE 16 PRO
    Posts
    11

    Re: How can I create sequential number with "." in between numbers?

    So, I worked it out. Thanks for the help, again.

    A couple of more problems.

    1. I actually need to use =A1&TEXT(B1,"\.00\.00.") instead of =A1&TEXT(B1,"00\.00\.00.")

    The first two digit segment (bolded) =A1&TEXT(B1,"\.00\.00.")

    doesn't cap at 99. It goes all the way to over 14000


    2.I cannot copy the column and paste it to clipboard.
    I was planning to migrate this date into a text file.
    Last edited by appplejack; 03-13-2020 at 11:48 PM.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How can I create sequential number with "." in between numbers?

    You might need to use my first formula with the Left(), Mid() and Right() in it if the Text(B1 &...) doesn't work.

    It would be more helpful if you could attach a sample workbook showing your exact text and need. There might be a much better way to structure your data to get better answers.
    Read the yellow text at the top of the page to see how to attach a file.

  8. #8
    Registered User
    Join Date
    03-13-2020
    Location
    Canada
    MS-Off Ver
    MS OFFICE 16 PRO
    Posts
    11

    Re: How can I create sequential number with "." in between numbers?

    Yes, silly me. I didn't think about that.
    I've been playing with this workbook.
    Please have a look the work book.
    I clicked on the attachment icon but it doesn't seem to work for me. It just shows a white bar.

    I can't seem to post a link to the file on my Googledrive because the site doesn't let me post a link until I make more posts.

    Now, I'm trying to figure out a way to set a range to cap the number.
    If you look at column "B" in the work book, that's where I should cap the number.

    For example, let's just pick a random number
    00.00.00.00
    ...
    ...
    ...

    39.39.39.39


    Thanks!!

    Update: Still when I hit the attachment icon, a white bar appears below the icon but nothing else.
    Last edited by appplejack; 03-17-2020 at 07:17 AM.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: How can I create sequential number with "." in between numbers?

    The paperclip icon doesn't work, however utilizing the instructions for uploading a Excel spreadsheet/workbook as given in the banner at the top of the page does.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Registered User
    Join Date
    03-13-2020
    Location
    Canada
    MS-Off Ver
    MS OFFICE 16 PRO
    Posts
    11

    Re: How can I create sequential number with "." in between numbers?

    Ok. I'm posting it now. Thanks for the heads-up.

    So basically I want to set the sequence in B to go to the next digit every time it reaches 39, resulting in the column C and D getting the feed from column B.

    Ex) 00.00.00 ... 00.00.39, 00.01.00, ... 00.39.39, 01.00.00... 01.39.39, 02.00.00 and so on until 39.39.39.

    Thank you
    Attached Files Attached Files

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How can I create sequential number with "." in between numbers?

    Hey appplejack,

    This is the formula you seek:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See it work in the attached. I did lots of these in a college number theory class.
    Mod 39 counting between colons.xlsx

    I have some extra columns working my way up to the final answer. You don't need those extra columns but I left them there so you might see what I did.
    Last edited by MarvinP; 03-21-2020 at 06:14 PM.

  12. #12
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: How can I create sequential number with "." in between numbers?

    Quote Originally Posted by MarvinP View Post
    This is the formula you seek:
    Ignoring that you used a colon instead of the dot that the OP used as the delimiter, three comments about your formula... one, it starts at 00:00:01 instead of 00:00:00 like the OP's example; two, it switches over at 38 not 39 (I think all your 39's should be 40's); and, three, it does not stop at 39:39:39 like the OP showed in Message #10.

  13. #13
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: How can I create sequential number with "." in between numbers?

    Quote Originally Posted by appplejack View Post
    So basically I want to set the sequence in B to go to the next digit every time it reaches 39, resulting in the column C and D getting the feed from column B.

    Ex) 00.00.00 ... 00.00.39, 00.01.00, ... 00.39.39, 01.00.00... 01.39.39, 02.00.00 and so on until 39.39.39.
    I believe this does what you want. Put this formula in cell B1 and copy it down...

    =IF(ROW()>64000,"",TEXT(10000*INT((ROW()-1)/1600)+MOD(100*INT((ROW()-1)/40)+MOD((ROW()-1),40),4000),"00\.00\.00"))

  14. #14
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How can I create sequential number with "." in between numbers?

    Hey Rick,

    I hate being wrong but you are very right!!
    Try this formula instead.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Mod 40 counting between periods.xlsx
    Now starting at zero and having periods instead of colons. I took that number theory twice and did much better the second time around. That was 52 years ago

  15. #15
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: How can I create sequential number with "." in between numbers?

    Quote Originally Posted by MarvinP View Post
    I took that number theory twice and did much better the second time around. That was 52 years ago
    I left college in the mid-60s and went back and returned to finish up as a Math Major in early-70s (I think we are about the same age then). I liked the Number Theory course (as best as I can remember).

  16. #16
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How can I create sequential number with "." in between numbers?

    I think I win this one - UB older than me
    Now go wash your hands (again)!

  17. #17
    Registered User
    Join Date
    03-13-2020
    Location
    Canada
    MS-Off Ver
    MS OFFICE 16 PRO
    Posts
    11

    Re: How can I create sequential number with "." in between numbers?

    Thank you very much for all the help guys!!
    I'm going to keep working on this but the help here has been immensely helpful.

+ 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. Replies: 2
    Last Post: 06-30-2017, 10:10 AM
  2. VBA to add the word "KEV" to year-month-sequential numbers
    By Rez4ul in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2016, 11:48 PM
  3. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  4. [SOLVED] Count syntax for dividing # of "positive numbers" by "total numbers"
    By synses in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-18-2013, 09:06 PM
  5. [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
  6. How do i create macro to count number of "Y" or "N" in different worksheets
    By tehseen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2009, 12:34 PM
  7. [SOLVED] create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 PM

Tags for this Thread

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