ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Dates (https://www.excelbanter.com/excel-worksheet-functions/101795-dates.html)

justlearnin

Dates
 
I have three cells on my worksheet that use dates. The dates that I use are
the last day of the month. I want the first one to be inputed. The third one
I want to be the same as the first, but the second to be the 15th of the
month.

date1 7/31/2006
date2 7/15/2006
date3 7/31/2006

How can I do this since some months have 30 and some have 31?

Flintstone

Dates
 

Justlearnin:

Assuming cell A1 is your input date, place this formula in cell A2.

=DATE(YEAR(A1),MONTH(A1),15)

Place this formula in cell A3.

=DATE(YEAR(A1),MONTH(A1)+1,1)-1


Matt


--
Flintstone
------------------------------------------------------------------------
Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
View this thread: http://www.excelforum.com/showthread...hreadid=565804



All times are GMT +1. The time now is 10:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com