Excel Notes
Excel Notes
Excel Shortcuts
Functions:
A function is a predefined formula that is used to perform calculations using
specific values in a sequence (Row or Column). We have many functions in Excel.
1. Sum ( ) =SUM(B2:B13)
2. Average ( ) =AVERAGE(B2:B13)
3. Max ( ) =MAX(B2:B13)
4. Min ( ) =MIN(B2:B13)
5. Count ( ) =COUNT(B2:B13)
6. Counta ( ) =COUNTA(I16:I20)
7. Absolute ( ) =ABS(H23)
1. Upper ( ) =UPPER(C2)
2. Lower ( ) =LOWER(C2)
3. Proper ( )=PROPER(B2)
4. Left ( ) =LEFT(C2, 2)
5. Mid ( ) =MID(C2, 2, 3)
6. Right ( ) =RIGHT(C2, 2)
7. Concatenate ( ) =CONCATENATE(B2, ", ", 'Text & Logical Fns'!H2, "- ",
'Text & Logical Fns'!C2)
Date & Time Functions: These will be used for Date & Time Values.
What it does
How it works
A pivot table organizes and rearranges data to highlight important facts. You can
use it to identify patterns, trends, and comparisons in your data.
You can use a pivot table to answer questions about your data, create custom
calculations, and present your findings in reports.
Select any one cell on raw data -> Got o Insert Tab -> Pivot Table -> New
Worksheet -> OK
Create Simple Pivot Table (Or Copy & Paste the Previous one) -> Select any
one Cell in Pivot Table -> Right Click -> Pivot Table Options -> Display ->
Check Classic Pivot Table Layout. (For clear column headings)
Ex: To show Sub category wise Count of Orders, Avg. Sales, and Sum of
profits.
Go to Pivot Table Field List -> ∑ values -> Go to required field dropdown ->
Value field settings -> Choose required field operation (Count, Sum, Avg …
etc) from the list.
MSOfc.v7: Create PT with Job, Sal, Employees -> Select any one cell in PT ->
Go to Pivot Table Tools Tab -> Options -> Formulas -> Calculated Field ->
Name: AVG SAL (your wish) & Formula: =SAL / EMPLOYEES -> OK.
MSOfc.v19: Create PT with Job, Sal, Employees -> Select any one cell in PT -
> Go to Pivot Table Tools Tab -> Analyze ->Fields, Items & Sets -> Calculated
Field -> Name: AVG SAL (your wish) & Formula: =SAL / EMPLOYEES -> OK.
MSOfc.v7: Select any one cell under Job (Any Text Only) Column of above
PT -> Go to Pivot Table Tools Tab -> Options -> Formulas -> Calculated Item -
> Name: Manager % (your wish) &
MSOfc.v19: Select any one cell under Job (Any Text Only) Column of above
PT -> Go to Pivot Table Tools Tab -> Analyze ->Fields, Items & Sets ->
Calculated Item ->-> Calculated Item -> Name: Manager % (your wish) &
Select Manager % Values and convert them to % & Avg Sal Value to white
text to hide.
Ex1: To show Sum of Quantities for every 200 orders by RowId column
(Number Grouping)
Create a Pivot Table with Rowid to Row Labels & Quantity to values sections
MSOfc.v7: -> Select any one cell in PT -> Go to Pivot Table Tools Tab ->
Options -> Group Selection -> Grouping By 200 -> OK.
MSOfc.v19: -> Select any one cell in PT -> Go to Pivot Table Tools Tab ->
Analyze -> Group Selection -> Grouping By 200 -> OK.
Ex2: To show Sum of Quantities by Year, Quarter, Month using Order Date
column (Date Grouping)
Copy & Paste the above Number Grouping PT -> Replace RowId with Order
Date in Row Labels -> Select any one cell in PT -> Go to Pivot Table Tools Tab
-> Options -> Group Selection -> Grouping By Years, Quarters, Months ->
OK.
For Clear Table Format: Select any one cell in PT -> Design -> Report Layout
-> Show in Tabular Form. Also Show or do not show Sub Totals & Grand
Totals for Rows & Columns.
Slicers indicate the current filtering state, making it easier to understand what is
currently displayed. You can connect multiple slicers to multiple pivot tables to
create reports.
The following two steps can be followed to include slicers in Excel tables or Excel
pivot tables.
Step 1: Convert the data into a tabular format or a pivot table format.
Step 2: Select any cell of the Excel table or pivot table and insert slicers.
Select insert slicer: Insert Tab -> Slicer from Filter section.
Step 2
In the pivot table sheet, navigate to the insert option, select the option to insert
slicers.
Now insert the slicers. Inserting slicers is completely the same as inserting slicers
in a table.
The slicers will be available on the screen and ready for operations
Try to filter the information using slicers, and the results should appear similar
to the following image below
Now, you will earn some of the crucial benefits of using slicers in Excel.
Excel Charts
Charts are visual representations of data used to make it more understandable.
Pie chart
Column chart
Line chart
What is VLOOKUP?
VLOOKUP or Vertical Lookup, is a lookup function in Microsoft Excel and Google
Sheets to find specific information based on a reference value. It works by
searching vertically down a specific column for a matching value. It then retrieves
data from a different column in the same row.
What is HLOOKUP?
HLOOKUP, or Horizontal Lookup, is another lookup function. HLOOKUP
searches horizontally across a specific row for a matching value.
Syntax:
VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])
HLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])
lookup_value: This is the value you’re searching for in the first column. It could
be something like a product name or ID.
table_array: The column or row potentially containing the lookup value must be
in the left column of this range (VLOOKUP) or the top row (HLOOKUP). The
column containing the returned value should also be included in the range.
col_index_num: This tells Excel which column to grab the data from. The first
column of the table is column 1, the next one is column 2, and so on.
range_lookup: This is where you specify if you want an exact match (FALSE) or
a close match (TRUE). For exact matches like product names or IDs, you’d use
FALSE.