LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default If date in column A is less than 15th of month can I display next.

Another version based on Max's idea:

=IF(A1="","",DATE(YEAR(A1),MONTH(A1)+(DAY(A1)=15) ,1))

(day(a1)=15) will return True or false.
When added to a number (like month(a)), it's like adding 1 (true) or 0 (false).





Angela wrote:

If date in column A is less than 15th of month is there a formula I can use
to display the next mth in column B such that I can obtain the following

Column A Column B
05-Oct-07 Oct-07
05-Nov-07 Nov-07
15-Oct-07 Nov-07
19-Nov-07 Dec-07

Thanks
--
Angela


--

Dave Peterson


 
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
Formatting for 15th and last day of the month Emilio Guerra Excel Worksheet Functions 2 April 29th 23 07:41 PM
15th of prior month Deb Excel Worksheet Functions 3 February 6th 07 09:48 PM
How to display month only for date format? Eric Excel Worksheet Functions 1 September 24th 06 03:06 PM
How to display month only for date format? Eric Excel Discussion (Misc queries) 2 September 24th 06 02:59 PM
i want to display the month from a date into another cell weazal5 Excel Worksheet Functions 1 April 26th 05 08:51 AM


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