Solved

Date subtraction

Posted on 2013-11-06
4
340 Views
Last Modified: 2013-11-06
If I want to subtract "days" from two cells that have dates formatted such as 09/03/13, and 11/03/13, how do I write a successful formula in a empty cell to facilitate this request?
0
Comment
Question by:Pete Edwards
[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
  • 2
  • 2
4 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 39628508
Days are simply integers in Excel so if you have a date in A1 you can get 10 days before that date by subtracting 10, i. e in B1

=A1-10

format B1 inthe same date format

regards, barry
0
 

Author Comment

by:Pete Edwards
ID: 39628511
i have a broad range of dates going back 5 years formatted as mentioned above all accross the board I want to subtract by 10/31/13 to see how many days, how do I do this Barry in an empty cell?

Thanks
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 400 total points
ID: 39628521
OK, sorry so you want the number of days from your dates until a specific date?

If you have dates in A2 down then put this formula in B2

=DATE(2013,10,31)-A2

format B2 as general and then you can drag the formula down the column - it will automatically adjust for all your other dates

regards, barry
0
 

Author Closing Comment

by:Pete Edwards
ID: 39628536
Thanks Barry.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
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…

624 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