Excel Notes
Excel Notes
Short keys
1- comma format
4- currency format
GoTo - ctrl+G - to go to a particular sheet and then comeback to the sheet you were previously on
Flashfill-
1. it can combine 2 columns data in 3rd column using the pattern that you define
2. it can extract data from a column based on the pattern that you define
Date function-
Date(year,month,day)
Networkdays.intl(startdate,endate,weekend,holidays)
=text(cell,"mmm")
=today()
=now()
Value formatting
[color][condition]#
[green][>15000]
select- right click- format cells- custom- remove general- type condition- [color][condition]#;
[color][condition]
o example- [green][>15000]#;[blue][<10000]#
Conditional formatting-
expired date- any date less than today's date- =h2<today() - fill orange
select date range- conditional formatting- new rule- use a formula-
upcoming expiry dates
and(condtn1,condtn2)
=and(h2-today()>=0,h2-today()<=30)
Maps
type country names- covert to geography data type- small icon- select required data
type stock names- conver to stocks in data- data types- select what data is required
pictograph
UNIQUE
=unique(column)
what if analysis-
a calculation is required
a varying value is required
go to data- forecast- whatif analysis- goal seek- first one- calculation; second- goal, third-
varying value
go to data-forecast-whatif analysis- scenario manager- type a name for the scenario
go to data- forecast- whatif analysis- data table- row input nothing- column input the qty
go to data- forecast- what if analysis- data table- row n column as rate & qty. before that
select entire table
if the calculation is multiple- then we have to go for the what if analysis data table
method only and supports only two variable method
SOLVER
objective
variables
constraints
objective- 12 months
customers/month
service cost/service
DROPDOWN LIST
DATA-data tools- DATA VALIDATION- list- source- ok
custom list-file-
TREND
rank
=rank(range,table,0/1)
Day2:
DATA ANALYSIS
Analysis tools
Sort- Single column sort/multi-level sort/sort function
Filter- normal/ advanced/ filter function
Important analysis functions
Table/Pivot table
Dashboard
Example- =SORT(TableSalary,3,1)
Filter
Advanced filter
Data- Advanced filter in sort & filter- list range- table- criteria range- side table- copy to select a
cell- select copy to another location- ok
Filter function-
Example- =FILTER(A4:B15,B4:B15>E4)
Analysis function
Example- =IF(B4<100000,B4+5000,0)
=IF(AND(g2>30000,G2<70000,G2*1%,0)
=IFS(condition1,truevalue,Condition2,truevalue,…..)
Must not leave any range of value, otherwise error will come
o More than 80k-5%
o More than 60k-4%
o More than 30k-3%
o More than 20K-2%
Formulas, insert function, ifs, logic, true value, ok
=Countifs(condtnrange1,cndn1,condtnrange2,cndn2,……….)
=sumifs(sumrange,condtn1,cndn1,condtn2,cndn2,……..)
=unique(selectrange)
=maxifs(RANGEOFVALUE,RANGEOFCRITERIA,CRITERIA)
=MINIFS(RANGEIFVALUE,RANGEOFCRITERIA,CRITERIA)
=MAXIFS(C2:C11,B2:B11,E1)
=MINIFS(C2:C11,B2:B11,E1)
=AVERAGEIFS(C2:C11,B2:B11,E1)
SWITCH= IFS
=switch(condition1,value1,condition2,value2,…)
=SWITCH(RIGHT(Z35,2),"UT","Utopia","TX","Texas","OH","Ohio")
LOOKUP
Day 3
Analyse Data
An Interactive dashboard
Data- Connected from different source- /data transformation- excel- data model
Require 3 sheets-
o Data Sheet
o Calculation sheet
o Dashboard
Contents of a Dashboard
MACROS
Interactive chart
=IF($A$1=1,B4,"N/A()")
2 types- which gets input and returns a result/ no input but shows output
How to??
Function fnname()
End function
Function test()
End function
=test()
Function multi(a,b)
Multi=a*b
End function
=multi(a,b,)
Any calculation in the function should be returned to the function
If(condition,truevalue,falsevalue)
If condition then
What to do
Else
What to do
End if
If Qty>=1000 then
Else
Discount = 0
End if
Example:
Function Discount(q, p)
Discount = q * p * 0.1
Else
Discount = 0
End If
End Function
PARTID
LOCATION
DATE
QTY
FORM
LABELS
TEXTBOXES
COMMAND BUTTONS
PROPERTIES OF OBJECTS- NAME, SIZE, COLOR
Step1- Setup worksheet-add 4 columns
Command button- It will take you to the editor you can add a code to be executed
Dim ws as worksheet
Irow=
ws.cells.find(what:=”*”,searchorder:=xlrows,_searchdirection:=xlprevious,lookin:=xlvalue).row+1
With ws
- .cells(irow,1) = me.partid.value
- .cells(irow,2) = me.loc.value
- .cells(irow,3) = me.date.value
- .cells(irow,4) = me.qty.value
End with