![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 2
|
Hi
I have a question, i am trying to automatically roll up the month on a date. Example; DUE DATE TODAYS DATE 26/05/2002 TODAY() What i need to say is, IF DUE DATE = TODAY() then change DUE DATE to the next month (26/06/2002). The day will never change but the month always will. So when TODAY() = 26/06/2002 then change it to 26/07/2002, so on, so on. This will always be in the same cell. Can this be done? This is what i tried: IF(A1=B1,A1+31,A1) Result = 00/01/1900 Any help on this would be much appreciated. Daren |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 175
|
Daren,
use the EDATE function, where EDATE(Date,1) adds a month. You will need to install add-ins.
__________________
Regards, Mike. |
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Location: Wrexham, North Wales,UK
Posts: 10
|
Hi Daren,
I used IF(A1=B1,A1+31,A1) and got the correct date? I already use this. I had to format the cell to the date type I required. Paul |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: May 2002
Location: Wrexham, North Wales,UK
Posts: 10
|
Ian
Good point! I will try this. Thanks Paul |
|
|
|
|
|
#6 |
|
New Member
Join Date: May 2002
Posts: 2
|
Hi thanks for the responses.
I re-tried the formula but still the same answer? 00/01/1900 I tried changing the format but no joy? Curious about the EDATE function, as I haven’t used this before, could someone send me an example of what I’m trying to do? Is it possible place the start date in cell A1: then say if the value in A2: is the same date, then forward A1: by one calendar month. Thanks Daren |
|
|
|
|
|
#7 |
|
New Member
Join Date: May 2002
Posts: 9
|
You might wish to due a search for the thread called Date Incrementing Woes started by me. Sounds like you wish to do just about the same thing I am.
Peace! Troy |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|