MS Excel date calculation

Posted on 1999-12-14
Medium Priority
Last Modified: 2009-07-29
in MS Excel (Office 2000), what formula will produce the number of days (including weekends) between two dates.  Example: the number of days from 2/14/99 - 2/26/99.  The column cells for "Date" are formatted as a date and is column A.  I am guessing that it is the DATEIF function, but don't know how this works.  Thanks.
Question by:dfeller

Expert Comment

ID: 2280442
you can just subtract the 2 cells and format the cell returning the difference as Number instead of date, this will return the number of days
LVL 22

Accepted Solution

ture earned 150 total points
ID: 2280454

This is really easy! Just subtract and add one...

A1: 2/14/99
A2: 2/26/99
A3: =(A2-A1)+1

Format A3 as a number.


Ture Magnusson
Karlstad, Sweden

Author Comment

ID: 2280547

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

What to do if a split doesn't fit? Or a bunch of invoice lines must be rounded while the sum must match a total? It takes a little, but - when done - it is extremely easy to implement.
Read this tutorial to learn how to fix repeating password error prompts when setting up Gmail IMAP with Microsoft Outlook. The entire process is described with step by step, illustrated instructions. Enjoy...
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

586 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