SlideShare uma empresa Scribd logo
1 de 40
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

Pivot table presentation
Pivot table presentationPivot table presentation
Pivot table presentation
Sha Tibnjn
 
Using vlookup in excel
Using vlookup in excelUsing vlookup in excel
Using vlookup in excel
megankilb
 
Excel lesson formulas and functions
Excel lesson formulas and functionsExcel lesson formulas and functions
Excel lesson formulas and functions
wildman099
 

Mais procurados (20)

Using Excel Functions
Using Excel FunctionsUsing Excel Functions
Using Excel Functions
 
VLOOKUP HLOOKUP INDEX MATCH
VLOOKUP HLOOKUP INDEX MATCHVLOOKUP HLOOKUP INDEX MATCH
VLOOKUP HLOOKUP INDEX MATCH
 
Logical functions in excel
Logical functions in excelLogical functions in excel
Logical functions in excel
 
Vlookup - an introduction
Vlookup - an introductionVlookup - an introduction
Vlookup - an introduction
 
Excel functions and formulas
Excel functions and formulasExcel functions and formulas
Excel functions and formulas
 
Basic Ms excel
Basic Ms excelBasic Ms excel
Basic Ms excel
 
Charts in EXCEL
Charts in EXCELCharts in EXCEL
Charts in EXCEL
 
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
 
Pivot table presentation
Pivot table presentationPivot table presentation
Pivot table presentation
 
Using vlookup in excel
Using vlookup in excelUsing vlookup in excel
Using vlookup in excel
 
USING VLOOKUP FUNCTION
USING VLOOKUP FUNCTIONUSING VLOOKUP FUNCTION
USING VLOOKUP FUNCTION
 
Excel Pivot Tables
Excel Pivot TablesExcel Pivot Tables
Excel Pivot Tables
 
MS-Excel Formulas and Functions
MS-Excel Formulas and FunctionsMS-Excel Formulas and Functions
MS-Excel Formulas and Functions
 
22 Excel Basics
22 Excel Basics22 Excel Basics
22 Excel Basics
 
Excel lesson formulas and functions
Excel lesson formulas and functionsExcel lesson formulas and functions
Excel lesson formulas and functions
 
Advanced Microsoft Excel
Advanced Microsoft ExcelAdvanced Microsoft Excel
Advanced Microsoft Excel
 
Training On Microsoft Excel
Training On Microsoft ExcelTraining On Microsoft Excel
Training On Microsoft Excel
 
Pivot Tables
Pivot TablesPivot Tables
Pivot Tables
 
Functions and formulas of ms excel
Functions and formulas of ms excelFunctions and formulas of ms excel
Functions and formulas of ms excel
 
VBA - Macro For Ms.Excel
VBA - Macro For Ms.ExcelVBA - Macro For Ms.Excel
VBA - Macro For Ms.Excel
 

Semelhante a Spreadsheet Date & Time Functions

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
 
Open Office Calc : Lesson 07
Open Office Calc : Lesson 07Open Office Calc : Lesson 07
Open Office Calc : Lesson 07
thinkict
 
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_dates
Hector Garzo
 
Lesson9 Working With Basic Functions
Lesson9 Working With Basic FunctionsLesson9 Working With Basic Functions
Lesson9 Working With Basic Functions
guevarra_2000
 
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 Javed
Uzair Javed
 
Excel lesson 2
Excel lesson 2Excel lesson 2
Excel lesson 2
spirax1681
 

Semelhante a Spreadsheet Date & Time Functions (20)

Excel DATEDIFF Function
Excel DATEDIFF FunctionExcel DATEDIFF Function
Excel DATEDIFF Function
 
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
 
02
0202
02
 
Lo17
Lo17Lo17
Lo17
 
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
 

Mais de Anjan Mahanta

Mais de 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
 
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
 
Chapter 2 Hardware and Software
Chapter 2 Hardware and SoftwareChapter 2 Hardware and Software
Chapter 2 Hardware and Software
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

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