+ Reply to Thread
Results 1 to 3 of 3

How to count all dates in column A using last friday and and next friday friday

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    How to count all dates in column A using last friday and and next friday friday

    At the moment I'm using two formulas to get the date for specific weekday:
    for last Friday
    Please Login or Register  to view this content.
    for next Friday
    Please Login or Register  to view this content.
    How could I use these two days to count all dates In col A that fall between these two days (inclusive)
    Also how could I count all dates in column A that older than last weeks Friday


    Any help is appreciated


    Cheers
    Rain
    Last edited by rain4u; 02-16-2011 at 04:35 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to count all dates in column A using last friday and and next friday friday

    Try:

    =COUNTIF(A:A,">="&TODAY()-WEEKDAY(TODAY()+2, 2))-COUNTIF(A:A,">"&TODAY()+7-WEEKDAY(TODAY()+7-6))

    or if the 2 dates are stored, say in B1 and B2, respectively

    =COUNTIF(A:A,">="&B1)-COUNTIF(A:A,">"&B2)
    Also how could I count all dates in column A that older than last weeks Friday
    =COUNTIF(A:A,"<"&B1)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: How to count all dates in column A using last friday and and next friday friday

    Thank you for the help. It works well and it helps me to understand better how countif works.
    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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