Professional Documents
Culture Documents
=-=-===-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=
Good Afternoon Everyone....
we will start the session soon...
------------------------------------------------------
Ctrl + F1 -> to show/Hide the Ribbon
Fn -> Function Key
Shift + F11 -> to insert new sheet
Ctrl + PgDn -> go to next sheet
Ctrl + PgUp -> go toprevious sheet
Ctrl Key -> help us for do the multiple selection
Ctrl + Enter -> to fill any common value over selected Range
Alt + = -> to apply the auto sum formula
------------------------------------------------
Basic Function in Excel:-
-----------------------
SUM, MAX, MIN, Average, Count
=COUNT(B3:I3) -> How many cells in given range that contains numbers only
=COUNTA('BigBasket Products'!A27542:J27542) -> How Many cells in given range that
contains data
--------------------------------------------------
Counting with Criteria:-
----------------------
Countif(range, criteria)
Range -> Criteria Range -> Where is criteria
Criteria -> What is criteria
----------------------------
=COUNTIF('BigBasket Products'!I:I,5)
=COUNTIF(B3:B20,"sony")
=COUNTIFS(B3:B20,"sony",C3:C20,"japan")
--------------------------------------------------
Types of Cell Reference:-
------------------------
1. Relative Cell Reference -> default cell reference
eg. A2, B2:H55 etc.
2. Absolute Cell Reference -> Use $ sign to lock the cell ref.
eg. $A$2, $B$5:$H$66 etc.
3. Mixed Reference -> either we lock Row or we lock Column
eg. $A2, A$2 , A$2:H$55
=$G2-$G2*J$2
---------------------------------------------------
Lookups Function in Excel:-
---------------------------
Why we need
VLOOKUP Exact-Match:-
--------------------
=VLOOKUP(A4,'Member Details'!$A$1:$F$14,2,0)
0 = False -> Exact Match
----------------------------------------------
Error handling in Excel:-
------------------------
IFError(value, Value_if_error)
=IFERROR(VLOOKUP(A4,'Member Details'!$A$1:$F$14,2,0),"Data Not Found")
HLOOKUP
=HLOOKUP(A4,'Customer Website'!$B$2:$O$3,2,0)
---------------------------------------------
Limitation of VLOOKUP Function:-
------------------------------
1. Table_Array must be start with id.
2. it will return the data for 1st match of id.search mode is Top to Bottom
------------------------------------------
Sol for 1st Lim:-
---------------
Reverse VLOOKUP, Index-Match Function, XLOOKUP Function(Excel 2019+, Excel 365)
-----------------
=INDEX($B$10:$H$29,MATCH(B4,$E$10:$E$29,0),1)
5 min for Practice
XLOOKUP Function:-
------------------
=XLOOKUP(F4,$E$10:$E$29,$B$10:$B$29)
Error Handling with XLOOKUP:-
----------------------------
=XLOOKUP(F4,$E$10:$E$29,$B$10:$B$29,"Data Not Found")
or
=XLOOKUP(F4,$E$10:$E$29,$B$10:$B$29,"")
----------------------------------------------------
Date & Time Based Function:-
---------------------------
=TODAY() -> Return current System Date
Ctrl + ; -> Return current System Date(Fixed)
=NOW() -> Return Current System Date with Time
Ctrl + : -> Return current System Time(Fixed)
------------------------------------------------
Day#02 : 04-April-2023
--------------------------
Work with Text based Function:-
------------------------------
Joins Multiple cells data into one:-
------------------------------------
&
=B4&" "&C4
----------------------
Split the text:-
--------------
Select the data -> Data -> Data Tool -> Text to Column
------------------------------------------------------
Limitation of Text to Column:-
-----------------------------
Left, Right & Mid Function:-
--------------------------
=LEFT(B2,6) -> Return the n(6) char from starting of text string
=RIGHT(B2,4) -> Return the n(4) char from ending of text string
=MID(B2,7,6) -> Return the n(6) char from middle of text string from 7th Position
----------------------------------------------------
Data Cleaning in Excel:-
----------------------
=LEFT(TRIM(B2),6)
How to remove extra space from data
=TRIM(A2)
Copy the data & then Paste Special(Ctrl + Alt + V) As value to source location
----------------------------------------------
Logical Formula IF/Nested IF:-
----------------------------
=IF(D3>50,"Pass","Fail")
Not equals to <>
=IF(D3>90,"A",IF(D3>70,"B",IF(D3>50,"C","F")))
=IFS(D3>90,"A",D3>70,"B",D3>50,"C",D3>=0,"F")
IFS:-
----
Logical Function: AND, OR:-
---------------------------
=AND(C4>=100,E4>=15000)
=IF(AND(C4>=100,E4>=15000),"yes","No")
=IF(OR(C4>=100,E4>=15000),"yes","No")
------------------------------------
Addition with Condition:-
-----------------------
SUMIF -> Addition with Single Criteria
=SUMIF(E3:E16,"yes",D3:D16) -> Total Paid Amt.
=SUMIF(E3:E16,"no",D3:D16) -> Total UnPaid
SUMIFs -> Addition with Multiple Criteria
=SUMIFS(D3:D16,B3:B16,"anurag",E3:E16,"yes")
--------------------------------------------------------------
Date & Time Based Function:-
---------------------------
=YEAR(B9) -> Return the year value from given date
=MONTH(B9) -> Return the Month value from given date
=DAY(B9) -> Return the Day value from given date
-------------------------------------------------------
=TEXT(B9,"dd")
=TEXT(B9,"ddd")
=TEXT(B9,"dddd")
=TEXT(B9,"mm")
=TEXT(B9,"mmm")
=TEXT(B9,"mmmm")
=TEXT(B9,"yy")
=TEXT(B9,"yyyy")
----------------------------------------------------------
Calculate Past/Future Date:-
---------------------------
=DATE(YEAR(B4),MONTH(B4)+9,DAY(B4)) -> Return the date after 9 months
=DATE(YEAR(B4)+1,MONTH(B4)+9,DAY(B4)+20) -> Return the date after 1 year 9 months
and 20 days
---------------------
Age Calculation in Excel:-
-------------------------
Datedif(start_date, end_date, Format_code)
=DATEDIF(C4,$E$1,"y")
=DATEDIF(C5,$E$1,"y")&" years"
=DATEDIF(C4,$E$1,"y")&" years "&DATEDIF(C4,$E$1,"ym")&" Months
"&DATEDIF(C4,$E$1,"md")&" Days "
------------------------------------------------------------------
Total Working Days:-
-------------------
=NETWORKDAYS(A4,B4,F3:F6) -> Mon to Fri
=NETWORKDAYS.INTL(A4,B4,11,F3:F6) -> Mon to Sat -> MS Excel 2010+ , 11-> Sunday is
weekend
---------------------------------------
=WORKDAY(A9,B9,F3:F6) -> Mon to Fri
Ctrl + #(Shift +3) -> convert to date format
=WORKDAY.INTL(A9,B9,11,F3:F6) -> Mon to Sat -> MS Excel 2010+
----------------------------------------------
Excel Dynamic Function:- only for Excel-365
-------------------------------------------
=UNIQUE(Data!I2:I266) -> Return the Unique List of Employee
=UNIQUE(Data!A1:K266,TRUE,TRUE)
-------------------------------------------------------
Quest & Ans
=-=-=-=-=-=-=-===-=-=-=-=--=-=-=-=-=-=-=-=--=-=
Day#03 : 05-April-2023
----------------------
Dynamic Array Function E365
----------------------------
ChooseCOLS Function:-
--------------------
=MATCH(B2,Data!$A$1:$K$1,0)
=CHOOSECOLS(Data!A2:K266,3,4,5,6,9,10)
Table Data Based Dashboard:-
--------------------------
=SORT(CHOOSECOLS(Data!A2:K266,3,4,5,6,9,10),6,-1)
Display Top(n) 5 Record based on sales
=TAKE(SORT(CHOOSECOLS(Data!A2:K266,3,4,5,6,9,10),6,-1),C2)
Display Bottom(n) 5 Record based on sales
=TAKE(SORT(CHOOSECOLS(Data!A2:K266,3,4,5,6,9,10),6,1),J2)
-------------------------------------------------------------------
Data Consolidation:-
-------------------
VSTACK Function:-
=VSTACK(North!A2:D5,South!A2:D5,East!A2:D9)
------------------------------------
Choose Function:-
---------------
=CHOOSE(S9,"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday")
S9 -> Index -> Based on index we get the value
-------------------------------------------------------------------
Drop Down List: Data Validation:-
--------------------------------
Data Validation:-
---------------
Advance Data Validation:-
--------------------------------
=VLOOKUP(E9,'Ex 1'!B6:E182,4,0)
--------------------------------
Sort & Filter
Advance Filter:-
--------------
5 Min for Practice
=CHOOSE(J11,"South Korea","Japan","Japan","Japan","USA","USA")
----------------------------------------------------------------
Conditional Formatting:-
----------------------
Advance Conditional Formatting:-
-------------------------------
Use a Formula
=AND(G5>=50000,G5<=100000)
=AND(E5="MP",C5="HR")
-----------------------------------
Text Based Function:-(E365)
--------------------
=TEXTBEFORE(A36,",") -> Return the text before ,
=TEXTAFTER(A36,",") -> Return the text after ,
---------------------------------------------------------
Day#04 : 06-April-2023
------------------------
Table Tool -> Create Table -> Format As Table -> Ctrl + T
---------------------------------------------------------
Convert to Dynamic Table
Table -> Range
Slicer -> Visual Filter -> Excel 2010+
Table Based Dashboard:-
-----------------------
1. Convert your Report to Table -> Ctrl + T
2. Insert one row at TOP
3. Insert Slicer from Table Option
4. change the setting of slicer
-------------------------------------------
Table Dashboard
Line Chart based Dashboard
Histogram Chart:-
---------------
Security in Excel:-
------------------
Apply a Password to File
Worksheet Protection
Workbook Structure Protected
------------------------------
Protection with editing in few cells:-
-------------------------------------
Hide the Formula:-
-----------------
Range wise Password:-
--------------------
=INDEX($A$1:$C$11,MATCH(A17&B17,$A$1:$A$11&$B$1:$B$11,0),3)
or
=VLOOKUP(A17&B17,CHOOSE({1,2},$A$1:$A$11&$B$1:$B$11,$C$1:$C$11),2,0)
----------------------------------------------------------
Day#05: 07-April-2023
-----------------------
Module:09
Pivot Table: Alt N V (IMP)
--------------------------
Req#01: Region wise Product Total Revenue
Req#02: Region wise Product Max,Min,Avg,Total Revenue
Req#03: Region wise Product Total Revenue, % of tot Rev
Pivot Table cache -> Alt + F5
Table -> Ctrl + T
Dynamic Pivot Table
-----------------------
Design Tab:-
-----------
Subtotal
Report Layout
------------
Work with Report Filter:-
-----------------------
Slicer -> Visual Filter -> Excel 2010+
------------------------------
Show Report Filter Pages: IMP
-----------------------------
Grouping in Pivot:-
------------------
we can do grouping on Numbers & Dates only:
Date Grouping : Year, Month, Qtr, week etc.
Excel 2016+ -> in Pivot Table -> Auto grouping
--------------------------------------------
Insert Calculated Field:-
------------------------
Macro in Excel:-
---------------
1. Enable Developer TAB
2. do the required changes in Macro Security
3. Record A Macro -> Basic Report Automation -First_Macro_B2
=> How we access the Macro
-> Alt + F8
4. Assign A Macro to Button
5. How to Save A Macro
a.) Save As Macro enable Workbook -> .xlsm
b.) Save As Excel Binary Workbook -> .xlsb
c.) Save As 97-2003 Workbook
--------------------------------------------
Limitation of Default Recording:-
-------------------------------
Use Relative Reference:-
----------------------
Assign Personal Macro to Ribbon -> so we can access anywhere
=--=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Day#06 : 07-April-2023
----------------------
Q & A
------
UDF : USER Define Function
VBA Editor -> Alt + F11
1. SUB
2. Function
Function MyProduct(num1 As Integer, num2 As Integer)
MyProduct = num1 * num2
End Function
---------------------------
=MyProduct(D2,E2)
Create your own Plug-in
Save your function file as Add-in,then enable the Add-in
-----------------------
enable the PowerPivot Tab
File -> Option -> Add-in -> Comm-Add-in -> enable PowerPivot
-------------------------------------------------
Power Pivot & Power Query:-
-------------------------
1. Open a new File
2. Data Tab -> Get Data -> Excel Workbook -> Select your File
3. Trasform
4. Remove Extra Column(other than Table)
5. Click on Arrow -> Load More data
6. Auto detect data types. ( Data Cleanup job)
7. Remove the error from column
8. Load to connection...
-------------------------------
Name Manager , Define Name
=VLOOKUP(A4,mem_DB,2,0)
mem_DB -> name of Table_Array
-----------------------------------------
Pivot Chart & Dashboard:-
-----------------------
1. Convert to Table
2. Rename the table
3. List all of your KPI(All Req)
Req#01: City wise Sales
Req#02: Fiscal year wise Customer Total Sales
Req#03: Year Wise Profit
Req#04: Fiscal year Employee wise sales & Profit
-------------------------
4. Solve your First Req
5. Add a Slicer (Must) -> Auto Link other Req.
6. Copy the entire Pivot table & Paste in other place and 2nd req...
7.Create Pivot Chart & Move to Dashboard Sheet
8.Record A macro to refresh the cache
9. Use code -> VBA -> Select Dashboard Sheet-> Worksheet Activate-> Paste the code
ActiveWorkbook.RefreshAll
Sub Workbook_Open()
Worksheets("Home").Activate
Application.ExecuteExcel4Macro "show.toolbar(""Ribbon"",False)"
Application.DisplayFormulaBar = False
ActiveWindow.DisplayGridlines = False
ActiveWindow.DisplayHeadings = False
Application.DisplayStatusBar = False
ActiveWindow.DisplayWorkbookTabs = False
End Sub
--------------------------------------------
Day#07 : 10-April-2023
--------------------------
Power Query & Power Pivot:-
--------------------------
-> Download the Practice Files-> LPU Live Group