0% found this document useful (0 votes)
62 views77 pages

Excel Function Practice

Uploaded by

zyzacu
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)
62 views77 pages

Excel Function Practice

Uploaded by

zyzacu
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/ 77

SUMIF

Find the sum of Total stats for Grass type Pokemon:


Name Type 1 Total
Bulbasa Grass 318 Type Total Sum
Ivysaur Grass 405 Grass 1248 SUMIF(B6:B14,E7,C6:C14)
VenusauGrass 525 Fire 1248
Charma Fire 309 Water 1249
Charme Fire 405
Charizar Fire 534
Squirtle Water 314
WartortlWater 405
BlastoiseWater 530

SUM 3745
SUMIFS
Find the sum of total stats for Water type 1st Generation Pokemon:

Name Type 1 Total Generation


Bulbasaur Grass 318 1
Ivysaur Grass 405 1 Type Gen. Total Sum
Venusaur Grass 525 1 Water 1 848
CharmanderFire 309 1 Water 2 848
CharmeleonFire 405 1 Bug 1 848
Charizard Water 534 1 Grass 1 848
Squirtle Water 314 1
Wartortle Water 405 2
Blastoise Bug 530 1
Caterpie Bug 195 1
Metapod Bug 205 1
Butterfree Bug 395 1
TRIM
The TRIM function is premade in Excel and used to remove irregular text spacing and keep single spaces between words.

Mankey Fighting 305


Poliwr Water 510
Victreeb Grass 490
Tentac Water 335 Mankey Fighting 305 TRIM(A5:C24)
Magnet Electric 465 Poliwrath Water 510
Dewgon Water 475 Victreebel Grass 490
Cloyste Water 525 Tentacool Water 335
Onix Rock 385 Magneton Electric 465
DragonaDragon 420 Dewgong Water 475
Pidgeo Normal 349 Cloyster Water 525
Rattata Normal 253 Onix Rock 385
Beedrill Bug 395 Dragonair Dragon 420
Doduo Normal 310 Pidgeotto Normal 349
Kingler Water 475 Rattata Normal 253
Nidoque Poison 505 Beedrill Bug 395
Hitmon Fighting 455 Doduo Normal 310
Charm Fire 405 Kingler Water 475
Arbok Poison 438 NidoqueenPoison 505
Gastly Gh 310 HitmonchaFighting 455
Magika Water 200 CharmeleoFire 405
Arbok Poison 438
Gastly Ghost 310
Magikarp Water 200
ces between words.

Mankey Fighting CONCAT(TRIM(A5)," ", TRIM(B5))


Poliwrath Water
Victreebel Grass
Tentacool Water
Magneton Electric
Name Type 1 Speed
Bulbasaur Grass 45
Ivysaur Grass 60
Venusaur Grass 80
Charmander Fire 65
Charmeleon Fire 80
Charizard Fire 100
Squirtle Water 43
Wartortle Water 58
Blastoise Water 78
Fire Type AND more than 70 Speed(And will give you True ,False)
0
FALSE
0
FALSE
TRUE
TRUE
0
FALSE
FALSE

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

With Text Values(Average don't count Text value)

Trainer Pokeball Great Ball Ultraball Master BalAverage


Iva 10 4 1 1 4
Liam 12 3 0 Hello 5
Jenny 15 1 3 1 5
Iben 4 Hello 6 0 3.333333
Adora 10 4 1 1 4
Kasper 9 2 1 Hello 4
Formula Used

AGE(number1, [number2], ...)


Find the average speed of Grass type Pokemon:

Name Type 1 Speed


Bulbasaur Grass 45 Type Average Speed
Ivysaur Grass 60 Grass 61.66666666667 Formula Used
Venusaur Grass 80 Fire 81.66666666667
Charmander Fire 65 Water 59.66666666667 AVERAGEIF(range; criteria; (ave
Charmeleon Fire 80 AVERAGEIF(B:B,E3,C:C)
Charizard Fire 100
Squirtle Water 43
Wartortle Water 58
Blastoise Water 78
AGEIF(range; criteria; (average_range])
AGEIF(B:B,E3,C:C)
Find the average defense of Grass type 1st Generation Pokemon:

Name Type 1 Defense Generation


Bulbasa Grass 49 1 Type Gen. Average Defense
Ivysaur Grass 63 1 Grass 1 65
VenusauGrass 83 1 Fire 1 59.6666666666667
Charma Fire 43 1 Grass 2 81.6666666666667
Charme Fire 58 1 Fire 2 59.6666666666667
Charizar Fire 78 1
Chikorit Grass 65 2
Bayleef Grass 80 2
Megani Grass 100 2
CyndaquiFire 43 2
Quilava Fire 58 2
Typhlos Fire 78 2

=AVERAGEIFS(average_range, criteria_range1, cri


Formula Used
AVERAGEIFS(C4:C15,B4:B15,F5,D4:D15,G5)

_range, criteria_range1, criteria1, ...)


Count CountA
Count Don't count Text values CountA counts all cells in a range t

Name Type 1 Type 2 Total stats Name Type 1


Mankey Fighting 305 Mankey Fighting
PoliwratWater Fighting 510 PoliwratWater
VictreebGrass Poison 490 VictreebGrass
Tentaco Water Poison 335 Tentaco Water
Magnet Electric Steel 465 Magnet Electric
Dewgon Water Ice 475 Dewgon Water
Cloyster Water Ice 525 Cloyster Water
Onix Rock Ground 385 Onix Rock
DragonaiDragon 420 DragonaiDragon
PidgeottNormal Flying 349 PidgeottNormal
Rattata Normal 253 Rattata Normal
Beedrill Bug Poison 395 Beedrill Bug
Doduo Normal Flying 310 Doduo Normal
Kingler Water 475 Kingler Water
NidoquePoison Ground 505 NidoquePoison
Hitmon Fighting 455 Hitmon Fighting
Charme Fire 405 Charme Fire
Arbok Poison 438 Arbok Poison
Gastly Ghost Poison 310 Gastly Ghost
Magikar Water 200 Magikar Water

Count 0 20 Count 20
CountA
tA counts all cells in a range that has values, both numbers and letters.

Type 2 Total stats


305
Fighting 510
Poison 490
Poison 335
Steel 465
Ice 475
Ice 525
Ground 385
420
Flying 349
253
Poison 395
Flying 310
475
Ground 505
455
405
438
Poison 310
200

12 20
COUNTBLANK
The COUNTBLANK function is a premade function in Excel, which counts blank cells in a range.

Name Type 1 Type 2 Total stats


Mankey Fighting 305
PoliwratWater Fighting 510
VictreebGrass Poison 490
Tentaco Water Poison 335
Magnet Electric Steel 465
Dewgon Water Ice 475
Cloyster Water Ice 525
Onix Rock Ground 385
DragonaiDragon 420
PidgeottNormal Flying 349
Rattata Normal 253
Beedrill Bug Poison 395
Doduo Normal Flying 310
Kingler Water 475
NidoquePoison Ground 505
Hitmon Fighting 455
Charme Fire 405
Arbok Poison 438
Gastly Ghost Poison 310
Magikar Water 200

Count 8 0

Formula Used: Countblank(Range)


Countif
The COUNTIF function is a premade function in Excel, which counts cells as specified.
Ques: count how many Pokemons we have in the different types:

Name Type 1 Type 2 Total stats


Mankey Fighting 305
PoliwratWater Fighting 510
VictreebGrass Poison 490
Tentaco Water Poison 335 Grass 1
Magnet Electric Steel 465 Water 6
Dewgon Water Ice 475 Electric 1
Cloyster Water Ice 525 Fighting 1
Onix Rock Ground 385 Rock 1
DragonaiDragon 420 Dragon 1
PidgeottNormal Flying 349 Normal 3
Rattata Normal 253 Bug 1
Beedrill Bug Poison 395 Poison 2
Doduo Normal Flying 310 Fire 1
Kingler Water 475 Ghost 1
NidoquePoison Ground 505
Hitmon Fighting 455 Formula Used COUNTIF(L5:L24,P8)
Charme Fire 405
Arbok Poison 438
Gastly Ghost Poison 310
Magikar Water 200
IF
Returns values based on a true or false condition.
Ques: Check if the Pokemon type is grass:

Name Type 1 Total Grass Type


BulbasaurGrass 318 Yes
Ivysaur Grass 405 Yes
VenusaurGrass 525 Yes Formula Used: IF(B3="Grass"," Yes", "No")
CharmandFire 309 No
CharmeleFire 405 No =IF(logical_test, [value_if_true], [value_if_false])
CharizardFire 534 No
Squirtle Water 314 No
WartortleWater 405 No
Blastoise Water 530 No
IFS
which returns values based on one or more true or false conditions.
Ques: Speed more than 90: "Fast", Speed more than 50: "Normal", Speed less than or equal to 50: "Slow"

Name Type 1 Speed Speed Category


Bulbasa Grass 45 Slow
Ivysaur Grass 60 Normal
VenusauGrass 80 Normal
Charma Fire 65 Normal
Charme Fire 80 Normal
Charizar Fire 100 Fast
Squirtle Water 43 Slow
WartortlWater 58 Normal
BlastoiseWater 78 Normal
r equal to 50: "Slow"
Name Marks Result
<40 Fail Payal 25 Fail
>40 Pass Prem 45 Pass
>60 Distinction Jeet 65 Distinction
Saahil 15 Fail
Aksha 85 Distinction
Amit 42 Pass
Vijay 25 Fail
Akhand 85 Distinction
Formula Used:
IF(D5>60, "Distinction", IF(D5<40,"Fail","Pass"))
LEFT

To retrieve values from the left side of an Excel cell, use LEFT.
LEFT(cell)

Name Type 1 Total stats


Mankey Fighting 305 Mankey
Poliwrath Water 510 Po
Victreebel Grass 490 Vi
Tentacool Water 335 Te
Magneton Electric 465 Ma
Dewgong Water 475 De
Cloyster Water 525 Cl
Onix Rock 385 On
Dragonair Dragon 420 Dr
Pidgeotto Normal 349 Pi
Rattata Normal 253 Ra
Beedrill Bug 395 Be
Doduo Normal 310 Do
Kingler Water 475 Ki
Nidoqueen Poison 505 Ni
Hitmonchan Fighting 455 Hi
Charmeleon Fire 405 Ch
Arbok Poison 438 Ar
Gastly Ghost 310 Ga
Magikarp Water 200 Ma
RIGHT

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)

Name Type 1 Total stats Cell: LOWER(A8) Range: LOWER(A8:B27)


ManKey FiGhTINg 305 mankey fighting mankey fighting
pOLIwR WATER 510 poliwrath water poliwrath water
VICtree GrASs 490 victreebel grass victreebel grass
TentaCoWateR 335 tentacool water tentacool water
MagNETEleCTric 465 magneton electric magneton electric
DeWgO WaTEr 475 dewgong water dewgong water
CloysTERWAtEr 525 cloyster water cloyster water
OnIX RoCk 385 onix rock onix rock
DragONADRAGON 420 dragonair dragon dragonair dragon
PIDGEO NorMaL 349 pidgeotto normal pidgeotto normal
RaTTAtaNOrmAl 253 rattata normal rattata normal
BeEDrill BuG 395 beedrill bug beedrill bug
DodUO NoRMAl 310 doduo normal doduo normal
KinGLer WateR 475 kingler water kingler water
NIDoqu POIson 505 nidoqueen poison nidoqueen poison
HitMON FighTING 455 hitmonchan fighting hitmonchan fighting
CharME FirE 405 charmeleon fire charmeleon fire
ArBOk PoISOn 438 arbok poison arbok poison
GasTLy gHOsT 310 gastly ghost gastly ghost
maGIKarwATer 200 magikarp water magikarp water
MAX
finds the highest number in a range.

Name Type 1 Type 2 Total stats


Mankey Fighting 305
PoliwratWater Fighting 510
VictreebGrass Poison 490
Tentaco Water Poison 335
Magnet Electric Steel 465 MAX 525
Dewgon Water Ice 475 MIN 200
Cloyster Water Ice 525
Onix Rock Ground 385
DragonaiDragon 420
PidgeottNormal Flying 349
Rattata Normal 253
Beedrill Bug Poison 395
Doduo Normal Flying 310
Kingler Water 475
NidoquePoison Ground 505
Hitmon Fighting 455
Charme Fire 405
Arbok Poison 438
Gastly Ghost Poison 310
Magikar Water 200
MEDIAN

returns the middle value in the data.


MEDIAN
1 1 2 3 3 4 4 3

1 2 3 4 90 6 7 8
5

15.125
MODE
used to find the number seen most times.

Trainer Pokeball Great Ball Ultraball Master Ball


Iva 10 4 1 1
Liam 12 3 0 1
Jenny 15 1 3 1
Iben 4 2 6 0
Adora 10 4 1 1
Kasper 9 2 1 0

MODE 1
OR
returns TRUE or FALSE based on two or more conditions.
OR([logical1], [logical2], ...)

Name Type 1 Defense Water Type OR more than 60 Defense


Bulbasaur Grass 49 FALSE
Ivysaur Grass 63 TRUE
Venusaur Grass 83 TRUE
Charmander Fire 43 FALSE
Charmeleon Fire 58 FALSE
Charizard Fire 78 TRUE
Squirtle Water 65 TRUE
Wartortle Water 80 TRUE
Blastoise Water 100 TRUE

Example OR Function (with IF)


Combining the OR function with an IF function lets you check multiple conditions for the IF func

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

conditions for the IF function:

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?

#NAME? SEQUENCE(5,1,8,16 where 8 is starting point and 16 w


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

8 is starting point and 16 will be number of steps. 8+16 = 24, 24 +16 = 40


RAND
RAND() A random number greater than or equal to 0 and less than 1
RAND()*10 A random number greater than or equal to 1 and less than 10
RAND()*100 A random number greater than or equal to 0 and less than 100
INT(RAND()*100) A random whole number greater than or equal to 0 and less than 100

INT(RAND()*10) RAND()*100 RAND()*10 Note: Use INT to avoid decimal


1 70.976808897624 4.83230743
8 76.864697279923 6.22987363
3 96.132200352553 3.41873399
5 30.550805330671 2.21574296
0 96.89637503748 8.847596 SEQUENCE(2,5,INT(RAND()*10),INT(RAN
0 31.490635892542
4 80.800778136513 #NAME? #NAME? #NAME?
79.297924078005 #NAME? #NAME? #NAME?
o 0 and less than 1
o 1 and less than 10
and less than 100
equal to 0 and less than 100

e INT to avoid decimal

NCE(2,5,INT(RAND()*10),INT(RAND()*10))

#NAME? #NAME?
#NAME? #NAME?
IFERROR

DataType Data IFERROR


TEXT Tutorialspoint Tutorialspoint
NUMBER 100 100
1 TRUE TRUE
0 FALSE FALSE
Error from formula #DIV/0! skip
Adding Day 11/26/2024

Adding Month 4/19/2025 EDATE(TODAY(),5)


Adding Year 11/19/2034 EDATE(TODAY(),120)

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)

So my age is 24 year 24 months and 19 days)


Adding 10 Year (Converting 10 year into month)

month will be shown)


days will be shown)
SUMPRODUCT

Array 1 Array 2 Multiply


2 9 18
4 5 20
5 2 10
total 48

No need to multiply and then add 48 SUMPRODUCT(C5:C7,D5:D7)

using sumproduct we can find total in few steps

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])

Top Products Product Code Quantity Price Laptop


Mobile IOOOA658100 25 26.95 Shoes
Camera 1001-540T101 20 28.95
Watches 1002094N102 35 31.95
Cosmetics 1003-307Q103 20 35.95
Shoes 1004-8488104 30 18.95
Laptop 1005 Vos Slos 40 20.95
Perfumes 1006-552-1106 1 4.95
Clothes 1007-634-0107 5 8.95

Top Product Price Quantity Total


Shoes 18.95 30 568.5
Laptop 20.95 40 838

Top Product Price Quantity Total


Cosmetics 35.95 20 719
Here H5(Laptop) is for what you searching ,
C6:F13 is where you are searching, 4 is what you
are searching (provide column number where
that value is, 0/1 or true/False) where 0 and false
20.95 VLOOKUP(H5,C6:F13,4,0) is for exact search.
18.95

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])

Top Products Shoes 5 MATCH(D6,B7:B14,0)


Mobile
Camera
Watches
Cosmetics
Shoes
Laptop
Perfumes
Clothes
HLOOKUP Function
Syntax: HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Product Code: XPIOO XP200 XP300 AXIO


Warehouse 1 120 150 135 90
Warehouse 2 55 110 75 95
Warehouse 3 70 115 65 55

Enter Product Code Here: AX25 AX50


Warehouse 1 Inventory: 95 140
Warehouse 2 Inventory: 75 55
Warehouse 3 Inventory: 85 65
AX25 AX50
95 140
75 55
85 65
INDEX & MATCH - Perfect for Complex Lookups

Basic Example

Division Apps Revenue Profit Select App:


Game Fightrr 11,649 802 Division
Game Kryptis 7,718 876 Profit
Game Perino 15,033 469
Game Hackrr 18,701 985 Revenue
Productivity WenCaL 14,432 240
Productivity Blend 17,990 1,166
Productivity Sleops 11,022 550
Utility Accord 17,760 800
Utility Misty Wash 30,400 787
Utility Twenty20 20,400 614

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

List 1 List 2 List 3 Select List 1


WenCaL Fightrr Commuta WenCaL
Blend Kryptis Infic Blend
Voltage Perino Accord Voltage
Inkly Five Labs Misty Wash Inkly
Sleops Twistrr Twenty20 Sleops
Kind Ape Hackrr Tanox Kind Ape
Pet Feed Pes Minor Liar Pet Feed
Right App Baden Mosquit Right App
Mirrrr Jellyfish Atmos Mirrrr
Halotot Aviatrr Scrap Halotot
Flowrrr deRamblr Motocyco Flowrrr
Silvrr Arcade Amplefio Silvrr
Dasring Strex Dasring
Rehire Rehire
Didactic Didactic

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

Select KPI: Actual


Revenue
WenCaL 14,432

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.

Name Type 1 Total stats


Mankey Fighting 305 Mankey Fighting
Poliwrath Water 510
Victreebel Grass 490 the total stats for Poliwrath are 510
Tentacool Water 335
Magneton Electric 465
Dewgong Water 475
Cloyster Water 525
Onix Rock 385
Dragonair Dragon 420
Pidgeotto Normal 349
Rattata Normal 253
Beedrill Bug 395
Doduo Normal 310
Kingler Water 475
Nidoqueen Poison 505
Hitmonchan Fighting 455
Charmeleon Fire 405
Arbok Poison 438
Gastly Ghost 310
Magikarp Water 200
ween 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

akhand akhand pratap singh CONCATENATE(C8," ",C9, " ",C10)


pratap akhand pratap singh
singh
does not accept range

CATENATE(C8," ",C9, " ",C10)


Exact Compare two text strings

The Excel EXACT function compares two text strings, taking into account upper and lower case characters, and returns TRUE if t

Text 1 Text 2 Result


Apple Apple TRUE Exact(C9,D9)
Apple apple FALSE
ABC123 ABC123 TRUE
123 123 TRUE
A stitch in time A stitch in time TRUE
A stitch in time A stitch in Time FALSE
Compare two text strings

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

Find Within Result


A Apple 1
e Apple 5
le Apple 4
the The cat in the hat 12
The The cat in the hat 1
x zebra #VALUE! no value found
zebra #VALUE! return 1 if seach string is empty
: Status: ready 7
- XTC-203-4000 4
3 12345 3
text string inside another. When the text is not found, FIND returns a #VALUE error.
Replace
The Excel REPLACE function replaces characters specified by location in a given text string with

Syntax: Replace(old_text,start_num,num_chars,new_text)

old_text - The text to replace.


start_num - The starting location in the text to search.
num_chars - The number of characters to replace.
new_text - The text to replace old_text with.

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.

text The text to change.


old_text The text to replace.
new_text The text to replace with.
instance The instance to replace. If not supplied, all instances are replaced.

Input Output I want Output I get


tuttle bubble bubble
tuttle buttle buttle
Cat, cat Cat, dog Cat, dog
##cash## cash cash
s text in a given string by matching.

e. If not supplied, all instances are replaced.

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)

Input Output I want Output


100 $100 $100
0.85 85% 85%
6:00 PM 18:00 18:00
3.1415927 3.14 3.14
17-Dec-21 Friday, December 17 Friday,December,17
18-Dec-21 December 18, 2021 Saturday 18, 2021
19-Dec-21 Fri, Dec 19 Sun, Dec 19
15% Profits are up 15% Profits are up 15%
3-May-21 Register by May 3! Register by May 3!
ber format, as text. You can use the TEXT function to embed formatted numbers inside 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.

Value 1 Value 2 Value 3 Value 4


Result
1 2 3
4 1, 2, 3, 4
One Two Three Four One, Two, Three, Four
limes pears plums limes, pears, plums
mangos mangos
10% 15% 20% 25% 0.1, 0.15, 0.2, 0.25
1-Jul-21 2-Jul-21 3-Jul-21 4-Jul-21 44378, 44379, 44380, 44381
$29.95 $49.50 $9.95 $75.00 $29.95, $49.50, $9.95, $75.00
r. TEXTJOIN can concatenate values provided as cell references, ranges, or constants, and can optionally ignore empty cells

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])

array Range or array to filter.


include Boolean array, supplied as criteria.
if_empty
[optional] Value to return when no results are returned.

Name Score Group Group: Red


Hannah 93 Red
Edward 79 Blue #NAME? #NAME?
Miranda 85 Red #NAME? #NAME?
William 64 Blue #NAME? #NAME?
Joanna 81 Red #NAME? #NAME?
Collin 85 Blue #NAME? #NAME?
Mallory 81 Red
Oscar 63 Blue
Arturo 79 Red
Annie 72 Blue
Formula

#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])

array Range or array to sort.


sort_index
[optional] Column index to use for sorting. Default is 1.
sort_order
[optional] 1 = Descending. Default is ascending order.
by_col
[optional] TRUE = sort by column. FALSE = sort by row. Default is FALSE.

Name Score Name Score


Hannah 93 #NAME? #NAME?
Edward 79 #NAME? #NAME?
Miranda 85 #NAME? #NAME?
William 64 #NAME? #NAME?
Joanna 81 #NAME? #NAME?
Collin 85 #NAME? #NAME?
Mallory 81 #NAME? #NAME?
Oscar 63 #NAME? #NAME?
Arturo 79 #NAME? #NAME?
Annie 72 #NAME? #NAME?
w. Default is FALSE.

Formula

SORT(D10:E19,2,-1)
TextSplit/TextAfter/TextBefore
Extract text after a delimiter

Textsplit(text,delimiter)

Formula: TEXTBEFORE(D9,",") TEXTAFTER(D9,",") TEXTSPLIT(D9,",")


Text Textbefore TextAfter Textsplit
Brown, Jim Brown Jim #NAME?
Shizuoka, Aya Shizuoka Aya #NAME?
Drexel, Janice Drexel Janice #NAME?
Malloy, Steve Malloy Steve #NAME?
Sanders, Timothy Sanders Timothy #NAME?
Smith, Jordan Smith Jordan #NAME?
Chang, Jason Chang Jason #NAME?
Harris, Emily Harris Emily #NAME?
Nomura, Yuki Nomura Yuki #NAME?
Grady, Kelly Grady Kelly #NAME?
Brown, Walter Brown Walter #NAME?
TEXTSPLIT(D9,",")
Textsplit
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
ToRow
Transform array to single row

Formula: Torow(array,ignore,scan_by_column)

array The array to transform.


ignore
Control to ignore blanks and errors.
scan_by_c
olumn Scan array by column. TRUE = column, FALSE = row (default = TRUE).

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?

You might also like