LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Counting days in month

Hi James
Assuming you have the Analysis Toolpak loaded (ToolsAddinsAnalysis
Toolpak), then you can use the Eomonth() function.
With Start date in A1, End Date in B1
days in May =EOMONTH(A1,0)-A1+1
days in June =B1-EOMONTH(A1,0)

Format the cells containing the formula as General.
Both formulae assume that you are counting the whole of the start date
and the whole of the end date
--
Regards

Roger Govier


"jamesjohn"
wrote in message
...

How can I separate days into different months and count them ?

If I have a date of arrival and a date of departu

17/05/2006 to 22/06/2006

how can I count the numberof days in May and the number of days in
June
and have them separated ?

Thanks in advance.


--
jamesjohn
------------------------------------------------------------------------
jamesjohn's Profile:
http://www.excelforum.com/member.php...fo&userid=9692
View this thread:
http://www.excelforum.com/showthread...hreadid=545300



 
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
Desperately trying to build a paid time off accrual worksheet... cgautreau Excel Worksheet Functions 9 June 24th 09 10:29 AM
challenging formula(for me), counting days between dates for multipleyears TG Excel Worksheet Functions 5 April 19th 06 05:31 PM
Calculate Days in a Month LGG Excel Discussion (Misc queries) 6 January 13th 06 06:31 PM
Counting Entries by Month and Year ImaGina Excel Worksheet Functions 1 January 5th 06 06:11 AM
Counting days and Configurations together Kevin M Excel Worksheet Functions 2 January 5th 05 07:11 PM


All times are GMT +1. The time now is 05:16 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"