SlideShare a Scribd company logo
Date and time functions
Cambridge AS level
Satree Phuket School - IPC
Today’s date
1. To enter today's date in Excel, use the TODAY function.
2
Today’s date
2. To enter the current date and time, use the NOW function.
3
Today’s date
3. To enter the current time only, use NOW()-TODAY() and
apply a time format.
4
Static Date & Time
1. To enter the current date as a static value, press CTRL + ;
(semicolon).
5
Static Date & Time
2. To enter the current time as a static value, press CTRL +
SHIFT + ; (semicolon).
6
Static Date & Time
3. To enter the current date and time as a static value, simply
press CTRL + ; (semicolon), enter a space and press CTRL +
SHIFT + ; (semicolon).
7
Date Difference
1. Fill in "d" for the third argument to get the number of days
between two dates.
Note: =A2-A1 produces the exact same result!
8
Date Difference
2. Fill in "m" for the third argument to get the number of months between two
dates.
9
Date Difference
3. Fill in "y" for the third argument to get the number of years between two dates.
10
Date Difference
4. Fill in "yd" for the third argument to ignore years and get the number of days
between two dates.
11
Date Difference
5. Fill in "md" for the third argument to ignore months and get the number of days
between two dates.
12
Date Difference
6. Fill in "ym" for the third argument to ignore years and get the number of
months between two dates.
13
Date Difference
Important note: the DATEDIF function returns the number of complete days, months or years. This may
give unexpected results when the day/month number of the second date is lower than the day/month
number of the first date. See the example below.
14
Time Difference
1. Simply subtract the start time from the end time.
15
Time Difference
2. Change the number format of the values in cell A2, B2
and C2 to General.
16
Time Difference Formula
The simple formula shown above doesn't work if the start
time is before midnight and the end time is after midnight.
1. Times that are negative show as ######.
17
Time Difference Formula
2. To clearly see this, change the number format of the
values in cell A2, B2 and C2 to General.
18
Time Difference Formula
3. The time difference formula below always works.
Explanation: if the end time is greater than or equal to the start time, simply
subtract the start time from the end time. If not, add 1 (full day) to the end time
to represent a time on the next day and subtract the start time.
19
Time Difference in Hours as Decimal Value
To calculate the difference between two times in hours as a decimal
value, multiply the previous formula by 24 and change the number
format to General.1. The formula below does the trick.
20
Calculate Age
To calculate the age of a person in Excel, use the DATEDIF function and the
TODAY function. The DATEDIF function has three arguments.
1. Enter the date of birth into cell A2.
21
Calculate Age
2. Enter the TODAY function into cell B2 to return today's
date.
22
Calculate Age
3. The DATEDIF function below calculates the age of a person.
Note: fill in "y" for the third argument to get the number of complete years
between the date of birth and today's date.
23
Calculate Age
4. Calculate the age of a person without displaying today's date.
24
Calculate Age
5. Calculate the age of a person on a specific date.
Note: the DATE function accepts three arguments: year, month and day.
25
Calculate Age
6. Calculate the age of a person in years, months and days.
Note: fill in "ym" for the third argument to ignore years and get the number of
months between two dates. Fill in "md" for the third argument to ignore
months and get the number of days between two dates. Use the & operator to
concatenate strings.
26
WeekDay Function
1. The WEEKDAY function in Excel returns a number from 1 (Sunday) to 7
(Saturday) representing the day of the week of a date. Apparently, 12/18/2017
falls on a Monday.
27
Week Days
2. You can also use the TEXT function to display the day of the week.
28
Week Days
3. Or create a custom date format (dddd) to display the day of the week.
29
Networkdays function
1. The NETWORKDAYS function returns the number of weekdays (weekends
excluded) between two dates.
30
Networkdays function
2. If you supply a list of holidays, the NETWORKDAYS function returns the
number of workdays (weekends and holidays excluded) between two dates.
The calendar helps you understand the NETWORKDAYS function.
31
Workday function
The WORKDAY function is (almost) the opposite of the NETWORKDAYS
function. It returns the date before or after a specified number of weekdays
(weekends excluded).
The calendar helps you understand the WORKDAY function.
32
Days Until Birthday
1. Enter the date of birth into cell A2.
33
Days Until Birthday
2. Enter the TODAY function into cell B2 to return today's date.
34
Days Until Birthday
3. The most difficult part in order to get the number of days until your birthday
is to find your next birthday. The formula below does the trick.
35
Days Until Birthday
4. Next, we use the DATEDIF function to find the number of days ("d") between
Today and Next Birthday.
36
Time Sheet
1. To automatically calculate the next 4 days and dates when you enter a start
date, use the formulas below.
37
Time Sheet
2. Select the cells containing the times.
38
Time Sheet
3. Right click, click Format Cells, and select the right Time format. Use the
circled format for cell K12, K13 and K14.
39
Time Sheet
4. To automatically calculate the hours worked each day, the total hours and the overtime hours, use
the formulas below.
40

More Related Content

What's hot

Excel formulas with-example-narration
Excel formulas with-example-narrationExcel formulas with-example-narration
Excel formulas with-example-narrationBelinda Prahl
 
Using Excel Functions
Using Excel FunctionsUsing Excel Functions
Using Excel Functions
Gautam Gupta
 
SQL Joins.pptx
SQL Joins.pptxSQL Joins.pptx
SQL Joins.pptx
Ankit Rai
 
A Presentation on Spreadsheet
A Presentation on SpreadsheetA Presentation on Spreadsheet
A Presentation on Spreadsheet
Ejiro Ndifereke
 
Advanced Microsoft Excel
Advanced Microsoft ExcelAdvanced Microsoft Excel
Advanced Microsoft Excel
Eric Metelka
 
Word practical questions for exercises
Word practical questions for exercisesWord practical questions for exercises
Word practical questions for exercises
Hari993901
 
Introduction of Advance Excel
Introduction of Advance ExcelIntroduction of Advance Excel
Introduction of Advance Excel
CBitss Technologies
 
Basic Excel PPT Presentation.pptx
Basic Excel PPT Presentation.pptxBasic Excel PPT Presentation.pptx
Basic Excel PPT Presentation.pptx
ClengAP
 
Sql queries with answers
Sql queries with answersSql queries with answers
Sql queries with answers
vijaybusu
 
Microsoft Office: Practice Questions
Microsoft Office: Practice Questions Microsoft Office: Practice Questions
Microsoft Office: Practice Questions
Makaha Rutendo
 
Ms excel
Ms excelMs excel
Excel functions formulas
Excel functions formulasExcel functions formulas
Excel functions formulasLearnIT@UD
 
Pivot table
Pivot tablePivot table
Pivot table
Vijay Perepa
 
MS Excel Basics
 MS Excel Basics MS Excel Basics
MS Excel Basics
Muhammad Yasir Bhutta
 
10 Excel Formulas that will help you in any Job
10 Excel Formulas that will help you in any Job10 Excel Formulas that will help you in any Job
10 Excel Formulas that will help you in any Job
Hitesh Biyani
 
Working on MS-Excel 'FORMULA TAB'
Working on MS-Excel 'FORMULA TAB'Working on MS-Excel 'FORMULA TAB'
Working on MS-Excel 'FORMULA TAB'
Pranav Kumar
 
ms excel for mba first sem students of dr hs gour university sagar(m.p)
ms excel for mba first sem students of dr hs gour university sagar(m.p)ms excel for mba first sem students of dr hs gour university sagar(m.p)
ms excel for mba first sem students of dr hs gour university sagar(m.p)
gaurav jain
 
Advanced Sql Training
Advanced Sql TrainingAdvanced Sql Training
Advanced Sql Training
bixxman
 
Microsoft Excel Tutorial
Microsoft Excel TutorialMicrosoft Excel Tutorial
Microsoft Excel Tutorial
Kristine Tiongco-Rimpa
 

What's hot (20)

Excel formulas with-example-narration
Excel formulas with-example-narrationExcel formulas with-example-narration
Excel formulas with-example-narration
 
Using Excel Functions
Using Excel FunctionsUsing Excel Functions
Using Excel Functions
 
SQL Joins.pptx
SQL Joins.pptxSQL Joins.pptx
SQL Joins.pptx
 
A Presentation on Spreadsheet
A Presentation on SpreadsheetA Presentation on Spreadsheet
A Presentation on Spreadsheet
 
Advanced Microsoft Excel
Advanced Microsoft ExcelAdvanced Microsoft Excel
Advanced Microsoft Excel
 
Word practical questions for exercises
Word practical questions for exercisesWord practical questions for exercises
Word practical questions for exercises
 
Introduction of Advance Excel
Introduction of Advance ExcelIntroduction of Advance Excel
Introduction of Advance Excel
 
Basic Excel PPT Presentation.pptx
Basic Excel PPT Presentation.pptxBasic Excel PPT Presentation.pptx
Basic Excel PPT Presentation.pptx
 
Sql queries with answers
Sql queries with answersSql queries with answers
Sql queries with answers
 
Microsoft Office: Practice Questions
Microsoft Office: Practice Questions Microsoft Office: Practice Questions
Microsoft Office: Practice Questions
 
Ms excel
Ms excelMs excel
Ms excel
 
Excel functions formulas
Excel functions formulasExcel functions formulas
Excel functions formulas
 
Pivot table
Pivot tablePivot table
Pivot table
 
SQL BASIC QUERIES SOLUTION ~hmftj
SQL BASIC QUERIES SOLUTION ~hmftjSQL BASIC QUERIES SOLUTION ~hmftj
SQL BASIC QUERIES SOLUTION ~hmftj
 
MS Excel Basics
 MS Excel Basics MS Excel Basics
MS Excel Basics
 
10 Excel Formulas that will help you in any Job
10 Excel Formulas that will help you in any Job10 Excel Formulas that will help you in any Job
10 Excel Formulas that will help you in any Job
 
Working on MS-Excel 'FORMULA TAB'
Working on MS-Excel 'FORMULA TAB'Working on MS-Excel 'FORMULA TAB'
Working on MS-Excel 'FORMULA TAB'
 
ms excel for mba first sem students of dr hs gour university sagar(m.p)
ms excel for mba first sem students of dr hs gour university sagar(m.p)ms excel for mba first sem students of dr hs gour university sagar(m.p)
ms excel for mba first sem students of dr hs gour university sagar(m.p)
 
Advanced Sql Training
Advanced Sql TrainingAdvanced Sql Training
Advanced Sql Training
 
Microsoft Excel Tutorial
Microsoft Excel TutorialMicrosoft Excel Tutorial
Microsoft Excel Tutorial
 

Similar to Spreadsheet Date & Time Functions

Excel 2007 dates
Excel 2007 datesExcel 2007 dates
Excel 2007 dates
osuchin
 
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docx
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docxGanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docx
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docx
budbarber38650
 
GanttChartGantt Chart© 2008 Vertex42 LLC0HELP[Project Name][Compan.docx
GanttChartGantt Chart© 2008 Vertex42 LLC0HELP[Project Name][Compan.docxGanttChartGantt Chart© 2008 Vertex42 LLC0HELP[Project Name][Compan.docx
GanttChartGantt Chart© 2008 Vertex42 LLC0HELP[Project Name][Compan.docx
hanneloremccaffery
 
Lo17
Lo17Lo17
Lo17
lksoo
 
02
0202
P2
P2P2
P2
lksoo
 
Open Office Calc : Lesson 07
Open Office Calc : Lesson 07Open Office Calc : Lesson 07
Open Office Calc : Lesson 07thinkict
 
Walter Krohn;2,12,1891;15,3,2015Paula Nightingale;3,3,1933;2.docx
Walter Krohn;2,12,1891;15,3,2015Paula Nightingale;3,3,1933;2.docxWalter Krohn;2,12,1891;15,3,2015Paula Nightingale;3,3,1933;2.docx
Walter Krohn;2,12,1891;15,3,2015Paula Nightingale;3,3,1933;2.docx
melbruce90096
 
Week 4 Project Tips © 2018 South University .docx
Week 4 Project Tips     © 2018 South University .docxWeek 4 Project Tips     © 2018 South University .docx
Week 4 Project Tips © 2018 South University .docx
poulterbarbara
 
13 -times_and_dates
13  -times_and_dates13  -times_and_dates
13 -times_and_datesHector Garzo
 
Microsoft Project for Professionals - 5 Simple & Practical Steps to Mastering...
Microsoft Project for Professionals - 5 Simple & Practical Steps to Mastering...Microsoft Project for Professionals - 5 Simple & Practical Steps to Mastering...
Microsoft Project for Professionals - 5 Simple & Practical Steps to Mastering...
DeltaBahn
 
Lesson9 Working With Basic Functions
Lesson9 Working With Basic FunctionsLesson9 Working With Basic Functions
Lesson9 Working With Basic Functionsguevarra_2000
 
Customer Data Cleansing Project.pptx
Customer Data Cleansing Project.pptxCustomer Data Cleansing Project.pptx
Customer Data Cleansing Project.pptx
Nat O
 
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLC0HELP[Pr.docx
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLC0HELP[Pr.docxGanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLC0HELP[Pr.docx
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLC0HELP[Pr.docx
hanneloremccaffery
 
In Section 1 on the Data page, complete each column of the spreads.docx
In Section 1 on the Data page, complete each column of the spreads.docxIn Section 1 on the Data page, complete each column of the spreads.docx
In Section 1 on the Data page, complete each column of the spreads.docx
sleeperharwell
 
ch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javed
ch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javedch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javed
ch 9, Electronic Spreadsheet,Basic Information Technology-Uzair JavedUzair Javed
 
Excel lesson 2
Excel lesson 2Excel lesson 2
Excel lesson 2spirax1681
 
Lesson9 working with basic functions
Lesson9 working with basic functionsLesson9 working with basic functions
Lesson9 working with basic functionsricsanmae
 

Similar to Spreadsheet Date & Time Functions (20)

Excel 2007 dates
Excel 2007 datesExcel 2007 dates
Excel 2007 dates
 
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docx
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docxGanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docx
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLCVert.docx
 
GanttChartGantt Chart© 2008 Vertex42 LLC0HELP[Project Name][Compan.docx
GanttChartGantt Chart© 2008 Vertex42 LLC0HELP[Project Name][Compan.docxGanttChartGantt Chart© 2008 Vertex42 LLC0HELP[Project Name][Compan.docx
GanttChartGantt Chart© 2008 Vertex42 LLC0HELP[Project Name][Compan.docx
 
Excel Function Training
Excel Function TrainingExcel Function Training
Excel Function Training
 
Lo17
Lo17Lo17
Lo17
 
02
0202
02
 
P2
P2P2
P2
 
Open Office Calc : Lesson 07
Open Office Calc : Lesson 07Open Office Calc : Lesson 07
Open Office Calc : Lesson 07
 
Walter Krohn;2,12,1891;15,3,2015Paula Nightingale;3,3,1933;2.docx
Walter Krohn;2,12,1891;15,3,2015Paula Nightingale;3,3,1933;2.docxWalter Krohn;2,12,1891;15,3,2015Paula Nightingale;3,3,1933;2.docx
Walter Krohn;2,12,1891;15,3,2015Paula Nightingale;3,3,1933;2.docx
 
Week 4 Project Tips © 2018 South University .docx
Week 4 Project Tips     © 2018 South University .docxWeek 4 Project Tips     © 2018 South University .docx
Week 4 Project Tips © 2018 South University .docx
 
13 -times_and_dates
13  -times_and_dates13  -times_and_dates
13 -times_and_dates
 
Microsoft Project for Professionals - 5 Simple & Practical Steps to Mastering...
Microsoft Project for Professionals - 5 Simple & Practical Steps to Mastering...Microsoft Project for Professionals - 5 Simple & Practical Steps to Mastering...
Microsoft Project for Professionals - 5 Simple & Practical Steps to Mastering...
 
Lesson9 Working With Basic Functions
Lesson9 Working With Basic FunctionsLesson9 Working With Basic Functions
Lesson9 Working With Basic Functions
 
Customer Data Cleansing Project.pptx
Customer Data Cleansing Project.pptxCustomer Data Cleansing Project.pptx
Customer Data Cleansing Project.pptx
 
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLC0HELP[Pr.docx
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLC0HELP[Pr.docxGanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLC0HELP[Pr.docx
GanttChartGantt ChartVersion 1.7.3© 2006-2014 Vertex42 LLC0HELP[Pr.docx
 
In Section 1 on the Data page, complete each column of the spreads.docx
In Section 1 on the Data page, complete each column of the spreads.docxIn Section 1 on the Data page, complete each column of the spreads.docx
In Section 1 on the Data page, complete each column of the spreads.docx
 
ch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javed
ch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javedch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javed
ch 9, Electronic Spreadsheet,Basic Information Technology-Uzair Javed
 
ch 9
ch 9ch 9
ch 9
 
Excel lesson 2
Excel lesson 2Excel lesson 2
Excel lesson 2
 
Lesson9 working with basic functions
Lesson9 working with basic functionsLesson9 working with basic functions
Lesson9 working with basic functions
 

More from Anjan Mahanta

Paper 2 – Exam Revision Notes.pdf
Paper 2 – Exam Revision Notes.pdfPaper 2 – Exam Revision Notes.pdf
Paper 2 – Exam Revision Notes.pdf
Anjan Mahanta
 
Project management part 2
Project management part 2Project management part 2
Project management part 2
Anjan Mahanta
 
Project management part 1
Project management part 1Project management part 1
Project management part 1
Anjan Mahanta
 
13.03 - Satellite communication systems
13.03 - Satellite communication systems13.03 - Satellite communication systems
13.03 - Satellite communication systems
Anjan Mahanta
 
13.02 Network Security
13.02   Network Security13.02   Network Security
13.02 Network Security
Anjan Mahanta
 
13.01 Network Components
13.01   Network Components13.01   Network Components
13.01 Network Components
Anjan Mahanta
 
The role and impact of IT in society
The role and impact of IT in societyThe role and impact of IT in society
The role and impact of IT in society
Anjan Mahanta
 
Emerging Technologies
Emerging TechnologiesEmerging Technologies
Emerging Technologies
Anjan Mahanta
 
Conditional statistical functions
Conditional statistical functionsConditional statistical functions
Conditional statistical functions
Anjan Mahanta
 
Spreadsheet if and nested if function
Spreadsheet if and nested if functionSpreadsheet if and nested if function
Spreadsheet if and nested if function
Anjan Mahanta
 
Spreadsheet lookup functions
Spreadsheet lookup functionsSpreadsheet lookup functions
Spreadsheet lookup functions
Anjan Mahanta
 
Spreadsheet text functions
Spreadsheet text functionsSpreadsheet text functions
Spreadsheet text functions
Anjan Mahanta
 
Networks and the effects of using them
Networks and the effects of using themNetworks and the effects of using them
Networks and the effects of using them
Anjan Mahanta
 
Scratch Animation
Scratch AnimationScratch Animation
Scratch Animation
Anjan Mahanta
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
Anjan Mahanta
 
Storage devices and media
Storage devices and mediaStorage devices and media
Storage devices and media
Anjan Mahanta
 
Using Network
Using NetworkUsing Network
Using Network
Anjan Mahanta
 
The Digital Divide
The Digital DivideThe Digital Divide
The Digital Divide
Anjan Mahanta
 
Chapter 4 E-Safety and Health & Safety
Chapter 4 E-Safety and Health & SafetyChapter 4 E-Safety and Health & Safety
Chapter 4 E-Safety and Health & Safety
Anjan Mahanta
 
Chapter 3 Monitoring and Control
Chapter 3 Monitoring and ControlChapter 3 Monitoring and Control
Chapter 3 Monitoring and Control
Anjan Mahanta
 

More from Anjan Mahanta (20)

Paper 2 – Exam Revision Notes.pdf
Paper 2 – Exam Revision Notes.pdfPaper 2 – Exam Revision Notes.pdf
Paper 2 – Exam Revision Notes.pdf
 
Project management part 2
Project management part 2Project management part 2
Project management part 2
 
Project management part 1
Project management part 1Project management part 1
Project management part 1
 
13.03 - Satellite communication systems
13.03 - Satellite communication systems13.03 - Satellite communication systems
13.03 - Satellite communication systems
 
13.02 Network Security
13.02   Network Security13.02   Network Security
13.02 Network Security
 
13.01 Network Components
13.01   Network Components13.01   Network Components
13.01 Network Components
 
The role and impact of IT in society
The role and impact of IT in societyThe role and impact of IT in society
The role and impact of IT in society
 
Emerging Technologies
Emerging TechnologiesEmerging Technologies
Emerging Technologies
 
Conditional statistical functions
Conditional statistical functionsConditional statistical functions
Conditional statistical functions
 
Spreadsheet if and nested if function
Spreadsheet if and nested if functionSpreadsheet if and nested if function
Spreadsheet if and nested if function
 
Spreadsheet lookup functions
Spreadsheet lookup functionsSpreadsheet lookup functions
Spreadsheet lookup functions
 
Spreadsheet text functions
Spreadsheet text functionsSpreadsheet text functions
Spreadsheet text functions
 
Networks and the effects of using them
Networks and the effects of using themNetworks and the effects of using them
Networks and the effects of using them
 
Scratch Animation
Scratch AnimationScratch Animation
Scratch Animation
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Storage devices and media
Storage devices and mediaStorage devices and media
Storage devices and media
 
Using Network
Using NetworkUsing Network
Using Network
 
The Digital Divide
The Digital DivideThe Digital Divide
The Digital Divide
 
Chapter 4 E-Safety and Health & Safety
Chapter 4 E-Safety and Health & SafetyChapter 4 E-Safety and Health & Safety
Chapter 4 E-Safety and Health & Safety
 
Chapter 3 Monitoring and Control
Chapter 3 Monitoring and ControlChapter 3 Monitoring and Control
Chapter 3 Monitoring and Control
 

Recently uploaded

Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 

Recently uploaded (20)

Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 

Spreadsheet Date & Time Functions

  • 1. Date and time functions Cambridge AS level Satree Phuket School - IPC
  • 2. Today’s date 1. To enter today's date in Excel, use the TODAY function. 2
  • 3. Today’s date 2. To enter the current date and time, use the NOW function. 3
  • 4. Today’s date 3. To enter the current time only, use NOW()-TODAY() and apply a time format. 4
  • 5. Static Date & Time 1. To enter the current date as a static value, press CTRL + ; (semicolon). 5
  • 6. Static Date & Time 2. To enter the current time as a static value, press CTRL + SHIFT + ; (semicolon). 6
  • 7. Static Date & Time 3. To enter the current date and time as a static value, simply press CTRL + ; (semicolon), enter a space and press CTRL + SHIFT + ; (semicolon). 7
  • 8. Date Difference 1. Fill in "d" for the third argument to get the number of days between two dates. Note: =A2-A1 produces the exact same result! 8
  • 9. Date Difference 2. Fill in "m" for the third argument to get the number of months between two dates. 9
  • 10. Date Difference 3. Fill in "y" for the third argument to get the number of years between two dates. 10
  • 11. Date Difference 4. Fill in "yd" for the third argument to ignore years and get the number of days between two dates. 11
  • 12. Date Difference 5. Fill in "md" for the third argument to ignore months and get the number of days between two dates. 12
  • 13. Date Difference 6. Fill in "ym" for the third argument to ignore years and get the number of months between two dates. 13
  • 14. Date Difference Important note: the DATEDIF function returns the number of complete days, months or years. This may give unexpected results when the day/month number of the second date is lower than the day/month number of the first date. See the example below. 14
  • 15. Time Difference 1. Simply subtract the start time from the end time. 15
  • 16. Time Difference 2. Change the number format of the values in cell A2, B2 and C2 to General. 16
  • 17. Time Difference Formula The simple formula shown above doesn't work if the start time is before midnight and the end time is after midnight. 1. Times that are negative show as ######. 17
  • 18. Time Difference Formula 2. To clearly see this, change the number format of the values in cell A2, B2 and C2 to General. 18
  • 19. Time Difference Formula 3. The time difference formula below always works. Explanation: if the end time is greater than or equal to the start time, simply subtract the start time from the end time. If not, add 1 (full day) to the end time to represent a time on the next day and subtract the start time. 19
  • 20. Time Difference in Hours as Decimal Value To calculate the difference between two times in hours as a decimal value, multiply the previous formula by 24 and change the number format to General.1. The formula below does the trick. 20
  • 21. Calculate Age To calculate the age of a person in Excel, use the DATEDIF function and the TODAY function. The DATEDIF function has three arguments. 1. Enter the date of birth into cell A2. 21
  • 22. Calculate Age 2. Enter the TODAY function into cell B2 to return today's date. 22
  • 23. Calculate Age 3. The DATEDIF function below calculates the age of a person. Note: fill in "y" for the third argument to get the number of complete years between the date of birth and today's date. 23
  • 24. Calculate Age 4. Calculate the age of a person without displaying today's date. 24
  • 25. Calculate Age 5. Calculate the age of a person on a specific date. Note: the DATE function accepts three arguments: year, month and day. 25
  • 26. Calculate Age 6. Calculate the age of a person in years, months and days. Note: fill in "ym" for the third argument to ignore years and get the number of months between two dates. Fill in "md" for the third argument to ignore months and get the number of days between two dates. Use the & operator to concatenate strings. 26
  • 27. WeekDay Function 1. The WEEKDAY function in Excel returns a number from 1 (Sunday) to 7 (Saturday) representing the day of the week of a date. Apparently, 12/18/2017 falls on a Monday. 27
  • 28. Week Days 2. You can also use the TEXT function to display the day of the week. 28
  • 29. Week Days 3. Or create a custom date format (dddd) to display the day of the week. 29
  • 30. Networkdays function 1. The NETWORKDAYS function returns the number of weekdays (weekends excluded) between two dates. 30
  • 31. Networkdays function 2. If you supply a list of holidays, the NETWORKDAYS function returns the number of workdays (weekends and holidays excluded) between two dates. The calendar helps you understand the NETWORKDAYS function. 31
  • 32. Workday function The WORKDAY function is (almost) the opposite of the NETWORKDAYS function. It returns the date before or after a specified number of weekdays (weekends excluded). The calendar helps you understand the WORKDAY function. 32
  • 33. Days Until Birthday 1. Enter the date of birth into cell A2. 33
  • 34. Days Until Birthday 2. Enter the TODAY function into cell B2 to return today's date. 34
  • 35. Days Until Birthday 3. The most difficult part in order to get the number of days until your birthday is to find your next birthday. The formula below does the trick. 35
  • 36. Days Until Birthday 4. Next, we use the DATEDIF function to find the number of days ("d") between Today and Next Birthday. 36
  • 37. Time Sheet 1. To automatically calculate the next 4 days and dates when you enter a start date, use the formulas below. 37
  • 38. Time Sheet 2. Select the cells containing the times. 38
  • 39. Time Sheet 3. Right click, click Format Cells, and select the right Time format. Use the circled format for cell K12, K13 and K14. 39
  • 40. Time Sheet 4. To automatically calculate the hours worked each day, the total hours and the overtime hours, use the formulas below. 40