Professional Documents
Culture Documents
Excel Notes
Excel Notes
Excel Notes
The SUMIFS function, adds all of its arguments that meet multiple
criteria. For example, you would use SUMIFS to sum the number of
retailers in the country who (1) reside in a single zip code and (2) whose
profits exceed a specific dollar value.
The DSUM function is categorized under Excel Database functions. The
function helps to calculate the sum of a specific field/column in a
database for selected records based on user-specified criteria.
DIFFERENCE: DSUM requires column headers for both the range and
criteria whereas SUMIFS doesn't require column headers.
SCENARIO: Let’s say you are given a worksheet with a bunch of data. You
want to figure out or analyze the sum of sales for certain sales REP and
country.
In this practice:
The sum of sales of:
Rep (Criteria range1) : Croxon (Criteria1)
Country (Criteria range 2) : U.S.A (Criteria2)
STEPS: SUMIFS
1) fx > Math & Trig > SUMIFS (pop-up will show up)
2) Under the SUMIFS pop-up:
Sum_range: the criteria that you want to sum (Ex: K2:K56 for
Sales)
Criteria_range1: first category (Ex: M2:M56 for Rep)
Criteria1: what you are looking for in Rep? (Ex: D59 or
Croxon)
=SUMIFS(K2:K56,M2:M56,D59,G2:G56,D60)
STEPS: AVERAGEIFS
1) fx > statistical > AVERAGEIFS
2) Follow the same steps from SUMIFS
Formula should look like this:
=AVERAGEIFS(K2:K56,M2:M56,D59,G2:G56,D60)
Therefore, the average is 32.
STEPS: DSUM
1) fx > database > DSUM
2) Under DSUM:
Database: highlight everything (Ex: A1:M56)
Field: the category you want to add up/sum (Ex:Sales or
G62)
Criteria: Highlight all the one you wrote
Rep Country
Wickham U.S.A.
Ex: H59:I60
loan $500
amount: 000
years: 25
interest 3.75
rate: %
monthly
pmt:
total
paid:
SCENARIO:
You’re given the ff: Calculate based from given above.
BALANC
PMT# INTEREST PRINCIPAL TOTAL E
=PPMT($D$3/12,A9,$D$2*12,$D$1)
WEEK 2 LESSON NOTES (EXCEL)
3D REFERENCING
3D referencing - If you want to analyze data in the same cell or range of cells on
multiple worksheets within a workbook.
SCENARIO 1: Let’s say you have 4 different worksheets (East, West, South, Total
(b/c its going to hold on to the totals of all the other worksheets). You want all these
worksheets to be the same. You also want to total all the amounts of each name in each
category under the “Total” worksheet.
- East Worksheet is the first worksheet
- South Worksheet is the 2nd to the last worksheet
- This file is called a workbook
STEPS:
1) Selecting: Instead of copying & pasting from each worksheet to another, press
the SHIFT or CTRL on the keyboard to select all 4 different worksheets. This
means that anything we do will apply to all worksheets the same.
EX: If you write names and totals, it will also be applied to the other
worksheets therefore, all of them will be the same or common.
This will also apply when you’re printing. It is a quick way to print multiple
worksheets.
EX: Bob total = 120, Karen = 150 (These are for January)
Formula should look like this: =EAST!B4+WEST!B4+SOUTH!B4 – this is
Bob’s
EX: Bob total = 150, Karen = 180 (These are for February)
Analyzation: Bob’s total is from East to South amounts. Same for Karen.
Formula should look like this: =SUM(EAST:SOUTH!C4) – this is Bob’s
REMINDER:
If you change the position of the worksheets, the numbers/amounts will also
change. Be careful!!!
Ex: switching the position of South and West worksheets will change the
total amount in the “Total Worksheet”.
If you want to add another Worksheet, the total amount in the “Total” worksheet
will change. Be careful!!!
SCENARIO 2: Let’s say you want to add another worksheet to the workbook. The
new worksheet is called North. How do you add it if the numbers/amounts will change?
STEPS:
1) Don’t retype everything: Pick only one of the worksheets that you want to copy
and paste to the new worksheet.
2) Add a new tab: Copy everything in the West worksheet. Then, add a new tab and
rename it North. After, paste it into the new worksheet (North).
Note: Once you make the new worksheet. Wherever the position is, it will change
the total amount in the “Total” worksheet because the amounts in North weren’t
added from the start.
3) Update the Total worksheet: To fix the issue, only choose the first name that’s
written in the Total worksheet and update the formula by adding the amounts in
North. Drag down the rest amounts to update it as well. The steps will be the
same as above. This is only applicable for the formula of option 1!!!
Ex: New amount for Bob in the total worksheet = 160 (only for January), drag
down for the rest (Karen, etc)
Feb and March month is fine because the formula is option 2
Old Formula: =EAST!B4+WEST!B4+SOUTH! to
New Formula: =EAST!B4+WEST!B4+SOUTH!B4+North!B4
AUDITING
Auditing – you can use it to verify or understand how your spreadsheet is put together. It
is to help you figure out where certain values are being used or where certain values
are coming from. The auditing formula is under the “Formulas” tab. It consists of:
Trace Precedent: (WHERE THE VALUE COME FROM)
Scenario: Let’s say you want to know about the number 420 (East – Total). What
precedes it? Where does this get its value from?
Steps:
Click on the cell where 420 is written
Click “Trace Precedent” (arrow will show up)
In this case, it’s showing that 420 is the sum of E4 to E7
If you click “Trace Precedent” again, it will show where do these
values come from.
Scenario: Let’s say you want to know where is number 10 (East - Bob for
January) used anywhere?
Steps:
Select cell - 10
Click “Trace Dependents” (a dotted arrow will show up pointing
where the number is used somewhere else in another worksheet –
need to find) (the blue arrow also points out where the cell/number
is dependent – no need to find b/c it will be shown).
Click the “Trace Dependents” (this continues the next step) again to
know which part of the new number is used.
In this case, the number 10 is part of the number 60.
If you click again, the number 60 is part of the number 420.
If you click again and no arrow shows, it means the end. Ex: 420 is
the last number.
DATA VALIDATION
Data Validation - a feature that allows you to control the type of data
entered into your worksheet. For example, Excel data validation allows you
to limit data entries to a selection from a dropdown list and to restrict
certain data entries, such as dates or numbers outside of a predetermined
range.
Prevent anything out of what you specify from being entered or you
can bring notice to it or override it.
If someone clicks all the default keys, that person still can’t
change/override the value.
1) Follow the same steps from the first style on step 1,2,3,4,6 (Ex: East
worksheet – February cells)
2) Error Alert: It will pop up if somebody enters a value against what
your settings are. Ex: A pop-up will show up if someone puts a value
less than zero!! The default keys that will show up are: Yes, No,
Cancel, Help
If someone clicks on the YES default key, they can change the value
or override it, or it lets you proceed. Ex: writing less than zero or
negative value (-20)
1) Follow the same steps from the first style on step 1,2,3,4,6 (Ex: East
worksheet – March cells)
2) Error Alert: It will pop up if somebody enters a value against what your
settings are. Ex: A pop-up will show up if someone puts a value less
than zero!! The default keys that will show up are: Ok, Cancel, and
Help.
If someone clicks on the OK default key or hit ENTER on the keyboard,
they can change the value or override it, or it lets you proceed. Ex:
writing less than zero or negative value (-20)
Style: Choose a style (Ex: Information)
Title: Write what you want your message to say (Ex: Data Entry
Error)
Error Message: (Ex: This is a negative value, are you sure?)
IFERROR
IFERROR – allows you to catch errors and return your own custom value
when there is an error.
SCENARIO 1: Let’s say you are given worksheets (about shipments) and
the labour hours are given (Ex: 2000 hrs). You want to figure out how many
units per person or per hour have been incorporated into the grand total?
STEP:
Calculate the productivity to know how many units:
Formula: Grand Totals/Labour hours (3120/2000 = 1.56 units)
SCENARIO 2: What if you weren’t given the labour hours and you have to
wait for it? So, you put zero for productivity for now: 3120/0 = #DIV/0!
NOTE: If you open a file and you see this error, it means something has
been left blank or written as zero when calculated.
STEPS:
5) Now, try putting zero or leaving it blank on the labour hrs word from
Scenario 1.
***What must show up will be: Productivity = Please ask Bob for the hours
Formula should look like this now:
=IFERROR(E8/E10,"Please ask Bob for the hours")
6) Delete the “productivity” word from Scenario 1 that has the answer
1.56 units.
HYPERLINK
SCENARIO: Let’s say you want to make a Table of Contents in Excel and you want to
have a hyperlink that goes to specific cells.
IMPORTING
Data > From Text/CSV (Get & Transformation Data) > Import Customer –
CSV file (a tab will show up around approx. 200 rows of info about the file
that’s imported) > Click Load (it will automatically add a worksheet)
These functions change the case of letters in a text string and have no
effect on other characters.
STEPS: UPPER FUNCTION
1) Type equals (=)
2) Write UPPER
3) You specify what cell you want to turn into uppercase inside a bracket
(Ex: Cell A1)
***Answer must be all UPPERCASE
Ex: THIS IS A CLASS COVERING EXCEL
NOTE: After you do the functions, you can copy and paste it to another cell
so that it will become the actual text (or no formula).
Concatenation
COMMENTS
Click on the cell you want to comment > Insert > Comment > Write your
comment
OR
Simply right-click and write your comment
PROTECTION
Ex: CellA1, Cell8, Cell9, and Cell10 (based on practice sample sheet
– Sheet 1)
3) Click on any pull-out arrow (Format Cells) > Protection > Uncheck the
“Lock Box”
4) To lock the entire sheet: Review Tab > Protect Sheet > Ok
5) To unlock the entire sheet: Review Tab > Unprotect Sheet > Ok
STEPS: OPTION#2
This option is better if you want to let others know which cells are locked
and unlocked right away.
1) Review tab > Protect Sheet > Uncheck/Disable the first option (Select
lock cells) > Ok
MACROS
Macro is an action or a set of actions that you can record, give a name,
save, and run as many times as you want and whenever you want. Macros
help you to save time on repetitive tasks involved in data manipulation and
data reports that are required to be done frequently.
NOTE:
We need to set up a developer tab:
File > Option > Customize Ribbon > Check the “Developer Box” > Ok
STEPS: TO RECORD
1) To record everything, you’ll do: Developer tab > Record Macro
2) Under Record Macro:
Macro Name: (Ex:PrintStuff) – no space!
Press “ok”
Press “stop macro” to stop recording
Everything you’ll do will be recorded such as writing names, clicking
on a cell, etc.
Ex: (Bob, Karen, Jim)
***All the stuff you did will be recorded and saved in an access file or
excel file.
Only use this if you want to change any info of the recorded macro that you
did.
1) Developer > Macros > Select any macro recorded > Edit (pop-up
window will show up) > change anything you want (it will
automatically be changed) > close the window (hit X)