LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BrianInCalifornia
 
Posts: n/a
Default Counting dates for a the present month but not future months

How do I count the number of dates found in an array of dates, for a given
month. In addition, I do not wish to count any dates that occur in future
months.

Right now my formula looks like this, where "my_dates" is a range on another
worksheet containing dates, and "given_mo_yr" is a given Month/Year date.

{COUNT(IF(YEAR(my_date)=YEAR(given_mo_yr),IF(MONTH (my_date)=MONTH(given_mo_yr),IF(MONTH(my_date)<=MO NTH(NOW()),my_date))))}

The problem with this is that it counts dates that occur in the future, and
my goal is to not count those dates until it is that month.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dates - Months & Years Rick Excel Worksheet Functions 5 November 23rd 05 04:11 PM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 08:00 PM
months between 2 dates!!! speary Excel Discussion (Misc queries) 1 August 19th 05 03:22 PM
Counting months Aaron Howe Excel Worksheet Functions 5 July 11th 05 07:35 PM
Need More Help on Dates to Months Xandlyn Excel Worksheet Functions 4 March 12th 05 12:50 PM


All times are GMT +1. The time now is 06:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"