Week 03 : Excel Formula (Fundamentals)PCB - KNOWLEDGE SHARING SESSION
10 Formulas that help you keep your job1. SUM
2. COUNT
3. COUNTA
4. LEN
5. TRIM
6. RIGHT, LEFT, MID
7. VLOOKUP
8. IF
9. SUMIF, COUNTIF, AVERAGEIF
10. CONCATENATE
SUMAdds 2 or more values together.
Formula: =SUM(5, 5) or =SUM(A1, B1) or =SUM(A1:B5)
1. At the formula bar, press =
2. Enter SUM
3. Select a region (using SHIFT or CTRL)
COUNTCounts the number of cells in a range that contains numbers only
Formula: =COUNT(A1:A10)
1. At the formula bar, press =
2. Enter COUNT
3. Select a region (using SHIFT or CTRL)
COUNTACounts the number of cells in a range that contains any values as long it is not empty
Formula: =COUNTA(A1:A10)
1. At the formula bar, press =
2. Enter COUNTA
3. Select a region (using SHIFT or CTRL)
LENCounts the number of characters in a cell (LENGTH) and spaces are taken into account
Formula: =LEN(A1)
1. At the formula bar, press =
2. Enter LEN
3. Select a cell
TRIMRemoves extra spaces in cell, except for single spaces between words
Formula: =TRIM(A1)
1. At the formula bar, press =
2. Enter TRIM
3. Select a cell
RIGHT, LEFT, MIDRemoves a certain range of value based on different starting location
1. RIGHT◦ Formula: =RIGHT(A1,3)◦ Select 3 characters from the right
2. LEFT◦ Formula: =LEFT(A1,3)◦ Select 3 characters from the left
3. MID◦ Formula: =MID(A1,6,3)◦ Select 3 characters from the 6th character onwards
VLOOKUPLooks for a value in the left most column of the table and returns a value in the same row
=VLOOKUP(lookup_value, table_array, col_index_num, range_lookup)
1. lookup_value - Select a cell as the lookup value (Value used to search, usually a unique key/index)
2. table_array – Range to search from
3. col_index_num – Column number to lookup from
4. range_lookup – Approximate or exact?
VLOOKUPWe are getting the intersecting values that match EXACTLY with Table 1(tbl_1) and Table 2(tbl_2)
1. Enter =VLOOKUP(
2. Select the lookup field (unique,ID,index)
3. Select search target data (could be a selected table or predefined table)
4. Enter the column position of the value you want to obtain. (ie: if it is the fourth column of the table, enter the value “4”)
5. In this context, enter “0” or FALSE to make an EXACT match.
IFFormula: =IF(logical_statement, TRUE outcome, FALSE outcome)
SUMIF, AVERAGEIF, COUNTIFFormulas:
=SUMIF(range, criteria, sum_range),
=COUNTIF(range, criteria),
=AVERAGEIF(range, criteria, average_range)
CONCATENATEFormula: = CONCATENATE(B6 & " " & C6)
That’s it! Thanks for your kind attention and please stay tuned for the Week 4 session next week.
Good day!
Prepared by : Jermaine