+ Reply to Thread
Results 1 to 6 of 6

Count specific dates in cell range for current month

  1. #1
    Registered User
    Join Date
    05-21-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Cool Count specific dates in cell range for current month

    Hi all
    I have failed to build a working formula for 2003, I have a spread sheet and in column E3:E99 I have entered dates (Appointments)-- on a separate summery sheet I would like to see how many appointments I have scheduled for the current month. I am looking to tie the "valid" count criteria to my computer clock (RTC). In other words I only want to only count the appointments I have in the current month when I open the spreadsheet. My current formatted date is MM/DD/YY. I do not want to count any dates in the selected cells unless they are in the current month and year. Or at least the current month. I am in real need of a sanity check.
    The closest I have gotten to a working formula is
    =SUMPRODUCT(MONTH(E3:E99=MONTH(NOW())) (This is obviously not correct)
    Last edited by rboggio1; 05-21-2009 at 09:37 PM. Reason: Failed to comply with terms

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

    Re: Looking for a formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    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 Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Looking for a formula

    Welcome to the forum, rboggio1.

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Looking for a formula

    Hi,

    try this

    =SUMPRODUCT(--(MONTH(E9:E99)=MONTH(TODAY())),--(YEAR(E9:E99)=YEAR(TODAY())))

  5. #5
    Registered User
    Join Date
    05-21-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Count specific dates in cell range for current month

    Teylyn
    This works
    =SUMPRODUCT(--(MONTH(E3:E99)=MONTH(TODAY())) what comes after that does not. I suspect the front part will get the month but will not differentiate the year. If I left the cell populated next year at the same time it would recount it.Getting closer

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

    Re: Count specific dates in cell range for current month

    Are you sure? I just tested Teylyn's formula and it worked as expected.. i.e. it counts on May 2009 entries in E3:E99... make sure both ranges are the same in the formula

+ 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