+ Reply to Thread
Results 1 to 3 of 3

count if ... # of next month or last month help from today

Hybrid View

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    Cape Cod MA USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    count if ... # of next month or last month help from today

    I have a column of dates. I need an excel formula that counts how many dates are next month and another that tells me how many dates in the column that happened last month from TODAY (so that it's automatic .. and I don't have to change the month reference)

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: count if ... # of next month or last month help from today

    Hi Lightkeeper, welcome to the forum.

    Perhaps this will help you.. for dates in the previous month:

    =SUMPRODUCT(--(MONTH(A1:A40)=MONTH(DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())))))

    For the next month, change the -1 to +1.

  3. #3
    Registered User
    Join Date
    07-07-2010
    Location
    Cape Cod MA USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: count if ... # of next month or last month help from today

    You are a STAR! .. THANK YOU!!!!!!!!!!!!!!!!

+ 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