Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
9 views

Basic Functions and Formula

Uploaded by

Amit Behera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Basic Functions and Formula

Uploaded by

Amit Behera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

FUNCTION AND FORMULA-2

MS EXCEL
DATE & TIME FUNCTIONS
1. DATE
• Returns the number that represents the date in Microsoft Excel date-time
code
• The formula returns the date in DDMMYY format
• Syntax: =DATE(year, month, day)

NOTE:
Year:The value of the year argument can include one to four digits
Month:A positive or negative integer representing the month of the year from
1 to 12 (January to December).
Day:A positive or negative integer representing the day of the month from 1
to 31
2. DATEVALUE
• The DATEVALUE function converts a date in the form of text to a serial
number
• The DATEVALUE function converts a date that is stored as text to a serial
number that Excel recognizes as a date.
• For example, =DATEVALUE ("1/1/2008")
• Syntax: =DATEVALUE(date_text)
Note:
date_text: Text that represents a date in an Excel date format, or a reference
to a cell that contains text that represents a date in an Excel date format. For
example, "1/30/2008" or "30-Jan-2008" are text strings within quotation
marks that represent dates.
3.TIME
• The TIME function in Excel allows you to create time with individual
hour, minute, and second components.
• The arguments are in the following format: hours, minutes, and
seconds.
• Syntax: =TIME(hour, minute, second)

Note:
The range for the input for hours can be from 0-23, and for minutes it
is 0-59 and similar for seconds.
4. NOW
• The NOW Function in Excel is a formula that displays the current
date and time.
• It is automatically refreshed anytime the workbook is opened or a
change is made.
• It can also be manually refreshed by pressing F9.
• Syntax: =NOW()
5. TODAY
• To display the current date in a cell or returns the current date
formatted as a date
• he cell will show the current date, and it will update automatically
each time you open the workbook or recalculate the worksheet.
• Syntax: =TODAY()
6. YEAR(), MONTH(), DAY(), HOUR(), MINUTE(), SECOND()
Year
• Returns the year from a user-supplied date
• Syntax: =YEAR(serial_number)
Month
• Returns the month from a user-supplied date
• Syntax: =MONTH(serial_number)
Day
• Returns the day (of the month) from a user-supplied date
• Syntax: =DAY(serial_number)
Hour
• Returns the hour part of a user-supplied time
• Syntax: =HOUR(serial_number)
Minute
• Returns the minute part of a user-supplied time
• Syntax: =MINUTE(serial_number)
Second
• Returns the seconds part of a user-supplied time
• Syntax: =SECOND(serial_number)

You might also like