Excel Formulas
Excel Formulas
8. MATCH
4. MIN 5. MAX 6. COUNT Searches for a value and
Identifies the Finds the Counts the number of returns its relative position
lowest number highest number cells that contain numbers
in a range in a range =MATCH(L1,M1:M9,0)
=COUNT(F1:F9) to find L1's position from
=MIN(D1:D9) =MAX(D1:D9) Count numeric cells in the range M1:M9
F1 to F9
Find the Get the
minimum in
D1 to D9
maximum value
in D1 to D9
*It only counts the
numerical inputs 9. VLOOKUP
Searches for a value in the
Countblank: Count all the empty cells first column of a range
=VLOOKUP
Finds a value in one range &
(G1,H1:I10,2,FALSE)
10. HLOOKUP 11. XLOOKUP returns a result from another
To find G1 in H1:H10
Searches for =XLOOKUP 2 columns
a value in the (A7,A2:A4,B2:C4) Tips containing the data
top row of a =HLOOKUP For an exact match => FALSE need to be retrieved
To find A7 in A2:A4 & return
table. (J3,J1:O2,2,FALSE) corresponding value from Upwards matching => TRUE
To find J3 in the top row J1:O1 B2:C4 if a match is found (useful when the look up value is a number)
Conditional Calculations
12. COUNTIF / COUNTIFS 13. COUNTA 14. SUMIF / SUMIFS 15. IF / NESTED IFS
Counts cells that meet Counts non-empty cells Adds cells that meet a Performs conditional tests
a condition condition
=IF(R1>5,"Yes","No")
=COUNTIF =COUNTA(O1:O9) =SUMIF For simple conditions
(N1:N9,">5") To count all non- (P1:P9,">5")
To count cells empty cells in a To sum values
greater than 5 range over 5
Note
16. AVERAGEIF / AVERAGEIFS 17. Logical Operators (AND, OR) Combines multiple conditions IF: 1 variable
Calculates the average for IFS: multiple variables
cells that meet criteria Both conditions are =IF(test, true, false)
=AND(S1>5,S2<2) true => Output is true
=AVERAGEIF =IF(test1, true, IF(test2, true,
false)) Nested IF
(Q1:Q9,">5")
Just 1 condition is =IFS(test1, true, test2, true,
Average of values over 5 =OR(S1>5,S2<2) true => Output is true test3, true)