Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default calculate a date based on specified day of the month

I need to be able to enter a day of the month (1st, 5th, 10th, 15th, 20th,
25th) and get the next available date with that day in it. confusing.... ok
if I put a 5 in a cell today , I need another cell to come up with 3/5/09 .
If I put a 5 in a cell on 4/10/09, the other cell should come up with 5/5/09
and so on for each of the available payment dates. Did I give enough
information? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default calculate a date based on specified day of the month

If I understand your question, I think the following formula will do
what you want. It assumes the number (5, 10, 15, etc) is in cell A1.

=IF(A1<DAY(TODAY()),DATE(YEAR(TODAY()),MONTH(TODAY ())+1,A1),DATE(YEAR(TODAY()),MONTH(TODAY()),A1))

If A1 is less than (earlier) the day today, it returns the A1th day of
next month. If A1 is greater than or equal to (later than) the day
today, it return the A1th day of this month.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Tue, 17 Feb 2009 13:16:09 -0800, tara
wrote:

I need to be able to enter a day of the month (1st, 5th, 10th, 15th, 20th,
25th) and get the next available date with that day in it. confusing.... ok
if I put a 5 in a cell today , I need another cell to come up with 3/5/09 .
If I put a 5 in a cell on 4/10/09, the other cell should come up with 5/5/09
and so on for each of the available payment dates. Did I give enough
information? Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default calculate a date based on specified day of the month

=DATE(YEAR(TODAY()),MONTH(TODAY())+IF(DAY(TODAY()) =A1,1,0),A1)

Check the = ; you may need just , I don't know

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"tara" wrote in message
...
I need to be able to enter a day of the month (1st, 5th, 10th, 15th, 20th,
25th) and get the next available date with that day in it. confusing....
ok
if I put a 5 in a cell today , I need another cell to come up with 3/5/09
.
If I put a 5 in a cell on 4/10/09, the other cell should come up with
5/5/09
and so on for each of the available payment dates. Did I give enough
information? Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default calculate a date based on specified day of the month

Thanks a lot, it works perfect.

"Niek Otten" wrote:

=DATE(YEAR(TODAY()),MONTH(TODAY())+IF(DAY(TODAY()) =A1,1,0),A1)

Check the = ; you may need just , I don't know

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"tara" wrote in message
...
I need to be able to enter a day of the month (1st, 5th, 10th, 15th, 20th,
25th) and get the next available date with that day in it. confusing....
ok
if I put a 5 in a cell today , I need another cell to come up with 3/5/09
.
If I put a 5 in a cell on 4/10/09, the other cell should come up with
5/5/09
and so on for each of the available payment dates. Did I give enough
information? Thanks


Reply
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
How to calculate a date: first day of the month after 60 days Claudia Excel Discussion (Misc queries) 12 June 28th 07 05:10 AM
how to calculate a month without the full date? Jared New Users to Excel 16 August 29th 06 05:19 PM
Calculate 1st of month date from existing date. Jim15 Excel Discussion (Misc queries) 1 January 9th 06 10:05 PM
Calculate month-end date from date in adjacent cell? Matt D Francis Excel Worksheet Functions 4 May 19th 05 04:55 AM
Excel: Is there a way to calculate the date as week of month? debra adams Excel Discussion (Misc queries) 2 January 3rd 05 09:39 PM


All times are GMT +1. The time now is 06:58 AM.

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

About Us

"It's about Microsoft Excel"