Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Date Problem: Between 2 dates

Can anyone help, I have a mixed set of dates and like to produce a graph that
shows the number of dates between to dates.

To show something like

2004 June July Aug Sept
2005 June July Aug Sept
2006 June July Aug Sept
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Date Problem: Between 2 dates

Do you mean from 1st June to 30th September?

You can just subtract the earlier date from the later date and format
the cell as number with 0 dp to get the number of days between two
dates.

Hope this helps.

Pete

Mike wrote:
Can anyone help, I have a mixed set of dates and like to produce a graph that
shows the number of dates between to dates.

To show something like

2004 June July Aug Sept
2005 June July Aug Sept
2006 June July Aug Sept


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Date Problem: Between 2 dates

Pete

Sorry for the poor explanation.

If you have 300 dates over 4 year, what i would like to know is how to
count the number of dates between to dates; so between say 1st july 2004 and
31 july2004.
Then with this information, make a graph to show it.

Mike
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Date Problem: Between 2 dates

Sorry, I still don't understand what you are trying to do. Can you post
an example of the data you have along with what you want to do with it?

Pete

Mike wrote:
Pete

Sorry for the poor explanation.

If you have 300 dates over 4 year, what i would like to know is how to
count the number of dates between to dates; so between say 1st july 2004 and
31 july2004.
Then with this information, make a graph to show it.

Mike


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Date Problem: Between 2 dates


If your dates are in A1:A300

to count the number of dates in that range that fall between a date in
H1 and a later date in H2, either

=COUNTIF(A1:A300,"="&H1)-COUNTIF(A1:A300,""&H2)

or

=SUMPRODUCT(--(A1:A300=H1),--(A1:A300<=H2))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=567181

Reply
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
Deleting time part of a Date, subtracting dates Shirley Munro Excel Discussion (Misc queries) 3 June 21st 06 11:58 AM
Charting count of unique dates in a list [email protected] Charts and Charting in Excel 11 June 6th 06 02:31 PM
add/subtract dates problem in Excel..... Gary in Pennsyl Excel Discussion (Misc queries) 3 May 31st 06 08:58 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM


All times are GMT +1. The time now is 01:45 PM.

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"