Microsoft Excel Tutorial
Microsoft Excel Tutorial
Competent
1. Introduction to Excel
Excel is a spreadsheet program that allows you to store, organize, and analyze data. Its primary
function is to perform calculations, create charts, and handle data effectively. Let’s start from the
basics.
Text Entry: Just click on a cell (e.g., A1) and type John Doe.
Number Entry: Enter a number, e.g., in cell B1 type 250.
Addition: Type in =A1+B1 in another cell to sum the values in A1 and B1.
Subtraction: Type =A1-B1 to subtract.
Multiplication: Type =A1*B1 to multiply.
Division: Type =A1/B1 to divide.
Example:
A B C
100 200 =A1+B1 → 300
150 50 =A2-B2 → 100
3. Formatting Cells
3.1 Number Formatting
Currency: Select a cell (e.g., B1), go to the "Home" tab, and click on the currency
symbol.
Percent: Click on a cell (e.g., B2) and select % to show the number as a percentage.
Custom Formatting: Right-click a cell, choose Format Cells, and select the format like
Date, Time, Number.
Bold, Italics, and Underline: Highlight a cell and use Ctrl+B, Ctrl+I, or Ctrl+U to
format the text.
Change Font Color: From the Home tab, select the "Font Color" option.
Text Alignment: Align text (Left, Center, Right) via the alignment options.
Example:
A B
$100.00 50%
John Smith
Example:
A B
100 =SUM(A1
) → 450
200 =AVERAGE(A1
) → 150
150
4.2 IF Statements
The IF function performs a logical test and returns a value based on the result:
1. SUM
scss
Copy code
=SUM(A1:A5)
Example: If cells A1 to A5 contain 10, 20, 30, 40, 50, =SUM(A1:A5) will return 150.
2. AVERAGE
scss
Copy code
=AVERAGE(A1:A5)
Example: If cells A1 to A5 contain 10, 20, 30, 40, 50, =AVERAGE(A1:A5) will return 30.
3. COUNT
scss
Copy code
=COUNT(A1:A5)
Example: If A1 to A5 contain 10, Text, 30, "", 50, =COUNT(A1:A5) will return 3 (only
numeric cells are counted).
4. COUNTA
Example: If A1 to A5 contain 10, Text, 30, "", 50, =COUNTA(A1:A5) will return 4.
5. IF
Performs a logical test and returns one value if TRUE and another if FALSE.
arduino
Copy code
=IF(A1>50, "Pass", "Fail")
Example: If A1 contains 70, the formula will return "Pass". If A1 contains 40, it will return
"Fail".
6. VLOOKUP
Looks for a value in the first column of a table and returns a value in the same row from another
column.
php
Copy code
=VLOOKUP(A1, B1:D10, 3, FALSE)
Example: If A1 contains 102 and in the table range B1:D10, 102 is in column B, this will return
the value in the 3rd column of the same row.
7. HLOOKUP
Similar to VLOOKUP, but searches horizontally across the top row of a table and returns a value
in the same column from a specified row.
php
Copy code
=HLOOKUP(A1, B1:F5, 3, FALSE)
Example: If A1 contains ID101 and it's found in the first row of the table in range B1:F5, this
will return the value in the 3rd row of that column.
8. CONCATENATE / CONCAT
scss
Copy code
=CONCATENATE(A1, " ", B1)
Example: If A1 contains John and B1 contains Doe, =CONCATENATE(A1, " ", B1) will return
"John Doe".
9. LEFT
scss
Copy code
=LEFT(A1, 3)
10. RIGHT
scss
Copy code
=RIGHT(A1, 4)
11. MID
Returns a specific number of characters from a text string, starting at a specific position.
scss
Copy code
=MID(A1, 2, 3)
scss
Copy code
=LEN(A1)
13. TRIM
Removes extra spaces from text, leaving single spaces between words.
scss
Copy code
=TRIM(A1)
Example: If A1 contains " Excel Tutorial ", =TRIM(A1) will return "Excel Tutorial".
14. MAX
scss
Copy code
=MAX(A1:A5)
Example: If A1 to A5 contain 10, 20, 30, 40, 50, =MAX(A1:A5) will return 50.
15. MIN
scss
Copy code
=MIN(A1:A5)
Example: If A1 to A5 contain 10, 20, 30, 40, 50, =MIN(A1:A5) will return 10.
16. ROUND
scss
Copy code
=ROUND(A1, 2)
17. SUMIF
less
Copy code
=SUMIF(A1:A5, ">30")
Example: If A1 to A5 contain 10, 40, 50, 20, 70, =SUMIF(A1:A5, ">30") will return 160
(adds 40, 50, and 70).
18. COUNTIF
less
Copy code
=COUNTIF(A1:A5, ">30")
Example: If A1 to A5 contain 10, 40, 50, 20, 70, =COUNTIF(A1:A5, ">30") will return 3.
19. NOW
scss
Copy code
=NOW()
Example: If today’s date is October 22, 2024, =NOW() will return something like 10/22/2024
12:30 PM.
20. TODAY
scss
Copy code
=TODAY()
Example: If today’s date is October 22, 2024, =TODAY() will return 10/22/2024.
21. SUBTOTAL
scss
Copy code
=SUBTOTAL(1, A1:A5)
Example: 1 represents AVERAGE, so this will calculate the average of the visible cells in the
filtered range A1
22. INDEX
Returns the value of a cell in a given range based on row and column numbers.
scss
Copy code
=INDEX(A1:B3, 2, 2)
Example: If A1
contains data, this will return the value in the 2nd row and 2nd column.
23. MATCH
Searches for a specified item in a range and returns the relative position of that item.
scss
Copy code
=MATCH(50, A1:A5, 0)
Example: If A1 to A5 contain 10, 20, 50, 70, 90, =MATCH(50, A1:A5, 0) will return 3 (the
position of 50 in the list).
24. TEXT
scss
Copy code
=TEXT(A1, "mm/dd/yyyy")
Example: If A1 contains 44210 (Excel’s internal date format), =TEXT(A1, "mm/dd/yyyy") will
return 10/22/2024.
25. AND
scss
Copy code
=AND(A1>10, B1<100)
26. OR
scss
Copy code
=OR(A1>10, B1>100)
These are some of the most frequently used Excel formulas. By mastering them, you’ll be able to
work more efficiently and perform a wide range of calculations and data analysis.
5. Data Management
5.1 Sorting and Filtering
Sorting: Highlight your data, go to the Data tab, and click Sort to organize by ascending
or descending.
Filtering: Select the data, click Filter, and use the dropdown arrows to filter values.
Example:
Name Score
Alice 75
Bob 90
Charlie 85
Highlight cells, go to the Data tab, click Data Validation, and set criteria (e.g., only
numbers between 1 and 100).
Example:
Month Sales
Jan 1000
Feb 1200
Mar 900
Select this data and insert a Bar Chart to visualize sales trends.
7. Pivot Tables
7.1 Creating Pivot Tables
Example: If you have sales data for multiple regions, you can create a pivot table to summarize
total sales by region.
8. Conditional Formatting
Highlight cells based on specific conditions:
Select cells, go to Home → Conditional Formatting, and choose rules like Highlight
Cells Greater Than....
Example:
You can use conditional formatting to highlight all sales greater than $1000.
9. Advanced Formulas
9.1 VLOOKUP
Used to search for a value in a column and return a corresponding value from another column:
scss
Copy code
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
scss
Copy code
=CONCATENATE(A1, " ", B1)
Combines the first name and last name in cells A1 and B1.
Use the View tab → Macros → View Macros to run your recorded macro.