0% found this document useful (0 votes)
3 views16 pages

Excel Formulas

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

Excel Formulas

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

EXCEL

FORMULAS
AND FUNCTION
DATE AND TIME
DATE
YEAR, MONTH, and DAY
WEEKDAY
DATEIF
WEEKDAY FUNCTION
To determine the weekday of a specific date in
Microsoft Excel, you can use the WEEKDAY
function. This function returns a number that
corresponds to the day of the week for a given
date.
Basic formula of WEEKDAY looks like this:

=WEEKDAY(date, [return_type])
date: The date you want to find the day for. You can enter
a date directly (like "2024-09-02") or refer to a cell that
contains a date (like A1).
return_type: This is optional. It tells Excel how you
want the days of the week to be numbered:
• If you leave it blank or use `1`, Excel will
return:
- Sunday = `1`
- Monday = `2`
- Tuesday = `3`
- and so on, up to Saturday = `7`.
• If you use `2`, Excel will return:
- Monday = `1`
- Tuesday = `2`
Common return_type
Options:
Return Descriptio Sunda Monda … Saturda
Type n y y y
1. 1 Sunday = 1 2 … 7
(Default 1, Monday
) = 2, ...,
Saturday =
7
2. 2 Monday = 7 1 … 6
“ “ 1, Tuesday
= 2, ...,
Sunday = 7
3. 3 Monday = 6 0 … 5
“ “ 0, Tuesday
EXAMPLE
1. Find the Weekday Number for a Date
in Cell A1
Let's say cell A1 has the date 2024-09-02
(September 2, 2024).
To find out what day of the week it is, you
can
Datewrite: Weekday Since the formula uses
‘1’ as the default
2024-09-02 =Weekday(A1,) setting, this will return
‘2’ (because September
Date Weekday 2, 2024, is a Monday,
2024-09-02 =2 and Monday is
represented by 2).
EXAMPLE
2. Get the Day name Directly
Let's say cell A1 has the date 2024-09-02
(September 2, 2024).
To find out what day of the week it is, you
can
Datewrite: Weekday
2024-09-02 =Text(A1,
“dddd”)
Date Weekday
This will display
2024-09-02 =Monday "Monday“ instead
of ‘2’
OTHER KEY
EXAMPLES OF
WEEKDAY
USAGE
1. Check If a Date is a
Weekend
•Formula:
=IF(WEEKDAY(A1, 2) > 5, "Weekend",
"Weekday")
Date Day
2024-09-02 Weekday

Explanation: Checks if the date in A1 is a


Saturday or Sunday (Saturday = 6, Sunday =
7 when using return_type = 2). Returns
"Weekend" or "Weekday."
2. Custom day names using ‘Choose’ and
‘Weekday’
•Formula:
=CHOOSE(WEEKDAY(A1), "Sun", "Mon",
"Tue", "Wed", "Thu", "Fri", "Sat")
Date Weekday
2024-09-02 Fri

Explanation: Returns a custom


day label based on the day of
the week for the date in A1
3. Highlighting Weekends with Conditional
Formatting
•Formula:
=WEEKDAY(A1, 2) > 5

Date Day
2024-09-06 True

Explanation: Applies
formatting to dates in A1 that
fall on a Saturday or Sunday.
4. Calculating Days Until Next Friday

•Formula:
=MOD(7 - WEEKDAY(A1, 2) + 5, 7)

Date Days until next Friday


2024-09-02 4

Explanation:
•WEEKDAY(A1, 2) gives the day number (Monday = 1, ...,
Sunday = 7).
•The formula calculates the number of days until the next
Friday.
•5 represents Friday in the WEEKDAY numbering where
ACTIVITY TIME!
CALCULATE THE DAY
A B C
DATE DAY DAY
NUMBER NAME
2024-09-03 =WEEKDAY =TEXT
1

2024-09-04
2

2024-09-05
3
MATCHING TYPE
olumn A: Key Examples of ‘WEEKDAY’ Usage
atch each key example with its correct formula from Column B.
Column Column
A: B:
1. Find the number of the date a. =IF(WEEKDAY(A2, 2) > 5,
2. Check If a Date is a "Weekend", "Weekday")
Weekend b. =TEXT(A2, "dddd")
3. Display the Day Name
c. =WORKDAY(A2, 1)
4. Create Custom Day Labels
d. =CHOOSE(WEEKDAY(A2),
5. Find the Next Working Day
"Sun", "Mon", "Tue",
After a Given Date
"Wed", "Thu", "Fri", "Sat")
e. =WEEKDAY(A2)
16

THANK YOU
FOR LISTENING

You might also like