0% found this document useful (0 votes)
16 views56 pages

Excel Basics 04

This document provides an overview of date and time number formatting, formulas, and functions in MS 365 Excel. It covers how dates are represented as serial numbers, various formulas for calculating differences between dates, and specific functions for workdays and payroll calculations. Additionally, it includes examples and explanations of custom number formats for dates and times.

Uploaded by

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

Excel Basics 04

This document provides an overview of date and time number formatting, formulas, and functions in MS 365 Excel. It covers how dates are represented as serial numbers, various formulas for calculating differences between dates, and specific functions for workdays and payroll calculations. Additionally, it includes examples and explanations of custom number formats for dates and times.

Uploaded by

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

MS 365 Excel Basics #4

Date Time Number Formatting, Formulas, Functions Calculations


Goal of video: Learn about date time serial numbers, number formatting formulas/functions

How Dates work in Excel (Date Serial Numbers, Date Number Format and Date Formulas) …...................................... 2
Formulas to calculate number of days between two dates, for invoices, loans and projects …...................................... 4
Formulas to count workdays with NETWORKDAYS.INTL function …........................................................................... 5
Add days to date to get future date. Learn about WORKDAY.INTL function. Examples: calculating loan due dates …...... 6
Subtract days from dates to get past date. Examples such as calculating the date that a project was started …............ 6
Move date by a specified number of months with EDATE and EOMONTH functions. Examples with invoices …............... 7
Extract the year, month or day from date using the functions, YEAR, MONTH, DAY, and TEXT. Examples for a date ta 8
How Times work in Excel (Time Serial Numbers, Time Number Format and Time Formulas) …...................................... 9
Time Formulas for Payroll …................................................................................................................................. 11
Time Formulas for Night Shift Payroll. Learn about Date-Time Values and the MOD function …..................................... 12
List of All 26 Date & Time Formulas and Functions ….............................................................................................. 13

1 of 56
MS 365 Excel Basics #4
Date Time Number Formatting, Formulas, Functions Calculations

A B C D E F G H I
1
2 Invoice Due Date 10/25/2024 In USA enter dates like: Month/Day/Year or Month-Day-Year
3 Today 11/20/2024 Keyboard for today's date: Ctrl + ;
4 Days Past Due Important Formula: Days between dates = Later Date - Earlier Date
5
6 How does that work?
7
8 Dates in Excel:
9 When you type a date, an automatic Date Number Format is applied on top of a Date Serial Number,
10 which is the number of days since Dec, 31, 1899. 1/1/1900 = 1, 1/2/1900 = 2
11
12 Today General Number Format Keyboard = Ctrl + Shift + ~ / `
13
14 Examples of Dates:
15
16 Date Serial Number
17 12/31/1899 1 First day that Excel understands
18 1/1/1900 2 Second day that Excel understands
19 11/17/2024 45613 The date 11/17/2024 is 45613 days since Dec 31, 1899
20 5/5/9999 2958225 The date 5/5/9999 is 2958225 days since Dec 31, 1899
21 12/31/1899 Text Text because it is before the first day that Excel recognizes as a date value.
22 7/4/1776 Text Text because it is before the first day that Excel recognizes as a date value.
Column not
23
################### wide enough #### tells you that the column not wide enough to display Date with Numb
24
25 There are Many Number Formats for Dates:
26 Today Serial Number
27 11/17/2024 45613
28 11/17/2024 45613
29 11/17/2024 45613
30 11/17/2024 45613
31 11/17/2024 45613 Number Formatting Code: m = month, d = day, y = year
32 Such as: ddd, m/d/yyy to show Sun, 11/17/2024
33

890945365.xlsx - DateSerialNums 2 of 56
MS 365 Excel Basics #4
Date Time Number Formatting, Formulas, Functions Calculations

J K L
1
Month-Day-Year
2
3
ater Date
4 - Earlier Date
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
l recognizes
21 as a date value.
l recognizes
22 as a date value.
23
gh to display Date with Number Formatting
24
25
26
27
28
29
30
y, y = 31
year
32
33

890945365.xlsx - DateSerialNums 3 of 56
A B C D E F G H I
1
2 Invoice Due Date 10/25/2024 In USA enter dates like: Month/Day/Year or Month-Day-Year
3 Today 11/20/2024 Keyboard for today's date: Ctrl + ;
4 Days Past Due 26 Important Formula: Days between dates = Later Date - Earlier Date
5
6 How does that work? C4: =C3-C2
7
8 Dates in Excel:
9 When you type a date, an automatic Date Number Format is applied on top of a Date Serial Number,
10 which is the number of days since Dec, 31, 1899. 1/1/1900 = 1, 1/2/1900 = 2
11
12 Today 45616 General Number Format Keyboard = Ctrl + Shift + ~ / `
13
14 Examples of Dates:
15
16 Date Serial Number
17 12/31/1899 1 First day that Excel understands
18 1/1/1900 2 Second day that Excel understands
19 11/17/2024
45613 The date 11/17/2024 is 45613 days since Dec 31, 1899
20 5/5/9999
2958225 The date 5/5/9999 is 2958225 days since Dec 31, 1899
21 12/31/1899 Text Text because it is before the first day that Excel recognizes as a date value.
22 7/4/1776 Text Text because it is before the first day that Excel recognizes as a date value.
Column not
23
################### wide enough #### tells you that the column not wide enough to display Date with Numb
24
25 There are Many Number Formats for Dates:
26 Today Serial Number
27 11/17/2024 45613
28 Sunday, November 17, 2024 45613
29 11/17 45613
30 17-Nov-24 45613
31 Sunday, 11/17/2024 45613 Number Formatting Code: m = month, d = day, y = year
32 Such as: ddd, m/d/yyy to show Sun, 11/17/2024
33

890945365.xlsx - DateSerialNums (an) 4 of 56


J K L
1
Month-Day-Year
2
3
ater Date
4 - Earlier Date
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
l recognizes
21 as a date value.
l recognizes
22 as a date value.
23
gh to display Date with Number Formatting
24
25
26
27
28
29
30
y, y = 31
year
32
33

890945365.xlsx - DateSerialNums (an) 5 of 56


Date Custom Number Format :
d = day
m = month
y = year
Separators allowed: /, -

Date 11/1/2024

Date Custom
Number Format Date = 11/1/2024 What Number Format Shows
d 1 Day number
dd 01 Day number with lead zero
ddd Fri 3 letter day
dddd Friday Full day name
m 11 Month number
mm 11 Month number with lead zero
mmm Nov 3 letter month
mmmm November Full month name
y 24 Last 2 digits of year
yy 24 Last 2 digits of year
yyy 2024 4 digit year
yyyy 2024 4 digit year
m/d/yyy 11/1/2024 Forward slash ok
m-d-yyy 11-1-2024 Dash ok
ddd, m/d/yy Fri, 11/1/24 Comma ok

890945365.xlsx - DateNF 6 of 56
A B C D E F G H
1
2 Difference Between Two Dates
3
4 Question: Start End Days: Formula:
5 How many days until school starts? 8/15/2024 9/26/2024 1
6 How many days is the invoice past due? 2/28/2024 3/1/2024 2
7 How many days was the loan outstanding? 9/5/2024 1/3/2025 3
8 How many days did the project take?
12/27/2024 3/1/2025 4
9 How many days of vacation, including 1st day? 8/15/2024 9/26/2024 5
I
1
2
3
4 Notes:
5 Difference between dates,
6 not including 1st day
7 = EndDate - StartDate
Difference between dates,
8 including 1st day
= EndDate - StartDate +
9 1
A B C D E F G H
1
2 Difference Between Two Dates
3
4 Question: Start End Days: Formula:
5 How many days until school starts? 8/15/2024 9/26/2024 42 1 E5: =D5-C5
6 How many days is the invoice past due? 2/28/2024 3/1/2024 2 2 E6: =D6-C6
7 How many days was the loan outstanding? 9/5/2024 1/3/2025 120 3 E7: =D7-C7
8 How many days did the project take?
12/27/2024 3/1/2025 65 4 E8: =D8-C8+1
9 How many days of vacation, including 1st day? 8/15/2024 9/26/2024 43 5 E9: =D9-C9+1

890945365.xlsx - F(1-5an) Page 9 of 56


I
1
2
3
4 Notes:
5 Difference between dates,
6 not including 1st day
7 = EndDate - StartDate
Difference between dates,
8 including 1st day
= EndDate - StartDate +
9 1

890945365.xlsx - F(1-5an) Page 10 of 56


A B C D E F G H
1
2 Count Workdays (difference between dates, while skipping some days)
3
4 Question: Start End Days: Formula:

5 How many workdays are there?


(Fri. & Sat. non-workdays) 1/21/2024 3/14/2024 6
How many workdays are there?
6
(Wed. & Sun. non-workdays) 1/21/2024 3/14/2024 7
7
8 Notes:
9 =NETWORKDAYS.INTL(StartDate,EndDate,WeekendString,HolidaysAsRange)
10 * weekend argument you can create any pattern of workdays / non-workdays.
11 * 1 represents a non-workday and 0 represents a workday.
12 * Must be 7 characters long.
13 * Must be encased in quotes.
14 * For example, "0010001" would result in a weekend that is Wednesday and Sunday.
15
I J
1
s) 2
3
4 Holidays

5
Mon, 1/15/2024
6
Mon, 1/22/2024
7 Mon, 1/29/2024
8 Fri, 2/16/2024
9
10
11
12
13
14
15
A B C D E F G H
1
2 Count Workdays (difference between dates, while skipping some days)
3
4 Question: Start End Days: Formula:

5 How many workdays are there?


(Fri. & Sat. non-workdays) 1/21/2024 3/14/2024 38 6 E5: =NETWORKDAYS.INTL(C5,D5,7,J5:J8)
How many workdays are there?
6
(Wed. & Sun. non-workdays) 1/21/2024 3/14/2024 35 7 E6: =NETWORKDAYS.INTL(C6,D6,"0010001",J5:J8)
7
8 Notes:
9 =NETWORKDAYS.INTL(StartDate,EndDate,WeekendString,HolidaysAsRange)
10 * weekend argument you can create any pattern of workdays / non-workdays.
11 * 1 represents a non-workday and 0 represents a workday.
12 * Must be 7 characters long.
13 * Must be encased in quotes.
14 * For example, "0010001" would result in a weekend that is Wednesday and Sunday.
15

890945365.xlsx - F(6-7an) Page 13 of 56


I J
1
s) 2
3
4 Holidays

5
Mon, 1/15/2024
6
Mon, 1/22/2024
7 Mon, 1/29/2024
8 Fri, 2/16/2024
9
10
11
12
13
14
15

890945365.xlsx - F(6-7an) Page 14 of 56


A B C D E F G H I
1
2 Add Days to Date to Get Future Date
3
4 Question: Start Number Days Dates: Formulas: Notes:
Calculate future date by adding days
5
When is the loan due? 9/5/2024 120 8 = StartDate + NumberOfDays
Determine future date while excluding weekends
and holidays (1st day included)
6 What is end date for project =WORKDAY.INTL(StartDate-
(1st day IS included)? 1,NumberWorkDays,
(Fri. & Sat. non-workdays) 11/17/2024 40 9 WeekendNumber,HolidayAsRange)
7
8 Subtract Days from Date to Get Past Date
9
10 Question: End Number Days Start Formulas: Notes:
Calculate future date by adding days
11
When was the loan issued? 1/3/2025 120 10 = StartDate - NumberOfDays
Determine past date while excluding weekends and
12 What is end date for project holidays (1st day included)
(1st day IS included)? =WORKDAY.INTL(StartDate+1,NumberWorkDa
(Fri. & Sat. non-workdays) 1/9/2025 -40 11 ys, WeekendNumber,HolidayAsRange)
A B C D E F G H I
1
2 Add Days to Date to Get Future Date
3
4 Question: Start Number Days Dates: Formulas: Notes:
Calculate future date by adding days
5
When is the loan due? 9/5/2024 120 1/3/2025 8 E5: =C5+D5 = StartDate + NumberOfDays
Determine future date while excluding weekends
and holidays (1st day included)
6 What is end date for project =WORKDAY.INTL(StartDate-
(1st day IS included)? 1,NumberWorkDays,
(Fri. & Sat. non-workdays) 11/17/2024 40 1/9/2025 9 E6: =WORKDAY.INTL(C6-1,D6,7) WeekendNumber,HolidayAsRange)
7
8 Subtract Days from Date to Get Past Date
9
10 Question: End Number Days Start Formulas: Notes:
Calculate future date by adding days
11
When was the loan issued? 1/3/2025 120 9/5/2024 10 E11: =C11-D11 = StartDate - NumberOfDays
Determine past date while excluding weekends and
12 What is end date for project holidays (1st day included)
(1st day IS included)? =WORKDAY.INTL(StartDate+1,NumberWorkDa
(Fri. & Sat. non-workdays) 1/9/2025 -40 11/17/2024 11 E12: =WORKDAY.INTL(C12+1,D12,7) ys, WeekendNumber,HolidayAsRange)

890945365.xlsx - F(8-11an) Page 16 of 56


A B C D E F G H I
1
2 Move a Date a Number Months Forward or Backwards
3
Start Number
4
Question: Date Months Date: Formulas: Notes:
When does my pension Calculate future date by adding number of months with:
5
plan vest? 1/22/2024 60 12 =EDATE(StartDate,NumberOfMonths)
What is last day of this Calculate end of month date with:
6
month? 2/20/2024 0 13 =EOMONTH(StartDate,NumberOfMonths)
What day is invoice due, if For each function months can be:
7 it is due on the same day, positive (jump into future),
two months ahead? 1/22/2024 2 14 zero (same month as StartDate)
What day is invoice due, if negative (jump into past)
8 it is due at the end of next
month? 1/20/2024 1 15
A B C D E F G H I
1
2 Move a Date a Number Months Forward or Backwards
3
Start Number
4
Question: Date Months Date: Formulas: Notes:
When does my pension Calculate future date by adding number of months with:
5
plan vest? 1/22/2024 60 1/22/2029 12 E5: =EDATE(C5,D5) =EDATE(StartDate,NumberOfMonths)
What is last day of this Calculate end of month date with:
6
month? 2/20/2024 0 2/29/2024 13 E6: =EOMONTH(C6,D6) =EOMONTH(StartDate,NumberOfMonths)
What day is invoice due, if For each function months can be:
7 it is due on the same day, positive (jump into future),
two months ahead? 1/22/2024 2 3/22/2024 14 E7: =EDATE(C7,D7) zero (same month as StartDate)
What day is invoice due, if negative (jump into past)
8 it is due at the end of next
month? 1/20/2024 1 2/29/2024 15 E8: =EOMONTH(C8,D8)

890945365.xlsx - F(12-15an) Page 18 of 56


A B C D E F G
1
2 Year, Month, Day from Date Serial Number
3
Start
4
Question: Date Date: Formulas:
5 Year
11/17/2024 16
6 Month
11/17/2024 17
7
Day 11/17/2024 18
8 Day Name? 11/17/2024 19
9 Month Name? 11/17/2024 20
H
1
Serial
2 Number
3

4
Notes:
YEAR creates the year as a number from a
5
Serial Number Date
MONTH creates the month as a number
6
from a Serial Number Date
DAY creates the day as a number from a
7
Serial Number Date
8 TEXT converts a number to text based on
9 Number Formatting Code.
A B C D E F G
1
2 Year, Month, Day from Date Serial Number
3
Start
4
Question: Date Date: Formulas:
5 Year
11/17/2024 2024 16 D5: =YEAR(C5)
6 Month
11/17/2024 11 17 D6: =MONTH(C6)
7
Day 11/17/2024 17 18 D7: =DAY(C7)
8 Day Name? 11/17/2024 Sunday 19 D8: =TEXT(C8,"dddd")
9 Month Name? 11/17/2024 Nov 20 D9: =TEXT(C9,"mmm")

890945365.xlsx - F(16-20an) Page 21 of 56


H
1
Serial
2 Number
3

4
Notes:
YEAR creates the year as a number from a
5
Serial Number Date
MONTH creates the month as a number
6
from a Serial Number Date
DAY creates the day as a number from a
7
Serial Number Date
8 TEXT converts a number to text based on
9 Number Formatting Code.

890945365.xlsx - F(16-20an) Page 22 of 56


A B C D E F G H I J K L M N O
1 Spac
2 Description Time Value e
3 8:15:15 PM Enter times like: hh:mm:ss AM/PM , As soon as you type a colon, Excel thinks that it is a time value.
4 20:15:15 Military time: don't type AM/PM
5 8:00 AM Enter significant digits only for time values like: 8 a for 8 AM, and Excel understands it is a time value
6 5:15 PM Enter significant digits only for time values like: 5 p for 5 PM, and Excel understands it is a time value
7 Current Time Keyboard for today's time: Ctrl + Shift + ;
8
9 Q: But what is actually in the cell, when you enter a time value?
10 A: The proporation of a 24 hour day.
11

12
Type 8 a,
Enter
Type 8 a,
13 Ctrl + Enter,
Ctrl + Shift + ~/` What Excel did behind the scenes when you entered 8:00 AM is: 8 /24 = 1/3 = 0.333…
Type formula =8/24,
14 Ctrl + Enter,
Apply Time Number Format The proportion of 8 hours to 24 hours in day with Time Number Formatting applied
15
16 Q: How to calculate hours between two dates when Excel divides time value by 24?
17 A: Multiply by 24 to get decimal back up to an hour unit, like: (End Time - Start Time)*24
18
19 Time In (Start) 8:00 AM
20 Time Out (End) 5:15 PM
21 Hours Worked (End Time - Start Time)*24
22 Remember: Ctrl + Shift + ~/` to remove Time Number Format
23
24 Time In (Start1) 8:00 AM
25 Time Out (End1) 12:05 PM
26 Time In (Start2) 1:15 PM
27 Time Out (End2) 5:15 PM
28 Hours Worked
29 Do not round times: keep all the decimals.
30 Remember: Ctrl + Shift + ~/` to remove Time Number Format
31
32 Time Change Number Formatting
33 8:00 PM 0.833333333333333 Number Formatting Code: h = hour, m = minute, s = second, separated by colon.
34 8:00 PM 0.833333333333333 Such as: h:mm AM to show 8:00 AM or h:mm to show 20:00 for 8:00 PM
35 8:00 PM 0.833333333333333
36 8:00 PM 0.833333333333333

890945365.xlsx - TimeSerialNums Page 23 of 56


A B C D E F G H I J K L M N O
1 Spac
2 Description Time Value e
3 8:15:15 PM 8:15:15 PM Enter times like: hh:mm:ss AM/PM , As soon as you type a colon, Excel thinks that it is a time value.
4 20:15:15 20:15:15 Military time: don't type AM/PM
5 8:00 AM 8:00 AM Enter significant digits only for time values like: 8 a for 8 AM, and Excel understands it is a time value
6 5:15 PM 5:15 PM Enter significant digits only for time values like: 5 p for 5 PM, and Excel understands it is a time value
7 Current Time 6:48 PM Keyboard for today's time: Ctrl + Shift + ;
8 11/21/2024 18:48
9 Q: But what is actually in the cell, when you enter a time value?
10 A: The proporation of a 24 hour day.
11

12
Type 8 a,
Enter 8:00 AM
Type 8 a,
13 Ctrl + Enter,
Ctrl + Shift + ~/` 0.333333333333333 What Excel did behind the scenes when you entered 8:00 AM is: 8 /24 = 1/3 = 0.333…
Type formula =8/24,
14 Ctrl + Enter,
Apply Time Number Format 08:05:00 AM The proportion of 8 hours to 24 hours in day with Time Number Formatting applied
15
16 Q: How to calculate hours between two dates when Excel divides time value by 24?
17 A: Multiply by 24 to get decimal back up to an hour unit, like: (End Time - Start Time)*24
18
19 Time In (Start) 8:00 AM
20 Time Out (End) 5:15 PM
21 Hours Worked 9.25 (End Time - Start Time)*24 =(C20-C19)*24
22 Remember: Ctrl + Shift + ~/` to remove Time Number Format
23
24 Time In (Start1) 8:00 AM
25 Time Out (End1) 12:05 PM
26 Time In (Start2) 1:15 PM
27 Time Out (End2) 5:15 PM
28 Hours Worked 8.08333333333333 (EndTime1 - StartTime1+EndTime2 - StartTime2)*24 =(C25-C24+C27-C26)*24
29 Do not round times: keep all the decimals.
30 Remember: Ctrl + Shift + ~/` to remove Time Number Format
31
32 Time Change Number Formatting
33 8:00 PM 0.833333333333333 Number Formatting Code: h = hour, m = minute, s = second, separated by colon.
34 08:00 PM 0.833333333333333 Such as: h:mm AM to show 8:00 AM or h:mm to show 20:00 for 8:00 PM
35 08:00:00 PM 0.833333333333333
36 20:00 0.833333333333333

890945365.xlsx - TimeSerialNums (an) Page 24 of 56


Time Custom Number Format :
h = hour
m = minute
s = seconds
: (colon) separates parts of time value
Type Space and then AM or PM
Leave out AM or PM, Military time is displayed
[hh] shows hours past 24 hours

Time with Time Time Custom Number Serial Number Under


Number Format Format the Time
1:30 PM h:mm AM/PM 1:30 PM
01:30 PM hh:mm AM/PM 01:30 PM
1:30:00 PM h:mm:ss AM/PM 1:30:00 PM
13:30 h:mm 13:30
00:15:00 hh:mm:ss 00:15:00
00:00:15 hh:mm:ss 00:00:15
8 AM h AM/PM 8 AM
8/31/2022 8:03 m/d/yy h:mm 44804.3354166667
8/31/22 8:03 AM m/d/yy h:mm AM/PM 44804.3354166667
30:00:00 [hh]:mm:ss 1.25
30:00 [hh]:mm 1.25
78:30 [hh]:mm 3.27083333333333

890945365.xlsx - TimeNF Page 25 of 56


A B C D E F G H I J K L
1
2 Payroll Time Calculations
3
4 Employee Hourly Wage ($) Start Time End Time Hours Worked Gross Pay ($) * Assume we will use this formula result later
5 Shardae Long 27.55 8:00 AM 1:10 PM ** 10/60 = 1/6 = 0.66… Time Value is not required to be rounded.
6 Formulas:
7 Do not round hours Round Money
8 21 22
9
10 Note: é Number hours between two time values =
11 (EndTime - StartTime)*24
12 Number hours when there is a lunch break =
13 (EndTime1 - StartTime1 + EndTime2 - StartTime2)*24 ê
14
15 Lunch Break
16 Employee Day StartTime EndTime1 StartTime2 EndTime2 Hours Worked
17 Shardae Long MONDAY 8:30 AM 12:00 PM 12:30 PM 5:42 PM 23
18 TUESDAY 8:30 AM 12:00 PM 12:30 PM 5:00 PM
19 WEDNESDAY 9:30 AM 12:10 PM 12:30 PM 4:00 PM
20 THURSDAY 8:30 AM 12:00 PM 1:30 PM 5:30 PM
21 FRIDAY 7:00 AM 10:30 AM 11:15 AM 3:00 PM
22 TOTAL HOURS Total Hours:
23 Wage per hour: $35.75
24 Gross Pay:
A B C D E F G H I J K L
1
2 Payroll Time Calculations
3
4 Employee Hourly Wage ($) Start Time End Time Hours Worked Gross Pay ($) * Assume we will use this formula result later
5 Shardae Long 27.55 8:00 AM 1:10 PM 5.16666666666667 142.34 ** 10/60 = 1/6 = 0.66… Time Value is not required to be rounded.
6 Formulas: F5: =(E5-D5)*24 G5: =ROUND(F5*C5,2)
7 Do not round hours Round Money
8 21 22
9
10 Note: é Number hours between two time values =
11 (EndTime - StartTime)*24
12 Number hours when there is a lunch break =
13 (EndTime1 - StartTime1 + EndTime2 - StartTime2)*24 ê
14
15 Lunch Break
16 Employee Day StartTime EndTime1 StartTime2 EndTime2 Hours Worked
17 Shardae Long MONDAY 8:30 AM 12:00 PM 12:30 PM 5:42 PM 8.7 23 H17: {=(E17:E21-D17:D21+G17:G21-F17:F21)*24}
18 TUESDAY 8:30 AM 12:00 PM 12:30 PM 5:00 PM 8
19 WEDNESDAY 9:30 AM 12:10 PM 12:30 PM 4:00 PM 6.1666666666667
20 THURSDAY 8:30 AM 12:00 PM 1:30 PM 5:30 PM 7.5
21 FRIDAY 7:00 AM 10:30 AM 11:15 AM 3:00 PM 7.25
22 TOTAL HOURS Total Hours: #NAME? H22: =SUM(_xlfn.anchorarray(H17))
23 Wage per hour: $35.75
24 Gross Pay: #NAME? H24: =ROUND(H23*H22,2)

890945365.xlsx - F(21-23an) Page 27 of 56


Night Shift Time Calculations

Question: Start End Hours Worked: Formula: Notes:


How many hours If you are using date-time values, Hours
did you work on Worked on Night Shift =
night shift? 11/21/2024 8:20 PM 11/22/2024 2:05 AM 24 (EndDateTime - StartDateTime)*24
How many hours
did you work on Hours Worked on Night Shift =
night shift? 8:20 PM 2:05 AM 24 MOD(EndTime - StartTime,1)*24
How many hours Hours Worked on Night Shift =
did you work on ((EndTime-StartTime +
night shift? 8:20 PM 2:05 AM 26 (EndTime<StartTime))*24

MOD(n, d) = n - d*INT(n/d)
n EndTime - StartTime
d 1
n - d*INT(n/d) 0.2395833333333

Formula:
J12: =D6-C6-J11*INT((D6-C6)/J11)
n - d*INT(n/d) = 2:05 AM - 8:20 PM - 1 * INT((2:05 AM - 8:20 PM)/1)
How Mod works:
https://www.youtube.com/watch?v=VcgSkLpgo6o
Excel Magic Trick 1206: Day & Night Shift Time Calculations: Add Total Hours Single Cell Formula
Night Shift Time Calculations

Question: Start End Hours Worked: Formula: Notes:


How many hours If you are using date-time values, Hours
did you work on Worked on Night Shift =
night shift? 11/21/2024 8:20 PM 11/22/2024 2:05 AM 5.75000000006 24 E5: =(D5-C5)*24 (EndDateTime - StartDateTime)*24
How many hours
did you work on Hours Worked on Night Shift =
night shift? 8:20 PM 2:05 AM 5.75 24 E6: =MOD(D6-C6,1)*24 MOD(EndTime - StartTime,1)*24
How many hours Hours Worked on Night Shift =
did you work on ((EndTime-StartTime +
night shift? 8:20 PM 2:05 AM 5.75 26 E7: =(D7-C7+(D7<C7))*24 (EndTime<StartTime))*24

MOD(n, d) = n - d*INT(n/d)
n EndTime - StartTime
d 1
n - d*INT(n/d) 0.239583333333333

Formula:
C12: =D6-C6-C11*INT((D6-C6)/C11)
n - d*INT(n/d) = 2:05 AM - 8:20 PM - 1 * INT((2:05 AM - 8:20 PM)/1)
How Mod works:
https://www.youtube.com/watch?v=VcgSkLpgo6o
Excel Magic Trick 1206: Day & Night Shift Time Calculations: Add Total Hours Single Cell Formula

890945365.xlsx - F(24-26an) Page 29 of 56


A B C D E F G H
1 Date and Time Formulas:
2 Question: Start End Days: Formula:
How many days until
3
school starts? 8/15/2024 9/26/2024 42 1 Err:509
How many days is the
4
invoice past due? 2/28/2024 3/1/2024 2 2 Err:509
How many days was the
5
loan outstanding? 9/5/2024 1/3/2025 120 3 Err:509
How many days did the
6
project take? 12/27/2024 3/1/2025 65 4 Err:509
How many days of
7 vacation, including 1st
day? 8/15/2024 9/26/2024 43 5 Err:509

8 How many workdays are


there?
(Fri. & Sat. non-workdays) 1/21/2024 3/14/2024 38 6 E8: =NETWORKDAYS.INTL(C8,D8,7,K6:K9)
How many workdays are
9 there?
(Wed. & Sun. non-
workdays) 1/21/2024 3/14/2024 35 7 E9: =NETWORKDAYS.INTL(C9,D9,"0010001",K6:K9)
10
11 Question: Start Number Days Dates: Formulas:
12
When is the loan due? 9/5/2024 120 1/3/2025 8 E12: =C12+D12

What is end date for


13 project (1st day IS
included)?
(Fri. & Sat. non-workdays) 11/17/2024 40 1/9/2025 9 E13: =WORKDAY.INTL(C13-1,D13,7)
14
15 Question: End Number Days Start Formulas:
When was the loan
16
issued? 1/3/2025 120 9/5/2024 10 E16: =C16-D16

What is end date for


17 project (1st day IS
included)?
(Fri. & Sat. non-workdays) 1/9/2025 -40 11/17/2024 11 E17: =WORKDAY.INTL(C17+1,D17,7)
18

890945365.xlsx - Date and Time Formulas Page 30 of 56


A B C D E F G H
1 Date and Time Formulas:
Start
19
Question: Date Number Months Date: Formulas:

When does my pension


20
plan vest?
1/22/2024 60 1/22/2029 12 E20: =EDATE(C20,D20)
What is last day of this
21
month? 2/20/2024 0 2/29/2024 13 E21: =EOMONTH(C21,D21)
What day is invoice due, if
22 it is due on the same day,
two months ahead? 1/22/2024 2 3/22/2024 14 E22: =EDATE(C22,D22)
What day is invoice due, if
23 it is due at the end of next
month? 1/20/2024 1 2/29/2024 15 E23: =EOMONTH(C23,D23)
24
25 Question: Start Date Date:
26 Year
11/17/2024 2024 16 Err:509
27 Month
11/17/2024 11 17 Err:509
28
Day 11/17/2024 17 18 Err:509
29 Day Name? 11/17/2024 Sunday 19 Err:509
30 Month Name? 11/17/2024 Nov 20 Err:509
31
32 Question: Start Time 8:00 AM
33 Calculate Gross Pay End Time 1:10 PM Formula:

34
Hours Worked 5.16666666667 21 Err:509
35 Hour Wage ($) 27.55
36 Gross Pay ($) 142.34 22 Err:509
37
38 Question: StartTime 8:30 AM
Calculate Gross Pay with
39 Lunch
Lunch Break: EndTime1 12:05 PM
Break
40 StartTime2 12:30 PM
41 EndTime2 5:42 PM

42
Hours Worked 8.78333333333 23 Err:509
43
44 Question: Start End Hours Worked: Formula:

How many hours did you


45
work on night shift?
11/21/2024 8:20 PM 11/22/2024 2:05 AM 5.75000000006 24 E45: =(D45-C45)*24
How many hours did you
46
work on night shift? 8:20 PM 2:05 AM 5.75 24 E46: =MOD(D46-C46,1)*24

How many hours did you


47
work on night shift?
8:20 PM 2:05 AM 5.75 26 E47: =(D47-C47+(D47<C47))*24

890945365.xlsx - Date and Time Formulas Page 31 of 56


I J K
1
2 Notes:
3
Difference between dates, not including 1st day
4 =
EndDate - StartDate
5
Holidays

6
Mon, 1/15/2024
Difference between dates, including 1st day
= EndDate - StartDate + 1
7
Mon, 1/22/2024

8 How many Working Days


=NETWORKDAYS.INTL(
Mon, 1/29/2024
StartDate,EndDate,WeekendNumber,Holid
9 aysAsRange)

Fri, 2/16/2024
10
11 Notes:
Calculate future date by adding days
12
= StartDate + NumberOfDays
Determine future date while excluding
weekends and holidays (1st day included)
13 =WORKDAY.INTL(StartDate-
1,NumberWorkDays,
WeekendNumber,HolidayAsRange)
14
15 Notes:
Calculate future date by adding days
16
= StartDate - NumberOfDays

Determine past date while excluding weekends


17 and holidays (1st day included)
=WORKDAY.INTL(StartDate+1,NumberWor
kDays, WeekendNumber,HolidayAsRange)
18

890945365.xlsx - Date and Time Formulas Page 32 of 56


I J K
1

19
Notes:
Calculate future date by adding number of
20 months with:
=EDATE(StartDate,NumberOfMonths)
Calculate end of month date with:
21
=EOMONTH(StartDate,NumberOfMonths)
For each function months can be:
22 positive (jump into future),
zero (same month as StartDate)
negative (jump into past)
23

24
25
YEAR creates the year as a number from a Serial
26
Number Date
MONTH creates the month as a number from a
27
Serial Number Date
DAY creates the day as a number from a Serial
28
Number Date
29 TEXT converts a number to text based on
30 Number Formatting Code.
31
32
33 Notes:
Number hours between two time values
34 = (EndTime - StartTime)*24. Do not round
hours.
35
36 For payroll, you need to round to the penny.
37
38

39

40
41
Number hours when there is a lunch break
42 = (EndTime1 - StartTime1 + EndTime2 -
StartTime2)*24. Do not round hours.
43
44 Notes:
If you are using date-time values, Hours Worked
45 on Night Shift =
(EndDateTime - StartDateTime)*24
Hours Worked on Night Shift = MOD(EndTime -
46
StartTime,1)*24
Hours Worked on Night Shift =
47 ((EndTime-StartTime +
(EndTime<StartTime))*24

890945365.xlsx - Date and Time Formulas Page 33 of 56


Goal: Create a formula in cell G5 that calculates number of days it took to pay the invoice and that

Invoice Issue
Customer Invoice # Amount Owed Date
Rafaela Sparkman 2693 $227.66 12/7/2020
Providencia Esposito 2867 $759.31 12/21/2020
Adrien Dougherty 3092 $303.89 12/24/2020
Marvis Block 3222 $459.95 12/30/2020
Drucilla Ragsdale 3247 $574.95 1/15/2021
Senaida Battles 3319 $315.25 2/11/2021
Ossie Kimbrough 3459 $181.82 2/16/2021
Elwood Koehler 3587 $177.74 2/19/2021
Corliss Coffin 3903 $581.59 3/14/2021
Claudette Barela 3950 $761.62 3/16/2021
it took to pay the invoice and that will spill down the column.

Invoice Pay Number Days To


Date Pay Invoice
2/27/2021
12/29/2020
7/17/2021
6/12/2021
7/7/2021
5/24/2021
3/1/2021
10/23/2021
5/5/2021
9/10/2021
Goal: Create a formula in cell G5 that calculates number of days it took to pay the invoice and that

Invoice Issue
Customer Invoice # Amount Owed Date
Rafaela Sparkman 2693 $227.66 12/7/2020
Providencia Esposito 2867 $759.31 12/21/2020
Adrien Dougherty 3092 $303.89 12/24/2020
Marvis Block 3222 $459.95 12/30/2020
Drucilla Ragsdale 3247 $574.95 1/15/2021
Senaida Battles 3319 $315.25 2/11/2021
Ossie Kimbrough 3459 $181.82 2/16/2021
Elwood Koehler 3587 $177.74 2/19/2021
Corliss Coffin 3903 $581.59 3/14/2021
Claudette Barela 3950 $761.62 3/16/2021
it took to pay the invoice and that will spill down the column.

Invoice Pay Number Days To


Date Pay Invoice Formula: Goals:
2/27/2021 82 {=F5:F14-E5:E14} Create a formula in cell
12/29/2020 8 the number of days it t
7/17/2021 205 invoice and that will sp
6/12/2021 164 column.
7/7/2021 173
5/24/2021 102
3/1/2021 13
10/23/2021 246
5/5/2021 52
9/10/2021 178
reate a formula in cell G5 that calculates
he number of days it took to pay the
voice and that will spill down the
Goal: In cell E5, create a formula to calcualte the number of days to complete each project.

Projected Start Projected End


Project Address Date Date
9664 SE. Thomas St. 2/18/2018 4/28/2018
92 Middle River Ave. 11/27/2017 7/4/2018
7275 Belmont Lane 3/8/2018 11/12/2018
9504 Grand St. 12/1/2017 6/16/2018
8016 Applegate Court 2/10/2018 3/24/2018
8 Canal Ave. 1/23/2018 3/18/2018
28 Green Hill Lane 1/28/2018 3/4/2018
26 West Purple Finch Ave. 12/17/2017 8/6/2018
180 Augusta Ave. 10/22/2017 4/11/2018
77 S. Sleepy Hollow Drive 1/8/2018 9/2/2018
r of days to complete each project.

Number Of Days to
Complete Project
Goal: In cell E5, create a formula to calcualte the number of days to complete each project.

Projected Start Projected End


Project Address Date Date
9664 SE. Thomas St. 2/18/2018 4/28/2018
92 Middle River Ave. 11/27/2017 7/4/2018
7275 Belmont Lane 3/8/2018 11/12/2018
9504 Grand St. 12/1/2017 6/16/2018
8016 Applegate Court 2/10/2018 3/24/2018
8 Canal Ave. 1/23/2018 3/18/2018
28 Green Hill Lane 1/28/2018 3/4/2018
26 West Purple Finch Ave. 12/17/2017 8/6/2018
180 Augusta Ave. 10/22/2017 4/11/2018
77 S. Sleepy Hollow Drive 1/8/2018 9/2/2018
ber of days to complete each project.

Number Of Days to
Complete Project Formula: Goals:
70 {=D5:D14-C5:C14+1} In cell E5, create a formula
220 calcualte the number of day
250 complete each project.
198
43
55
36
233
172
238
cell E5, create a formula to
alcualte the number of days to
omplete each project.
Goal #1: Using one of Excel's Date Functions, calculate the Due Date if the invoice
contract says that the amount is due on the same day, two month's ahead.

Goal #2: Using one of Excel's Date Functions, calculate the Due Date if the
invoice contract says that the amount is due at the end of the month.
Date if the invoice
two month's ahead.

Date if the
of the month.
Goal #1: Using one of Excel's Date Functions, calculate the Due Date if the invoice
contract says that the amount is due on the same day, two month's ahead.

InvoiceDate 11/3/2021 Number Months


Due Date 1/3/2022 2

Goal #2: Using one of Excel's Date Functions, calculate the Due Date if the
invoice contract says that the amount is due at the end of the month.

InvoiceDate 11/3/2021 Number Months


Due Date 11/30/2021 0
Formula: Goals:
=EDATE(D5,F6) Using one of Excel's Date Functions, calculate the Due Date if the invoice
that the amount is due on the same day, two month's ahead.

Formula: Goals:
=EOMONTH(D11,F12) Using one of Excel's Date Functions, calculate the Due Date if the invoice
that the amount is due at the end of the month.
the Due Date if the invoice contract says
month's ahead.

the Due Date if the invoice contract says


h.
Goal: Create the formulas for the following columns: Hours Worked, Gross Pay, Deduction, and D

Employee Wage Time In Time Out Hours Worked Gross Pay


Carroll Stanley $24.94 8:00 AM 3:30 PM
Anne Ramos $18.14 9:00 AM 2:30 PM
Blanche Sanchez $17.94 7:30 AM 3:00 PM
Karla Fletcher $26.70 8:00 AM 1:30 PM
Devin Smith $24.30 9:00 AM 2:30 PM
Edna Hansen $22.85 8:00 AM 6:00 PM
Moses Swanson $26.98 6:30 AM 11:30 AM
Sherman Moss $17.71 8:00 AM 1:00 PM
Amber Rios $20.12 7:00 AM 4:30 PM
Lindsey Powers $23.69 8:00 AM 3:00 PM
ay, Deduction, and Day's Pay

Tax Rate
0.0765

Deduction Day's Pay


Goal: Create the formulas for the following columns: Hours Worked, Gross Pay, Deduction, and Da

Employee Wage Time In Time Out Hours Worked Gross Pay


Carroll Stanley $24.94 8:00 AM 3:30 PM 7.5 #NAME?
Anne Ramos $18.14 9:00 AM 2:30 PM 5.5 #NAME?
Blanche Sanchez $17.94 7:30 AM 3:00 PM 7.5 #NAME?
Karla Fletcher $26.70 8:00 AM 1:30 PM 5.5 #NAME?
Devin Smith $24.30 9:00 AM 2:30 PM 5.5 #NAME?
Edna Hansen $22.85 8:00 AM 6:00 PM 10 #NAME?
Moses Swanson $26.98 6:30 AM 11:30 AM 5 #NAME?
Sherman Moss $17.71 8:00 AM 1:00 PM 5 #NAME?
Amber Rios $20.12 7:00 AM 4:30 PM 9.5 #NAME?
Lindsey Powers $23.69 8:00 AM 3:00 PM 7 #NAME?
oss Pay, Deduction, and Day's Pay

Tax Rate
0.0765

Deduction Day's Pay Formulas:


#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
Goal: Create the formulas for the following columns: Hours Worked, Gross Pay, Deduction, and Da

Employee Wage Time In Time Out Hours Worked Gross Pay


Carroll Stanley $24.94 8:00 AM 3:30 PM
Anne Ramos $18.14 9:00 AM 2:30 PM
Blanche Sanchez $17.94 7:30 AM 3:00 PM
Karla Fletcher $26.70 8:00 AM 1:30 PM
Devin Smith $24.30 9:00 AM 2:30 PM
Edna Hansen $22.85 8:00 AM 6:00 PM
Moses Swanson $26.98 5:00 PM 1:00 AM
Sherman Moss $17.71 6:00 PM 2:15 AM
Amber Rios $20.12 11:00 PM 6:30 AM
Lindsey Powers $23.69 10:30 PM 8:00 AM
oss Pay, Deduction, and Day's Pay

Tax Rate
0.0765

Deduction Day's Pay Formulas:


Goal: Create the formulas for the following columns: Hours Worked, Gross Pay, Deduction, and Da

Employee Wage Time In Time Out Hours Worked Gross Pay


Carroll Stanley $24.94 8:00 AM 3:30 PM 7.5 #NAME?
Anne Ramos $18.14 9:00 AM 2:30 PM 5.5 #NAME?
Blanche Sanchez $17.94 7:30 AM 3:00 PM 7.5 #NAME?
Karla Fletcher $26.70 8:00 AM 1:30 PM 5.5 #NAME?
Devin Smith $24.30 9:00 AM 2:30 PM 5.5 #NAME?
Edna Hansen $22.85 8:00 AM 6:00 PM 10 #NAME?
Moses Swanson $26.98 5:00 PM 1:00 AM 8 #NAME?
Sherman Moss $17.71 6:00 PM 2:15 AM 8.25 #NAME?
Amber Rios $20.12 11:00 PM 6:30 AM 7.5 #NAME?
Lindsey Powers $23.69 10:30 PM 8:00 AM 9.5 #NAME?
oss Pay, Deduction, and Day's Pay

Tax Rate
0.0765

Deduction Day's Pay Formulas:


#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy