ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula calculating date (https://www.excelbanter.com/excel-discussion-misc-queries/165636-formula-calculating-date.html)

MelB

formula calculating date
 
I have the current date in cell A1 =TODAY(). In cell A2 I need the next
10th. So, if todays date is 12/13/07 I need A2 to return 1/10/08. If
today's date is 2/9/08 I need the date 2/10/08 returned in cell A2.

T. Valko

formula calculating date
 
What should happen when today *is* the 10th?

Try this:

=DATE(YEAR(A1),MONTH(A1)+(DAY(A1)10),10)

2/9/2008 will return 2/10/2008
2/10/2008 will return 2/10/2008
2/11/2008 will return 3/10/2008

--
Biff
Microsoft Excel MVP


"MelB" wrote in message
...
I have the current date in cell A1 =TODAY(). In cell A2 I need the next
10th. So, if todays date is 12/13/07 I need A2 to return 1/10/08. If
today's date is 2/9/08 I need the date 2/10/08 returned in cell A2.





All times are GMT +1. The time now is 09:33 AM.

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