MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 05:48 PM   #1
Mordax
 
Join Date: Mar 2004
Location: NC
Posts: 3
Default Excel dates

I have a Due Date Spreadsheet where I have used Conditional formating to show the dates that are overdue in red, within 30 days in yellow and everything else in green. However, there some that have no dates and the formula always posts a date. I want to eliminate that date until a date has been put in a specific box. I.E

A1= 1 Mar 02
B1= A1+365 (1 Mar 03)

A2= Blank
B2= A2+365 (30 Dec 00)

the parenthesis denotes the answer returned from the formula.

I wish to have the cell blank rather than showing the date of (30 Dec 00) if the prior cell has no information either. Can anyone help me out on this?
__________________
Without Weather the Pilots Would be lost in the clouds.
Mordax is offline   Reply With Quote
Old Mar 30th, 2004, 05:50 PM   #2
Brian from Maui
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,599
Default Re: Excel dates

Quote:
Originally Posted by Mordax
I have a Due Date Spreadsheet where I have used Conditional formating to show the dates that are overdue in red, within 30 days in yellow and everything else in green. However, there some that have no dates and the formula always posts a date. I want to eliminate that date until a date has been put in a specific box. I.E

A1= 1 Mar 02
B1= A1+365 (1 Mar 03)

A2= Blank
B2= A2+365 (30 Dec 00)

the parenthesis denotes the answer returned from the formula.

I wish to have the cell blank rather than showing the date of (30 Dec 00) if the prior cell has no information either. Can anyone help me out on this?
filter with an IF statement,

=IF(A2,A2+365,"")
Brian from Maui is offline   Reply With Quote
Old Mar 30th, 2004, 05:50 PM   #3
bolo
 
Join Date: Mar 2002
Posts: 292
Default Re: Excel dates

try
B2= if(isblank(A2),"",A2+365)
HTH
bolo is offline   Reply With Quote
Old Mar 30th, 2004, 05:54 PM   #4
Mordax
 
Join Date: Mar 2004
Location: NC
Posts: 3
Default Re: Excel dates

Thanks for the help.....Sorry it was a simple no duh question.
__________________
Without Weather the Pilots Would be lost in the clouds.
Mordax is offline   Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 04:59 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.