A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date problem



 
 
Thread Tools Display Modes
  #1  
Old September 20th, 2008, 09:03 AM posted to microsoft.public.excel.newusers
Saylindara
external usenet poster
 
Posts: 85
Default Date problem

I'm preparing an employee course attendance list. There is a column for date
course attended and another for when it needs to be updated using format for
adding one, 2 or whatever years to the course attended column (there are lots
of courses). At the moment the course attended columns are blank (it will
take me a while to fill in the dates). The course update column shows
31/12/1900. As I add the date the employee attends a course this changes to
the correct update date. But it is driving me mad that I can't make
31/12/1900 disappear when the cell that the formula is based on is blank . I
have tried using conditional formatting. I have tried just pasting the
formula and not the value but to no avail. What can I do?
  #2  
Old September 20th, 2008, 10:38 AM posted to microsoft.public.excel.newusers
Mike H
external usenet poster
 
Posts: 8,419
Default Date problem

Hi,

This checks b2 and adds 2 years to the date or does nothing if B2 is empty

=IF(B2="","",DATE(YEAR(B2)+2,MONTH(B2),DAY(B2)))

Mike

"Saylindara" wrote:

I'm preparing an employee course attendance list. There is a column for date
course attended and another for when it needs to be updated using format for
adding one, 2 or whatever years to the course attended column (there are lots
of courses). At the moment the course attended columns are blank (it will
take me a while to fill in the dates). The course update column shows
31/12/1900. As I add the date the employee attends a course this changes to
the correct update date. But it is driving me mad that I can't make
31/12/1900 disappear when the cell that the formula is based on is blank . I
have tried using conditional formatting. I have tried just pasting the
formula and not the value but to no avail. What can I do?

  #3  
Old September 20th, 2008, 11:00 AM posted to microsoft.public.excel.newusers
Saylindara
external usenet poster
 
Posts: 85
Default Date problem

Brilliant! Thank you.

"Mike H" wrote:

Hi,

This checks b2 and adds 2 years to the date or does nothing if B2 is empty

=IF(B2="","",DATE(YEAR(B2)+2,MONTH(B2),DAY(B2)))

Mike

"Saylindara" wrote:

I'm preparing an employee course attendance list. There is a column for date
course attended and another for when it needs to be updated using format for
adding one, 2 or whatever years to the course attended column (there are lots
of courses). At the moment the course attended columns are blank (it will
take me a while to fill in the dates). The course update column shows
31/12/1900. As I add the date the employee attends a course this changes to
the correct update date. But it is driving me mad that I can't make
31/12/1900 disappear when the cell that the formula is based on is blank . I
have tried using conditional formatting. I have tried just pasting the
formula and not the value but to no avail. What can I do?

  #4  
Old September 21st, 2008, 06:38 AM posted to microsoft.public.excel.newusers
Shane Devenshire
external usenet poster
 
Posts: 845
Default Date problem

Hi,

Suppose the start date is in cell A1 then in B1 enter the formula

=IF(A1,EDATE(A1,24),"")

To take advantage of the EDATE function in 2003 or earlier you must attach
the Analysis ToolPak - choose Tools, Add-Ins and check the Analysis ToolPak.

Cheers,
Shane Devenshire

"Saylindara" wrote in message
...
I'm preparing an employee course attendance list. There is a column for
date
course attended and another for when it needs to be updated using format
for
adding one, 2 or whatever years to the course attended column (there are
lots
of courses). At the moment the course attended columns are blank (it will
take me a while to fill in the dates). The course update column shows
31/12/1900. As I add the date the employee attends a course this changes
to
the correct update date. But it is driving me mad that I can't make
31/12/1900 disappear when the cell that the formula is based on is blank .
I
have tried using conditional formatting. I have tried just pasting the
formula and not the value but to no avail. What can I do?


  #5  
Old September 21st, 2008, 09:27 AM posted to microsoft.public.excel.newusers
Saylindara
external usenet poster
 
Posts: 85
Default Date problem

That's a nice solution too. This spreadsheet will go on our intranet. Will
all users (who will just be able to read only) have to have the ToolPak
attached too?

"Shane Devenshire" wrote:

Hi,

Suppose the start date is in cell A1 then in B1 enter the formula

=IF(A1,EDATE(A1,24),"")

To take advantage of the EDATE function in 2003 or earlier you must attach
the Analysis ToolPak - choose Tools, Add-Ins and check the Analysis ToolPak.

Cheers,
Shane Devenshire

"Saylindara" wrote in message
...
I'm preparing an employee course attendance list. There is a column for
date
course attended and another for when it needs to be updated using format
for
adding one, 2 or whatever years to the course attended column (there are
lots
of courses). At the moment the course attended columns are blank (it will
take me a while to fill in the dates). The course update column shows
31/12/1900. As I add the date the employee attends a course this changes
to
the correct update date. But it is driving me mad that I can't make
31/12/1900 disappear when the cell that the formula is based on is blank .
I
have tried using conditional formatting. I have tried just pasting the
formula and not the value but to no avail. What can I do?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:31 PM.


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