Excel MT142 p2: Array Formula for Counting Dates

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
9,232
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 28, 2008

See how to create a complex array formula that counts weekends between two dates with the SUM IF WEEKDAY ROW and INDIRECT functions in one formula
See how to create an array formula that counts with date and other criteria

Also see: From a beginning and ending date, see how to create a list of dates (serial numbers) in memory using the ROW and INDIRECT functions. Also see this video for another example of this date trick: Excel Magic Trick # 165: MACRO to Extract Birthdays.

Link to this comment:

Share to:

Uploader Comments (ExcelIsFun)

  • You're right! That was my formula, too. I forgot to post the = sign! Weekday greater or eqaul 6.

  • Thanks!!

  • Hi,

    You could also use weekday-6 instead of using the weekday Part of the formula twice with 6 and 7 for the weekend. Is there a reason to do so?

    Your Videos are great I like them. :)

  • Absolutely!!

    A better formula for "count weekends" would be:

    =SUMPRODUCT(--(WEEKDAY(ROW(IND­IRECT(C15&":"&D15)),2)>5))

    A better formula for "Count do":

    =SUMPRODUCT(--(E$14:AI$14>=$C1­5),--(E$14:AI$14<=$D15),--(E15­:AI15="do"))

  • can you show me a video about of a formula on how to create debt reduction and how long does it take

  • Try these:

    Excel Finance Class 42: Consumer Amortized Loans

    Excel Finance Class 39: How Long To Pay Off Credit Card With Minimum Payment

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Typung error!

    It should Be weekday - (greater) 6

  • I am glad that the video helped. But there are so many ways to do things in Excel, that I weary of saying "wrong". You never know, COLUMN probably would work fine - you should try it!! (I am on vacation without a computer that has Excel or else I would try it...)!

  • The usage of ROW and INDIRECT function to generate an array of dates is awesome. As an Excel user I was inclined to use COLUMN function instead of ROW, but obviously I am wrong. Once again an old but awesome video.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more