• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

Using the DATE function and combining with other functions in Excel

0 Comments

Using the DATE function and combining with other functions in Excel: Excel does not store dates and months in the format of dates. Instead, Excel stores dates as a serial number, which is the main cause of confusion. Therefore, when you need to calculate dates in Excel, the DATE function is the most basic function to use. The DATE function is used to create a date from three separate values of year, month, and day. Follow this article to learn how to use the DATE function in Excel.

1. DATE function structure

Function syntax: =DATE(year, month, day)
Where:

  • year: required argument, is the year used to create the date. The year argument can range from one to four digits. By default, Excel uses the 1900 date system, which means the first day is 01/01/1900.
  • month: required argument, is the month used to create the date. It must be a positive or negative integer.
  • day: required argument, is the day used to create the date. It must be a positive or negative integer.

Note:

  • If the year is from 0 to 1899 (including 0 and 1899), the function adds 1900 to that value to calculate the year.
  • If the year is from 1900 to 9999 (including 1990 and 999), the function uses that value as the year.
  • If the year is less than 0 or greater than 10000, the function will return an error value #NUM!.
  • If the month is greater than 12, the function will add the larger month to the first month in the next year.
  • If the month is negative, the function will subtract the reverse month from the previous year.
  • If the day is greater than the number of days in the determined month, the function will add that larger number of days to the next month.
  • If the day is less than 1, the function will subtract the larger number of days from the previous month.

2. How to use the DATE function

a. Use the DATE function to combine day, month, and year

For example, if we want to combine the following day, month, and year into one:

Using the DATE function and combining with other functions in Excel

Using the DATE function and combining with other functions in Excel

Using the function structure above, we have the formula for cell D2 as follows: =DATE(C2;B2;A2)

Or we can also directly enter the number of days, months, and years into the function as follows: =DATE(20;02;2020)

Copying the above formula for the cells below, we obtain the following results:

Using the DATE function and combining with other functions inFrom the obtained result, we can see that:

  • In cell D3: since the year in cell C3 is 82 < 1900, the function automatically adds 1900 to become the year number 1982.
  • In cell D4: since the year is 11000 > 10000, the function returns an error value of #NUM!
  • In cell D5: since the month is 15 > 12, the function adds the number of months greater than to the next year of 2018, which is 2019.
  • In cell D6: since the month is -4, a negative number, the function subtracts the number of months from the previous year of 2009, which is 2008.
  • In cell D7: since the day is 33, greater than the number of days in May, the function adds the number of days greater than to the next month.
  • In cell D8: since the number of days is -3, a negative number, the function subtracts the number of days from the previous month.

b. Use the DATE function combined with the DAY, MONTH, YEAR functions

For example, we have the initial date and then need to calculate 4 days after that date, 5 months after that date, and 3 years after that date.

Using the DATE function and combining with other functions inBy combining with the YEAR, MONTH, DAY functions, we have the formula for calculating 4 days after the initial date for cell B2 as follows:

=DATE(YEAR(A2);MONTH(A2);DAY(A2)+4)

Copy the formula for the remaining cells in column B to obtain the results:

Using the DATE function and combining with other functions inSimilarly, to calculate 5 months after the initial date, we have the formula for cell C2 as follows:

=DATE(YEAR(A2);MONTH(A2)+5;DAY(A2))

Using the DATE function and combining with other functions inThe formula to calculate 3 years after the initial date for cell D2:

=DATE(YEAR(A2)+3;MONTH(A2);DAY(A2))

Using the DATE function and combining with other functions in Excel

Using the DATE function and combining with other functions in Excel

Thus, the above article has guided you on how to use the DATE function in Excel. Good luck!

Rate this post
23
253 Views
How to quickly insert rows (or columns) in Excel worksheetPrevHow to quickly insert rows (or columns) in Excel worksheetMay 8, 2023
Detailed guide on how to use the BASE function in ExcelMay 9, 2023Detailed guide on how to use the BASE function in ExcelNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years
    Rated 5.00 out of 5
    $47.00
  • Avast Premium Security 2021 10 Devices 1 Year Global Avast Premium Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $28.00
  • Avast Ultimate Suite 2021 3 Years 10 Devices Global Avast Ultimate Suite 2021 3 Years 10 Devices Global
    Rated 5.00 out of 5
    $90.00
  • Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
  • Kaspersky Internet Security 2021 1 year 1 device key Global Kaspersky Internet Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $24.00
Products
  • Microsoft Office Professional Plus 2019 CD Key Global Microsoft Office Professional Plus 2019 CD Key Global - 5 PC
    Rated 4.92 out of 5
    $32.00
  • Buy Microsoft Office Professional Plus 2019 CD Key Global - 5 PC Buy Microsoft Office Professional Plus 2019 CD Key Global - 5 PC
    Rated 4.95 out of 5
    $32.00
  • Windows Server 2022 Datacenter Key Global Windows Server 2022 Datacenter Key Global
    Rated 5.00 out of 5
    $7.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
  • Kaspersky Plus - 1 Device 1 Year - GLOBAL Kaspersky Plus - 1 Device 1 Year - GLOBAL $23.00
  • Microsoft Project Standard 2019 - 1 PC Microsoft Project Standard 2019 - 1 PC $12.00
  • Microsoft Visio Professional 2021 Key 1PC Microsoft Visio Professional 2021 Key 1PC $13.00
  • Office 2024 Home And Business For Mac/Pc Bind Office 2024 Home And Business For Mac/Pc Bind $99.00
  • Windows Server 2016 Essentials Key Global Windows Server 2016 Essentials Key Global
    Rated 4.79 out of 5
    $10.00
  • Microsoft Visio Professional 2013 Key 1PC Microsoft Visio Professional 2013 Key 1PC $9.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.