A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date formulas



 
 
Thread Tools Display Modes
  #1  
Old January 5th, 2010, 10:27 PM posted to microsoft.public.excel.worksheet.functions
Construk
external usenet poster
 
Posts: 9
Default Date formulas

Hi,
I'm doing a timesheet. The month begin on the 21 and end on 20th of each
month (don't ask). It'easy to set a listmenu to choose the month, have the
first day to start with the 21, having 31 line with =1+precedente line.

But for the three last line, idon't know how to have it to stop displaying
dates after the 20th, for Febuary and the other 30 days months.

An idea anyone?
thank
  #2  
Old January 5th, 2010, 10:45 PM posted to microsoft.public.excel.worksheet.functions
Niek Otten
external usenet poster
 
Posts: 2,533
Default Date formulas

In A2:

=IF(A1="","",IF(MONTH(A1+1)=MONTH(A1),A1+1,""))

Copy down as far as needed

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Construk" wrote in message
...
Hi,
I'm doing a timesheet. The month begin on the 21 and end on 20th of each
month (don't ask). It'easy to set a listmenu to choose the month, have the
first day to start with the 21, having 31 line with =1+precedente line.

But for the three last line, idon't know how to have it to stop displaying
dates after the 20th, for Febuary and the other 30 days months.

An idea anyone?
thank


  #3  
Old January 5th, 2010, 11:26 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Date formulas

In A2: =IF(A1="","",IF(A1+1EDATE($A$1,1),A1+1,""))

copy down as far as needed



"Construk" wrote:

Hi,
I'm doing a timesheet. The month begin on the 21 and end on 20th of each
month (don't ask). It'easy to set a listmenu to choose the month, have the
first day to start with the 21, having 31 line with =1+precedente line.

But for the three last line, idon't know how to have it to stop displaying
dates after the 20th, for Febuary and the other 30 days months.

An idea anyone?
thank

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.