+ Reply to Thread
Results 1 to 5 of 5

count if days of week and value

  1. #1
    Registered User
    Join Date
    11-01-2016
    Location
    AC, NJ
    MS-Off Ver
    2007
    Posts
    24

    count if days of week and value

    Hi.

    I can't get this formula right. I have two columns of data. Column A is a date, Column B is a number. I want to a formula that will go through column A and check if the date is a Monday AND Column B is greater than 7 and return how many times this occurs.

    This is what I have and it does not work.

    =COUNTIFS(A:A,"ddd"="sun",B:B,">7")

    What am I missing?

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: count if days of week and value

    Try something along the lines of this:

    =SUMPRODUCT((WEEKDAY(A2:A10)=2)*(B2:B10>7))

    Changing the ranges to fit your data.

  3. #3
    Registered User
    Join Date
    11-01-2016
    Location
    AC, NJ
    MS-Off Ver
    2007
    Posts
    24

    Re: count if days of week and value

    That works except for 7 saturday. I think excel counts empty cells..

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: count if days of week and value

    it doesn't I suggest you attack a workbook, with the expected results

  5. #5
    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,206

    Re: count if days of week and value

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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] Count no. of days for the week and month from range
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 11-14-2016, 02:48 AM
  2. [SOLVED] Need to count how many days in week period, if period starts mid week?
    By mrsdeapsleap in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2016, 03:29 AM
  3. Replies: 4
    Last Post: 11-14-2015, 12:13 PM
  4. is it possible to remove non-working week days from a day count?
    By dangoo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-10-2015, 06:35 AM
  5. [SOLVED] How to count 10 consecutive week days
    By rjassal82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-16-2013, 05:40 AM
  6. calculate business days(where there is 6 days a week)
    By arnab0711 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2011, 10:09 AM
  7. Make Workday count 6 days in a week
    By BlastRanger in forum Excel General
    Replies: 6
    Last Post: 09-22-2010, 01:18 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