#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DDD DDD is offline
external usenet poster
 
Posts: 24
Default If statements

NOT REALLY SURE HOW TO EXPLAIN IT, SO I THOUGHT IT MIGHT BE EASIER IF YOU
TYPE THIS IN A BLANK SPREAD SHEET

cell A1 type in - 08-Dec
cell B2 type in - 7
cell C1 type in - =A1+B1 (the answer is 15-Dec)
cell D1 type in - =IF(A1=0,"",C1) (the answer is 15-Dec)
cell E1 type in - =IF(D1=0,"",D1-TODAY())

(todays date is 7/12/2008 & the answer in E1 is 08-Dec)



If i were to delete the contents of A1, then cells D1 & E1 should turn blank.

When i did it D1 becomes blank but E1 says #VALUE! (& has a green triangleat
the top right corner)

can any tell me how to make cell E1 blank

i tried clicking the green triangle then the yellow box with ! inside, i
tried most of the options that may help me but i could not understand any of
them

If this helps - i am using Excel 2007




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 143
Default If statements

cell A1 type in - 08-Dec
cell B2 type in - 7
cell C1 type in - =A1+B1 (the answer is 15-Dec)
cell D1 type in - =IF(A1=0,"",C1) (the answer is 15-Dec)
cell E1 type in - =IF(D1=0,"",D1-TODAY())

(todays date is 7/12/2008 & the answer in E1 is 08-Dec)

If i were to delete the contents of A1, then cells D1 & E1 should
turn blank.

When i did it D1 becomes blank but E1 says #VALUE! (& has a green
triangleat the top right corner)

can any tell me how to make cell E1 blank


One way is to use this in E1:
=IF(D1="","",D1-TODAY())

Incidentally, I'd suggest formatting E1 as a number. It's the number of
days between the two dates, "7 days after A1" and TODAY(). I get 8 days.

(I have Excel 2003.)
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
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
if statements Julie Excel Discussion (Misc queries) 1 April 28th 06 07:49 PM
IF and OR statements Loraloo Excel Discussion (Misc queries) 3 March 4th 06 11:42 PM
if statements help Smurphy New Users to Excel 2 February 6th 06 09:23 PM
IF statements y_not Excel Discussion (Misc queries) 4 August 9th 05 04:35 PM


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

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

About Us

"It's about Microsoft Excel"