Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help with a simple data calculation ms excel 2003

Posted on 2012-03-22
1
Medium Priority
?
274 Views
Last Modified: 2012-03-22
I am fairly new to excel and cannot figure out a simple date calculation in regards to a result I am getting. I am dealing with two cells. Cell a1 has a heading of date. Cell b1 has a heading of days. So in cell a2 I place a date of say 3/1/12. In cell b2 I have a simple formula of
=today()-a2. This returns a result of 21 which is correct. But if I remove the date my days change to 40990. Is there a way (and if so how) to remove the data and show no results in b2 until a date is actually entered in a2?
0
Comment
Question by:tmaususer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
Frank White earned 400 total points
ID: 37752484
=IF(A2<>"",TODAY()-A2,"")

This will only calculate the date if A2 is not blank. If it is blank, this cell remains blank.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question