?
Solved

Help with a simple data calculation ms excel 2003

Posted on 2012-03-22
1
Medium Priority
?
273 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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 …
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

770 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