Excel Function Practice
Excel Function Practice
SUM 3745
SUMIFS
Find the sum of total stats for Water type 1st Generation Pokemon:
Formula Used
AND(logical1, [logical2], ...)
AND(B2="Fire",C2>70)
Use of IF with AND (IF will give you Whatever you want condition)
NO
NO
NO
NO
YES
YES
NO
NO
NO
Formula Used
IF(AND(logical1, [logical2],…)
IF(AND(B2="Fire",C2>70),"YES","NO")
Trainer Pokeball Great Ball Ultraball Master BalAverage
Iva 10 4 1 1 4
Liam 12 3 0 1 4
Jenny 15 1 3 1 5 Formula Used
Iben 4 2 6 0 3
Adora 10 4 1 1 4 AVERAGE(number1, [number2], ...)
Kasper 9 2 1 0 3
Count 0 20 Count 20
CountA
tA counts all cells in a range that has values, both numbers and letters.
12 20
COUNTBLANK
The COUNTBLANK function is a premade function in Excel, which counts blank cells in a range.
Count 8 0
To retrieve values from the left side of an Excel cell, use LEFT.
LEFT(cell)
ing RIGHT(B7,3)
ter
ass
ter
ric
ter
ter
ock
gon
mal
mal
Bug
mal
ter
son
ing
ire
son
ost
ter
LOWER
The LOWER function is used to lowercase text in a cell. LOWER(cell)
1 2 3 4 90 6 7 8
5
15.125
MODE
used to find the number seen most times.
MODE 1
OR
returns TRUE or FALSE based on two or more conditions.
OR([logical1], [logical2], ...)
NO
Yes
Yes IF(OR(B7="Water",C7>60), "Yes","
NO
NO
Yes
Yes
Yes
Yes
NO
NO
TEST if color is Green or Red
Color Result
Red TRUE
Blue FALSE
Green TRUE
Red TRUE
Blue FALSE
Purple FALSE
White FALSE
Red TRUE
Purple FALSE
Green TRUE
7="Water",C7>60), "Yes","NO")
SEQUENCE
=SEQUENCE(rows,[columns],[start],[step])
SEQUENCE(9) SEQUENCE(4,6)
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME?
#NAME?
#NAME?
#NAME? SEQUENCE(1,12)
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
NCE(2,5,INT(RAND()*10),INT(RAND()*10))
#NAME? #NAME?
#NAME? #NAME?
IFERROR
1/29/1999 11/19/2024
Datediff
Total year 25 DATEDIF(C12,D12,"Y")
Total Month 309 DATEDIF(C12,D12,"m")
Total Days 9426 DATEDIF(C12,D12,"d")
Total year and Month 9 DATEDIF(C12,D12,"YM") (Remaning month will be shown)
Total Days 21 DATEDIF(C12,D12,"MD") (Remaning days will be shown)
FLOOR
rounds a specific number down to the nearest specified multiple
FLOOR(number, significance)
12 FLOOR(13.9,3) This will take the nearest smallest number. And it shoud be a multiplication o
10 FLOOR(11.9,2) See, This will take the nearest smallest number which will be the multipl
MROUND
The MROUND function syntax has the following arguments:
Syntax MROUND(number, multiple)
4.4 4 MROUND(L5,1)
7.6 8
9.9 10
1.9 2
17 18 MROUND(L10,3)
MOD
You want the remainder of the number.
3/2 1 MOD(3,2)
20/3 2 MOD(20,3)
shoud be a multiplication of 2nd argument
er which will be the multiplication of 2
VLOOKUP
Syntax:
VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])
Price Err:502
~
Match
MATCH function is used to search for a specified value in a range and return its relative position.
MATCH(lookup_value, lookup_array, [match_type])
Basic Example
More Complex
ActualRevenu ActualProfit BudgetReven BudgetProfit
Actual Actual Budget Budget
Division Apps Revenue Profit Revenue Profit
Game Fightrr 11,649 802 10,593 554
Game Kryptis 7,718 876 6,409 654
Game Perino 15,033 469 12,724 530
Game Hackrr 18,701 985 19,102 1,302
Productivity WenCaL 14,432 240 15,113 363
Productivity Blend 17,990 1,166 18,181 1,223
Productivity Sleops 11,022 550 13,112 474
Utility Accord 17,760 800 16,854 572
Utility Misty Wash 30,400 787 30,237 932
Utility Twenty20 20,400 614 18,477 1,120
Variety
Difference :
Note: Match should be in 1 way street either it is in column or in row.
Misty Wash
Utility Check Below for difference b/w vlookup and index match
787
30,400
Kryptis
INDEX(C22:F31,MATCH(H22,B22:B31,0),MATCH(I20&I21,C19:F19,0))
Array Solution with CSE
INDEX(C22:F31,MATCH(H22,B22:B31,0),MATCH(I20&I21,C20:F20&C21:F21,0))
Array Solution without CSE
INDEX(C22:F31,MATCH(H22,B22:B31,0),MATCH(I20&I21,INDEX(C20:F20&C21:F21,,),0))
1 3
WenCaL Misty Wash
Blend
Voltage
Inkly
Sleops
Kind Ape
Pet Feed
Right App
Mirrrr
Halotot
Flowrrr
Silvrr
Dasring
Rehire
Didactic
0&C21:F21,0))
Clean
Strip non-printable characters from text Syntax: clean()
eg. That heart shape, rectangle shape, special sign which we get when we copy somethin
Input
Normal text
[14Text with [Igarbage charsm
Text with
extra line
breaks.
Line breaks with
extra spaces.
*b
et when we copy something
Concat
The CONCAT function is used to link multiple cells without adding any delimiters between the combined cell values.
CONCAT(A5," ",B5)
wrath are 510 CONCAT("the total stats for",A6, " are ",C6)
Concatenate
Join text together does not accept range
The Excel EXACT function compares two text strings, taking into account upper and lower case characters, and returns TRUE if t
characters, and returns TRUE if they are the same, and FALSE if not. EXACT is case-sensitive.
Exact(C9,D9)
Find
The Excel FIND function returns the position (as a number) of one text string inside another. W
Syntax: Replace(old_text,start_num,num_chars,new_text)
Input Output
XRT-2017-001 XRT-2018-001 REPLACE(D7,5,4,2018)
XRT-2017-002 XRT-2018-002
XRT-2017-003 XRT-2018-003 5 is the no. from where you have to change nu
AAB-2017-001 AAB-2018-001
AAB-2017-002 AAB-2018-002
NAR-2017-001 NAR-2018-001
NAR-2017-002 NAR-2018-002
NAR-2017-003 NAR-2018-003
MID-2017-001 MID-2018-001
MIO-2017-002 MIO-2018-002
MID-2017-003 MID-2018-003
in a given text string with another text string.
m_chars,new_text)
ere you have to change number till 4 digit from starting point. In this 2 is the starting and 7 is 4 step from 2. So, we will change 2017 to 201
So, we will change 2017 to 2018
Substitute
The Excel SUBSTITUTE function replaces text in a given string by matching.
Formula
SUBSTITUTE(D7,"t","b")
SUBSTITUTE(D8,"t","b",1)
SUBSTITUTE(D9,"cat","dog")
SUBSTITUTE(D10,"#","")
Text
The Excel TEXT function returns a number in a given number format, as text. You can use the TEXT function to embed fo
Syntax: Text(value,format_text)
Formula
TEXT(C10,"$#,###")
TEXT(C11,"0%")
TEXT(C12,"hh:mm")
TEXT(C13,"0.00")
TEXT(C14, "dddd,mmmm,d")
TEXT(C15,"dddd dd, yyyy")
TEXT(C16, "ddd, mmm dd")
Profits are up & TEXT(C17, "0%")
Register by & TEXT(C18,"mmmm d") & "!"
TextJoin
The Excel TEXTJOIN function concatenate multiple values together with or without a delimiter. TEXTJOIN can concatenate values p
Syntax: delimiter,ignore_empty,text1,[text2],...)
Separator
delimiter between each text.
ignore_em
pty Whether to ignore empty cells or not.
text1 First text value or range.
text2
[optional] Second text value or range.
Formula
TEXTJOIN(", ",,C7:F7)
Filter
The Excel FILTER function is used to extract matching values from data based on one or more conditions.
Syntax: Filter(array,include,[if_empty])
#NAME? FILTER(C10:E19,E10:E19=J9)
#NAME?
#NAME?
#NAME?
#NAME?
Sort
The Excel SORT function sorts the contents of a range or array in ascending or descending order.
Syntax: (array,[sort_index],[sort_order],[by_col])
Formula
SORT(D10:E19,2,-1)
TextSplit/TextAfter/TextBefore
Extract text after a delimiter
Textsplit(text,delimiter)
Formula: Torow(array,ignore,scan_by_column)
Array
By Rows with Blank
A B C #NAME? #NAME? #NAME?
D E F
G I By Rows with no blanFormula:
J K #NAME? #NAME? #NAME?
By Column Formula:
#NAME? #NAME? #NAME?
default = TRUE).
Formula: TOROW(D9:F12,0)
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
TOROW(D9:F12,1)
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
TOROW(D9:F12,1,TRUE)
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?