Excel uses DateValue to calculate the number of days between the loan date and the repayment date

Source: Internet
Author: User

When an enterprise lends to banks and individuals, to calculate the number of days between the loan date and the repayment date in Excel, Excel2007 can use the DateValue function to calculate the number of days between the loan date and the repayment date.

As shown in the figure above. Enter the formula in the C2 cell:

=datevalue ("2011-6-8")-datevalue ("2010-9-8")

Press ENTER to calculate the number of days between the loan date and the repayment date based on the repayment date and the loan date.

Excel2007 can use the DateValue function to calculate the number of days between the loan date and the repayment date.

Related instructions:

DATEVALUE function Syntax: DATEVALUE (Date_text)

Date_text represents the text of a date that is represented in Microsoft Excel date format. For example, "2008-8-8" or "30-jan-09" is the quoted text, which is used to represent dates.

If you omit the year portion of Date_text, the function DATEVALUE uses the current year of the internal clock in the computer system. The time information in the Date_text will be ignored.

The DateValue function returns the serial number of the date represented by Date_text. The main function of the function DATEVALUE is to convert the date represented by text into a serial number.

Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.