+ Reply to Thread
Results 1 to 8 of 8

Using Weekday and CountIf functions to count days in an array

Hybrid View

  1. #1
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Using Weekday and CountIf functions to count days in an array

    Quote Originally Posted by Mongoloid View Post
    Thanks Dave. What do the "-" symbols do for the formula, the same as the "+"?
    Glad to help.Thanks for the feedback.

    RE: "--". Somewhat. In this case they coerce TRUE/FALSE returned by the (WEEKNUM(+Table1[DUE DATE],1)=WEEKNUM($B$1,1)) part into their underlying numeric 1/0 values. This enables SUMPRODUCT sum up the TRUEs which are now 1s.

    Any mathematical operation does the same thing.
    • 1* (WEEKNUM(+Table1[DUE DATE],1)=WEEKNUM($B$1,1))
    • 0+ (WEEKNUM(+Table1[DUE DATE],1)=WEEKNUM($B$1,1))
    • (WEEKNUM(+Table1[DUE DATE],1)=WEEKNUM($B$1,1)) /1
    • and (WEEKNUM(+Table1[DUE DATE],1)=WEEKNUM($B$1,1)) ^1.


    I just prefer the double-unary "--".

    The "+" is a special case issue. Some functions do not accept ranges by default. The ranges need to be coerced into an array. The date functions all seem to fit into this category. There are others.
    Last edited by FlameRetired; 09-18-2017 at 04:29 PM.
    Dave

+ 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: 10
    Last Post: 01-03-2021, 06:24 PM
  2. Help me! I want to count the working days of worker with count and if array.
    By tuyetngapt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2013, 12:52 AM
  3. [SOLVED] Consecutive Employee Vacation Days using sumif array with frequency and column functions
    By ciaran01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 10:24 AM
  4. Replies: 7
    Last Post: 09-02-2011, 08:54 PM
  5. Replies: 0
    Last Post: 05-04-2011, 06:26 PM
  6. Countif with other functions -- Median, IF, Count
    By rkrieg in forum Excel General
    Replies: 2
    Last Post: 02-01-2010, 06:24 PM
  7. Replies: 2
    Last Post: 10-29-2009, 04:52 PM
  8. [SOLVED] Help with Count, CountIf, Sum Functions
    By Kris in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2006, 02:50 PM

Tags for this Thread

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