+ Reply to Thread
Results 1 to 10 of 10

Counting the most blanks

  1. #1
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Counting the most blanks

    how do i count the most blanks in cells g3:g1000 ?

    With this example the answer should be 12

    I just want to count the most blanks between the 1's ( the 1's are only for example these could be up to anything.


    1
    Blank
    Blank
    1
    1
    1
    Blank
    Blank
    Blank
    Blank
    Blank
    Blank
    1
    1
    1
    1
    1
    1
    1
    Blank
    Blank
    Blank
    Blank
    Blank
    Blank
    Blank
    Blank
    Blank
    Blank
    Blank
    Blank
    1
    1
    1
    1
    1
    1
    1
    1

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Counting the most blanks

    use a helper column.


    enter this formula in H2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter this formula in H3 and fill down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by mehmetcik; 07-25-2017 at 05:06 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Counting the most blanks

    In H3 put
    =IF(G3="",1,0)

    In H4 and filled down as far as needed
    =IF(G4="",H3+1,0)

    Then
    =MAX(H:H)

  4. #4
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: Counting the most blanks

    Quote Originally Posted by Jonmo1 View Post
    In H3 put
    =IF(G3="",1,0)

    In H4 and filled down as far as needed
    =IF(G4="",H3+1,0)

    Then
    =MAX(H:H)
    will try this one shortly thank you

  5. #5
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: Counting the most blanks

    Thank you both for your reply but when it gets to 100 and goes to 1000 for example it includes all those blanks where there is no numbers i only want it to count blanks between two values and ignore any blanks after the last value found sorry for wrecking your heads. and thank you for helping with your input.

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

    Re: Counting the most blanks

    Hi Patcheen,

    See the attached that does what I think you want.

    Max Blanks in cells.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Counting the most blanks

    For the formula in H4, change it to
    =IF(COUNT(G4:G$1000),IF(G4="",H3+1,0),"")

    Adjust 1000 to any 'reasonable' number that is further below where you expect the last number to be.

  8. #8
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: Counting the most blanks

    Just got the chance to check it now - Thank you

  9. #9
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: Counting the most blanks

    Thank you all this is now resolved - thank you

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Counting the most blanks

    You're welcome.

+ 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. Counting Non Blanks & Blanks Records
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-16-2014, 03:29 PM
  2. [SOLVED] Counting blanks in a column down to last value only
    By powersj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 06:18 PM
  3. =sum formula not counting blanks.
    By Kuzman15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-31-2013, 06:05 PM
  4. Counting Non Blanks and Non Zero's
    By IronDogg in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-22-2013, 04:21 PM
  5. Counting non blanks
    By khalid79m in forum Excel General
    Replies: 2
    Last Post: 07-12-2007, 09:16 AM
  6. Counting blanks, either 1, 2 or 3
    By Steve in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2006, 10:25 PM
  7. Counting Blanks
    By T De Villiers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2005, 09:34 AM

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