+ Reply to Thread
Results 1 to 6 of 6

count blanks until multiple criteria occurring after 1st blank

  1. #1
    Registered User
    Join Date
    03-09-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2007
    Posts
    7

    count blanks until multiple criteria occurring after 1st blank

    Please help, I’m having trouble.

    I need two general formulas to count blanks until multiple criteria occurring after 1st blank


    A B
    1 yellow fall
    2 yellow spring
    3 red fall
    4 yellow
    5 red
    6 red spring
    7 yellow spring
    8 red
    9 yellow

    I need one formula for blanks between 1st blank and 1st occurrence of red and blank after 1st blank and one formula for blanks between 1st blank and 2nd occurrence of red and blank after 1st blank.

    1st blank (row 4)
    1st occurrence = 1 (row 5)
    2nd occurrence = 2 (row 8)

    Thanks in advance.
    Last edited by stew_man; 03-11-2011 at 04:41 PM.

  2. #2
    Registered User
    Join Date
    03-09-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: count blnks until multiple criteria occurring after 1st blank

    Sorry, my table got bunched together.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: count blanks until multiple criteria occurring after 1st blank

    If I've understood

    Please Login or Register  to view this content.
    Note the Array entry requirement

  4. #4
    Registered User
    Join Date
    03-09-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: count blanks until multiple criteria occurring after 1st blank

    No. Sorry my table got jumbled up and I am new to this forum but let's see if I can clear up.

    column A is a list of colors pre-filled from row 1-100 (every cell A1 to A100 has the name of a color in it).

    column B is currently sparsely populated with seasons (i.e. currently only every 5th or 6th cell has the name of a season in it).

    Now, column B will start to be filled-in with seasons starting at the top in B1 and then B2, B3, B4, etc. but remember that some of the cells in column B already have the name of seasons in them.

    I want a formula in C1 to keep a running count of the number of blank cells in column B, starting with the 1st occurrence of a blank as 1 (If B1, B2, B3, B4, have seasons in them and B5 doesn’t then B5 would be the 1st occurrence of a blank) with the count stopping the FIRST time the color “Red” appears in column A which also has a blank next to it in column B (remember there is a possibility of a “Red” in column A already having the name of a season next to it in column B. This would NOT count as an occurrence).

    2nd formula would be in C2 to keep a running count of the number of blank cells in column B, starting with the 1st occurrence of a blank just like the formula in C1 but would count blanks in column B with the count stopping the SECOND time the color “Red” appears in column A which also has a blank next to it in column B.

    Thanks so much if you could help

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: count blanks until multiple criteria occurring after 1st blank

    That's exactly what the formula provided gives you - if you think otherwise please post a sample with formula in place to illustrate.

  6. #6
    Registered User
    Join Date
    03-09-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: count blanks until multiple criteria occurring after 1st blank

    You are so right. I missed that the formula was dependent on the cell I put it in and that copying down would actually change the 2nd formula to give me the 2nd occurance. Thank-you so much.

    Chris

+ 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