+ Reply to Thread
Results 1 to 14 of 14

Auto fill sequence

  1. #1
    Registered User
    Join Date
    09-11-2007
    Posts
    5

    Auto fill sequence

    Hey folks!

    I am fighting with this for a longer time now and can't find a solution:
    is it possible in Excel to generate a number sequence (to create a list for auto fill) representing numbers like this:

    000001
    000006
    000002
    000007
    000003
    000008
    000004
    000009
    000005
    000010
    000011
    000016
    000012
    000017
    000013
    000018
    000014
    000019
    000015
    000020


    and so on till 001000

    Thank you in advance.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Select your cell A1, Format > Custom and enter in the box 000000 (six zero's)

    Then enter 1 in A1 the result will be 000001, now you can use auto-fill
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    09-11-2007
    Posts
    5
    Thank you. This is something I did not know either, though the question
    is still open - is it possible to create such a list for auto fill, where the sequence of numbers goes like in the example above?

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    OK, try something like this, format columns A, B and C as before, then in A1 type 1, A3 type 2, select A1:A4 and auto-fill down.

    Select B2, type 6, select B4 type 7, select B2:B5, auto-fill down.

    In C1 type this formula and auto-fill down

    =IF(A1="",B1,A1)

  5. #5
    Registered User
    Join Date
    09-11-2007
    Posts
    5
    Grand. fill down for column A and B works great.
    Problem occured with the formula:
    =IF(A1="",B1,A1)
    Excel screams that the formula contains an error.

    so I played with it a bit and changed it's commas with semicolons
    =IF(A1="";B1;A1)

    It does not complain about any errors anymore though the results after fill down do contain some data I don't need in there.

    I attached the resulting excel file to this post. I filled the blocks of correct data with green and the wrong ones with red.

    What I am doing wrong?
    Attached Files Attached Files

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    File not attached? - Got it now

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    That's OK so far, now to filter out the red one's.

    Select D1:D10, type 1 and press Ctrl+Enter

    Select D11:D20, type 2 and press Ctrl+Enter

    Select D1:D20 and auto-fill down

    Select all the data columns and go to Data > Sort, sort by column D with no header, then select all the number 2 rows and delete them.

  8. #8
    Registered User
    Join Date
    09-11-2007
    Posts
    5
    Ok I got the idea now. And again I might say - stupid me - the idea is so simple and logic, question is - why I couldn't come up with it?

    Ok, final problem here is that the last operation - auto-filling down of D1:D20
    seem to work not the way you and I expected.

    Please see the attachment.
    Attached Files Attached Files

  9. #9
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    I forgot to say select D1:D20, hold Ctrl key and fill down - sorry

  10. #10
    Registered User
    Join Date
    09-11-2007
    Posts
    5
    Thank you. This might sound as a typical appreciation but I am really thankful for your help and time taken. I use excel in a basic level and never thought about it's unique possibilities. It's not that I need them day by day and it's not that I will start learning it from now on since I need something specific from Excel maybe once ot twice in a year or two or maybe more. One thing is for sure - now I know that it (excel) can give you more than you can imagine and that there are great folks araund who are happy to help you when you're stuck.

    Thank you.

  11. #11
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    If you can come up with a question, it probably can be done in Excel - at least it's worth a try.

    It's a pleasure to help - thanks for the feedback

  12. #12
    Registered User
    Join Date
    09-11-2007
    Posts
    5
    I have somewhat of a similar problem (I think).

    This is what I have so far in cells A1, A2, A3 ...

    =Database!E24
    =Database!E40
    =Database!E56

    If you notice, each cell is increased by 16 cells. When I try to auto fill, the 4th cell always shows up 13 cells less than what I want it to. Is it because I'm pulling data from another tab?

    So for cells A4, A5 & A6 I would want it to show ...

    =Database!E72
    =Database!E88
    =Database!E104

    But it actually shows ...

    =Database!E27
    =Database!E43
    =Database!E59

    What am I doing wrong?

  13. #13
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi soccerdon1981,

    Please read the rules about adding to other posts with a different question.

    http://www.excelforum.com/showthread.php?t=613916

    In your case if you set up a helper column, you can do it this way. In column A starting in A1=24, A2=40, A3=56 auto-fill down column A.

    Then in B1, type this

    =INDIRECT("Database!E"&A1) and auto-fill down

  14. #14
    Registered User
    Join Date
    09-11-2007
    Posts
    5
    sorry, i should have read the rules first.

    thanks for the help though.

+ 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