+ Reply to Thread
Results 1 to 11 of 11

how to count cells with values but ignore blank cells with formula and in a month?

  1. #1
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    how to count cells with values but ignore blank cells with formula and in a month?

    I am working on daily services dashboard. in which i will show how much days a sales man provide services and how much days no service provided in a month.

    for example there are 24 working days in a month and sales man provided services in 21 days the remaining days will be count as no service provided. first formula will count total number of working days in a month (Monday to Saturday) and than it will show days of services provide or not.

    Hope you guys understand.

  2. #2
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    Sounds like you need a COUNTIF setup? Not sure how you have it set up though. Is there a sample?

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    With Month Start/End dates in A1 and B1:

    Number of working days ..

    =NETWORKDAYS.INTL($A1,$B1,11)

    OR

    =NETWORKDAYS.INTL($A1,EOMONTH($A1,0),11)

    You can add holidays to the above if required.

    I don't know how you record "Service Days" but COUNTIF or COUNT/ COUNTA should do what you require.

  4. #4
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    here is the attachment
    Attached Files Attached Files
    Last edited by Imran Magsi; 02-16-2017 at 05:26 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    Please explain the data in the attachment and tell us what your expected outcome in the yellow cell would be and, crucially, why.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    Try

    =SUMPRODUCT(--(WEEKDAY(B1:B28,1)<>1)*(C1:C28<>0))

    Only counts working days > 0

  7. #7
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    i am working on data (daily sale). now my boss need to know if there is working day and no sale on that day, than total how much working days are in a month in which no sale.

  8. #8
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    final i got an idea. if i use this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    than count working days using formula in another cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and than subtract both finally i got the result of how much days Salesman did not sale any product.

    sample is attached
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    ....final i got an idea
    and I suppose it is pure coincidence that YOUR idea is identical to my posts???

    OR

    =SUMPRODUCT(--(WEEKDAY(B1:B28,1)<>1)*(C1:C28=0)*(B1:B28>=H2)*(B1:B28<=I2))

    in one formula

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: how to count cells with values but ignore blank cells with formula and in a month?

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

  11. #11
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: how to count cells with values but ignore blank cells with formula and in a month?

    Thanks JohnTopley thats what i want dear thank you once again.

+ 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. [SOLVED] Ignore blank cells with formulas or ignore NA() in a formula
    By guiismiti in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-24-2016, 02:13 PM
  2. Ignore blank cells in formula counting number of different cells.
    By deneh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-07-2015, 08:52 AM
  3. Replies: 3
    Last Post: 05-13-2014, 10:48 PM
  4. [SOLVED] Return non-blank cells from range AND ignore cells with only formula w/o results
    By grafitti in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2014, 08:15 AM
  5. Count number of cells in column per month, ignore blank cells
    By lamdl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2014, 08:50 PM
  6. [SOLVED] Count how many times a month appear but ignore blank cells
    By mdithi in forum Excel General
    Replies: 2
    Last Post: 03-26-2012, 05:38 PM
  7. Count how many times a month appear but ignore blank cells
    By ozzom_2000 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-24-2011, 10:46 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