Biographies Characteristics Analysis

Calendar day counter. Calculate days, months and years between two dates online

The free online calculator Kontur.Accounting will help you and tell you how many days have passed between two given dates. In addition, if you have a need, you can calculate how many calendar, weekends or working days (hours) the specified period of a year or several years contains.

How many days between dates? Instruction

You simply set a specific start and end day and get a calculation in a fraction of a second. The online calculator calculates all data independently. If you change the original days of the week, the result is automatically recalculated to take into account the leap year.

Important: you cannot take monthly working days/hours from calculations for previous years and provide them as calculations - the data will vary. Therefore, it is better to use a calculator.

So, the procedure is:

  1. In the fields “Start date” and “End date”, select the start and end days of the countdown, respectively, starting from 2013 and ending in the future 2018.
  2. Set the number of working hours per day in the next field. By default, this field is already set to 8 hours (40-hour work week), but you can change this figure.
  3. On the right side of the screen on the banner you will see the result: working days, calendar days and working hours between the given dates. The results must be copied and saved in your document.

What can you use the calculator for?

  1. To calculate penalties and delays under contracts
  2. How to understand the efficiency of using a resource and the deadlines for using it
  3. How not to accidentally schedule a task on a weekend
  4. How much time is left until the deadline

Example:

You are an accountant. The manager asked you to provide data on the number of working hours that all employees of the company should work in February in the next couple of minutes. You can easily determine the number of employees - you have numbers in front of your eyes. But the number of hours must be counted .... And how many days are there in February? What about a leap year? What days were the days off? And how to determine the number of days of holidays?

Solution: just use our widget. You will receive all the information automatically, you do not need desktop calendars and calculators.

Did you like this calculator? Then try our other features

Do you want to keep accounting, send reports and make calculations in a convenient and simple web service? Try Kontur.Accounting for a whole month for free! We will quickly teach you how to use the service and answer all your questions!

To perform certain tasks in Excel, you need to determine how many days have passed between certain dates. Fortunately, the program has tools that can solve this issue. Let's find out how you can calculate the date difference in Excel.

Before you start working with dates, you need to format the cells for this format. In most cases, when you enter a character set that looks like a date, the cell will reformat itself. But it is still better to do it manually to insure yourself against surprises.


Now all the data that will be contained in the selected cells will be recognized by the program as a date.

Method 1: simple calculation

The easiest way to calculate the difference of days between dates is with a simple formula.


Method 2: RAZDAT function

You can also use a special function to calculate the difference in dates RAZDAT. The problem is that it is not in the list of the Function Wizard, so you have to enter the formula manually. Its syntax looks like this:

RAZDAT(start_date, end_date, unit)

"Unit"- this is the format in which the result will be displayed in the selected cell. The symbol used in this parameter determines the units in which the total will be returned:

  • "y" - full years;
  • "m" - complete months;
  • "d" - days;
  • "YM" - difference in months;
  • "MD" - the difference in days (months and years are not taken into account);
  • "YD" - the difference in days (years are not taken into account).

You also need to note that, unlike the simple formula method described above, when using this function, the start date must be in the first place, and the end date should be in the second. Otherwise, the calculations will be incorrect.


Method 3: calculating the number of working days

Excel also has the ability to calculate the working days between two dates, that is, excluding weekends and holidays. For this, the function is used CHISTRABNI. Unlike the previous statement, it is listed in the Function Wizard. The syntax for this function is:

NETWORKDAYS(start_date, end_date, [holidays])

In this function, the main arguments are the same as those of the operator RAZDAT- start and end date. In addition, there is an optional argument "Holidays".

It should be replaced by the dates of public holidays, if any, for the period covered. The function calculates all days of the specified range, excluding Saturdays, Sundays, and also those days that are added by the user to the argument "Holidays".


After the above manipulations, the number of working days for the specified period will be displayed in the pre-selected cell.

As you can see, the Excel program provides its users with a fairly convenient tool for calculating the number of days between two dates. At the same time, if you just need to calculate the difference in days, then the best option would be to use a simple subtraction formula, rather than using the function RAZDAT. But if you need, for example, to calculate the number of working days, then the function will come to the rescue NETWORKDAYS. That is, as always, the user should decide on the execution tool after he has set a specific task.

If on an Excel sheet you work not only with numbers, graphs, pictures, but also with dates, then you probably came across a situation where you had to calculate the difference between them. For example, you need to determine the number of days or months for a certain period of time, or calculate the age of a person so that the result is in days, months and years, or maybe it is required to calculate working days.

There is already an article about calculating the difference in Excel on the site, and in it I touched on dates a little. But now let's look at this issue in more detail and figure out how to calculate the number of days between two dates in a simple way or using the RAZDAT () function, and how to determine the number of working days.

Method 1: subtraction

Let's start with the simplest - we subtract the second from one date, and we get the value we need. Before that, make sure that the format of the cells in which the numbers are entered is selected "Date".

If you haven’t filled them in yet, then select the range you want to work with and click on the small arrow next to the name of the “Number” group.

In the window that opens on the left, select the format that suits us, and then in the main area decide on the type: 03/14/12, 14 Mar 12 or another. Press "OK".

In those cells for which you have just changed the format, enter data. I filled out A1 and B1. Now you need to select any cell ( D1 ) in which the general data format is set, otherwise the calculations will be incorrect. Put “=” in it and press first the latest (B1) date, then the early (A1). To calculate the number of days between them, press "Enter".

Method 2: using a function

To do this, select the cell in which the result will be (B3), and see that the general format is selected for it.

To calculate the days, we will use the RAZDAT() function. It includes three arguments: start and end date, unit. The unit is what we want to get the result in. Substituted here:

"d" - the number of days;
"m" - the number of full months;
"y" - the number of full years;
"md" - will count the days without taking into account months and years;
"yd" - counting days without taking into account only years;
"ym" - counts the months without taking into account the year.

We put an equal sign in B3, write RAZDAT and open the bracket. Then we select the early date (A1), then the late one (B1), put the appropriate unit in quotation marks and close the bracket. Between all arguments put ";" . To calculate, press "Enter".

I got this formula:

RAZNDAT(A1;B1;"d")

Choosing “d” as the unit, I got the result - 111.

If you change this value, for example, to "md", then the formula will calculate the difference between 5 and 24, excluding months and years.

By changing this argument in this way, it will be possible to derive the exact age of a person. In one cell there will be years "y", the second months "ym", the third days "md"

Method 3: counting working days

Let's take this table as an example. In column A we have the beginning of the month or the starting date of the count, in B we have the end of the month or the count. This function counts working days, excluding Saturdays and Sundays, but there are also holidays in months, so we will fill column C with the corresponding dates.

NETWORKDAYS(A5;B5;C5)

As arguments, we specify the start date (A5), then the end date (B5). The last argument is the holidays (C5). We separate them ";" .

By pressing "Enter" the result will appear, in the example cell D5 - 21 days.

Now consider if there are several holidays in a month. For example, in January New Year and Christmas. Select the cell ( D6 ) and put it equal. Then click on the letter "f" in the formula bar. A window will open "Insert Function". In the "Category" field, select "Full alphabetical list" and find the desired function in the list. Click OK.

Next, you need to select the arguments of the function. In "Start_date" we select the initial value (A6), in "End_date" - the final (B6). In the last field, enter the dates of the holidays in brackets () and quotes "". Then press "OK".

As a result, we will get the following function and the value will be calculated excluding weekends and specified holidays:

NETWORKDAYS(A6,B6,("01/01/17", "01/07/17"))

In order not to register holidays manually, you can specify a certain range in the corresponding field. I have it C6:C7.

Working days will be counted, and the function will look like:

NETWORKDAYS(A6;B6;C6:C7)

Now let's do the calculation for the last month. Enter the function and fill in its arguments:

NETWORKDAYS(A8;B8;C8)

In February, it turned out 19 working days.

About other date and time functions in Excel, I wrote a separate article, and you can read it by clicking on the link.

The date calculator is designed to calculate the number of days between dates, as well as to find a date by adding or subtracting a certain number of days to a known date.

Add days to a date

In order to find out what date will be in a certain number of days, use this option. Enter the start date and the number of days to add to it. To subtract, use the minus value. The calculator also has an option to add business days only.

Calculating the number of days between dates

This calculation method will answer the question "how many days have passed since the date". Enter the start date and end date and click the "calculate" button. The calculator will show how many days between the entered dates. Separately, the calculator will show the number of working days.

With this option, you can calculate how many days are left until a certain event, such as a birthday or a holiday. To do this, enter today's date in the start date field, and the date of the event in the end date field.

Holidays

The calculator can calculate, add and subtract both calendar days and working days. Official non-working holidays are:

  • January 1,2,3,4,5,6,8 - New Year holidays
  • January 7 - Orthodox Christmas
  • February 23 - Defender of the Fatherland Day
  • March 8 - International Women's Day
  • May 1 - Spring and Labor Day
  • May 9 - Victory Day
  • June 12 - Day of Russia
  • November 4 - National Unity Day

If a public holiday falls on a Saturday or Sunday, it is moved to the next business day. But sometimes the weekend is moved to a completely different place on the calendar. For example, Saturdays and Sundays that fall on New Year's holidays can be moved to May to extend the May holidays.

So, in 2019 the situation is as follows...

Postponement of holidays in 2019

In addition to official holidays, in 2019, May 2, 3 and 10 are also days off due to the transfer of days off from the New Year holidays.


When calculating days, our calculator takes into account both official holidays and all transfers.