Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12

Thread: Sequential Number Formula

  1. #11
    Super Moderator JeffreyWeir's Avatar
    Join Date
    Mar 2011
    Location
    New Zealand
    Posts
    357
    Articles
    0


    Register for a FREE account, and/
    or Log in to avoid these ads!

    Oli: One problem with =ROW($1:$10) is that if someone inserts a new row at row 1 then your formula will return 2,3,4,5 (i.e. the '1' effectively drops out)

    One problem with ROW(INDIRECT("1:"&something)) is that INDIRECT is volitile, meaning it evaluates any time anything on the sheet changes...which can really slow down a worksheet if you're using it to produce a big array of formulas.

    =ROW(10000:10009)-ROW(10999:10999) will return 1 through to 10, and is robust to someone inserting more rows above. However, in the unlikely event that someone inserts a row somewhere between 10000:10009 then it will return 1 through 11. Might not be a problem. Could always set the scrolling area on your worksheet.

  2. #12
    Super Moderator JeffreyWeir's Avatar
    Join Date
    Mar 2011
    Location
    New Zealand
    Posts
    357
    Articles
    0
    Whoops, that formula should have read =ROW(10000:10009)-ROW(9999:9999)

    Also, apologies to Oli for pointing out that indirect is volatile...I see you've already pointed that out.

Page 2 of 2 FirstFirst 1 2

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •