+ Reply to Thread
Results 1 to 19 of 19

COUNT Formula recognising blank cells with formula

  1. #1
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    COUNT Formula recognising blank cells with formula

    I am trying to use the count formula to show filled cells and ignore blank cells, however i can't seem to get the formula to not count the blank cells that contain a formula.
    I have tried to use COUNTIF but can't seem to get the count to show anything but the full amount of cells in the field.

    I have attached the sheet i am working on. The data page is fed by the report page and i am trying to get the green column on the report page to count only cells that have a coloured red block in them and ignore the blanks.
    Attached Files Attached Files
    Last edited by Fayecattini; 02-03-2021 at 05:50 AM. Reason: Uploaded Smaller file unzipped

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: COUNT Formula recognising blank cells with formula

    I note the file is extremely large - and has been zipped, which is a nuisance factor for some

    All we need is a representative example. Hence you'll probably get more responses if you delete most of the data and upload a much smaller file excel file, not a zipped file
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    Re: COUNT Formula recognising blank cells with formula

    Thank you - I have now uploaded as a smaller file unzipped

  4. #4
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    Re: COUNT Formula recognising blank cells with formula

    Also i need to amend the formula for the formatting slightly:

    On the report tab the red blocks are showing the data that is input in the 'project number' column on the data entry page. If i change the number to text the formatting disappears and the count does not work.
    What i would like to do is amend the formula so that i can input text into the 'project number' box and all of the formatting remains the same. I managed to do it with numbers but not with text!

    I have highlighted a row on the report tab to show what i mean
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: COUNT Formula recognising blank cells with formula

    In D3, copied across and down:

    =IFERROR(IF(D$3="","",INDEX(Table1[[Project Number]:[Project Number]],MATCH(1,($B4=Table1[[Resource Name]:[Resource Name]])*(D$3>=Table1[[Start Date]:[Start Date]])*(D$3<=Table1[[End Date]:[End Date]]),0))),"")

    I modified one of the CF terms, too, but isn't quite right yet!!
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: COUNT Formula recognising blank cells with formula

    Fixed the CF, too.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    Re: COUNT Formula recognising blank cells with formula

    Hi,

    Thank you! That is great, did this take into account my first message as below? I know i put a few messages on here!

    I am trying to use the count formula to show filled cells and ignore blank cells, however i can't seem to get the formula to not count the blank cells that contain a formula.
    I have tried to use COUNTIF but can't seem to get the count to show anything but the full amount of cells in the field.

    I am trying to get the green column on the report page to count only cells that have a coloured red block in them and ignore the blanks.
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: COUNT Formula recognising blank cells with formula

    Nope. I didn't look at the early posts... and I'm notoriously poor at reading lots of words!! I prefer to see things!!

    =SUMPRODUCT(--(LEN(D4:AE4)>0))

    copied down.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    Re: COUNT Formula recognising blank cells with formula

    Once again thank you, one last thing...

    I have added in rest date columns on the data sheet as some of the date ranges will require days off. Is there a way i can add them into my formula so that the dates shown in that column overwrite the red blocks and just show as white spaces?
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: COUNT Formula recognising blank cells with formula

    I assume the rest days are simply Saturdays and Sundays... or are they something else?

  11. #11
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    Re: COUNT Formula recognising blank cells with formula

    No they could be any day of the week...

    the example on the sheet is the project dates being 01/02/2021-12/02/2021 with the rest dates being 07/02/2021 & 08/02/2021 (Sunday and Monday)

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: COUNT Formula recognising blank cells with formula

    Try this out... my brain hurts...
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    SOLVED Re: COUNT Formula recognising blank cells with formula

    YES!! Thank you so much, that was exactly what i needed

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: COUNT Formula recognising blank cells with formula

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

  15. #15
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    Re: COUNT Formula recognising blank cells with formula

    Good Morning,

    Could you advise how i change the rest day colour from white to amber or grey?

    Also i have added in a year view tab and have linked the data from the confirmed month view tab so you can have a yearly screenshot. However when i change the month selected in the month view all of the months across the year view change to match the month i have selected? Is there something i am missing in the formula?

    Thanks
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    Re: COUNT Formula recognising blank cells with formula

    Good Afternoon,

    Is there a way that i can get the formula to recognise the rest day as data and fill this will a coloured 'hashed' cell rather than being blank as it is currently?

    Will i need to take the rest day out of the current formula for this to work?

    Thanks
    Attached Files Attached Files

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: COUNT Formula recognising blank cells with formula

    Remind me. Rest days? what and where are they shown

  18. #18
    Registered User
    Join Date
    02-02-2021
    Location
    Malvern
    MS-Off Ver
    2016
    Posts
    22

    Re: COUNT Formula recognising blank cells with formula

    Rest days are input on the data sheet. On each month tab the formula is set that if a date is put into the rest days column on the data sheet, then the cell on the corresponding month view will be blank.

  19. #19
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: COUNT Formula recognising blank cells with formula

    Try changing the array entered formula** in cell D5 of the March sheet to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **Reminder that array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT before copying the formula over and down.
    Note that the existing conditional formatting rules fill the rest cells.
    The formula in column C should also be changed to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 1
    Last Post: 01-31-2021, 05:24 PM
  2. Replies: 3
    Last Post: 01-28-2021, 09:11 AM
  3. Replies: 8
    Last Post: 01-04-2021, 11:08 PM
  4. [SOLVED] Formula not recognising values in cells?
    By paulstuartbullock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-20-2016, 08:48 AM
  5. Replies: 8
    Last Post: 07-06-2014, 08:51 PM
  6. [SOLVED] Delete special blank cells not recognising blank cells
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-04-2013, 03:54 AM
  7. Replies: 5
    Last Post: 02-18-2012, 04:40 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