+ Reply to Thread
Results 1 to 7 of 7

count up to the next blank cell

Hybrid View

  1. #1
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The curly brackets tell Excel that this is a special Array formula... here is more on Array formulas that can explain better than I can:

    http://www.cpearson.com/excel/ArrayFormulas.aspx

    This formula:

    =MATCH(TRUE;(INDEX($H$8:$H$5000;1):$H$5000="");0)

    The INDEX($H$8:$H$5000;1) part just finds the cell reference indicated by the position within the array...i.e. position 1.... note: if it is always going to be position 1 (or H8), then you don't need the Index() part at all... you can just have
    =MATCH(TRUE;$H$8:$H$5000="";0)

    The H8:H5000="" part creates an array of TRUEs and FALSEs depending on if the condition is true or not....

    Then the MATCH(TRUE()) looks for the first TRUE in that array and returns the position with the entire array.

    If you select the cell with the formula and go to Tools|Formula Auditing|Evaluate Formula you can follow the evaluation of the formula by hitting Evaluate for each step. Then you will see how the result is obtained.

    Hope this helps.
    Last edited by NBVC; 01-16-2008 at 01:30 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  2. #2
    Registered User
    Join Date
    09-28-2007
    Posts
    14

    thanks

    NBVC.

    I came upon this thread and I just realized I forgot to thank you for your wonderful explanation.

    Gracias.

+ 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