39
1 Excel for Managers II Unit I - Introduction to Advanced Excel Functions 1.1 Formatting - Recap For Selection Ctrl + down Arrow Ctrl + Up Arrow Insert & Delete Row Ctrl + Shift + + for add row Ctrl + - for remove row Selecting all row and Column Ctrl + Shift & Down arrow for all row then Ctrl + shift + right arrow Bordering the Data/Table Go to Font Section Select Click All Borders, Outline Border, Thick Borders Ctrl + Z for Undo Header Coloring Select First Row & Go to Font Use Font Color and Fill Color Merge & Centre Alignment Functions Text Options – Bold, Italic, Font , Increase/ Decrease Number Formatting Currency for Total T/O (Cr.), Increase/Decrease Decimal Percentage for Advances Wrap Text

vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

  • Upload
    lynhu

  • View
    215

  • Download
    1

Embed Size (px)

Citation preview

Page 1: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

1

Unit I - Introduction to Advanced Excel Functions

1.1 Formatting - Recap

For Selection Ctrl + down ArrowCtrl + Up ArrowInsert & Delete RowCtrl + Shift + + for add rowCtrl + - for remove rowSelecting all row and ColumnCtrl + Shift & Down arrow for all row then Ctrl + shift + right arrowBordering the Data/TableGo to Font Section Select Click All Borders, Outline Border, Thick BordersCtrl + Z for UndoHeader ColoringSelect First Row & Go to Font Use Font Color and Fill ColorMerge & CentreAlignment FunctionsText Options – Bold, Italic, Font , Increase/ DecreaseNumber FormattingCurrency for Total T/O (Cr.), Increase/Decrease DecimalPercentage for AdvancesWrap Text

Excel for Managers II

Page 2: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

2

1.2 Formatting & Formulas

Count CompaniesUse =CountTA

Count Companies starting with VowelsUse = Countif(B8:B76, “A*”) + Countif(B8:B76, “E*”) + Countif(B8:B76, “I*”) + Countif(B8:B76, “O*”) + Countif(B8:B76, “U*”)

Total of All ColumnUse = Sum for each Column to get total

Find Max of Amount FinancedUse = Max

Find Min of QuantityUse = Min

Use SUMPRODUCT (Use column C and D)Use =Sumproduct(Select Col –C, Select Col D) Value error

Find AverageUse Average Function

Excel for Managers II

Page 3: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

3

SUMIF

Select range, write criteria, sum rage and Enter

=SUMIF(range, criteria, sum_range)

SUMIFS ( for Mutlitple Conditions)

=SUMIFS(sum_range, criteria_range1,criteria1)

AVERAGE

=AVERAGE(number1,number2…..numberN)

AVERAGEIF

=AVERAGEIF(range, criteria, average_range)

Excel for Managers II

Page 4: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

4

1.3 Text to Columns

Select Data -> from A7 to A2968

Goto Data Tab -> Select Text to Columns under Data Tools -> Select Delimited -> Select Next -> Click others and type “ | “ Symbol - > Select Next - > Select Destination as “$B$7” then Click Finish.

Excel for Managers II

Page 5: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

5

1.4 CHOOSE Function

Type the Months from C7 to C18

Goto Cell E7 then Type = Choose (Index_num, Value1,Value2,Value3…..Value4)

=Choose(E6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18)

Then, type 1/2/3/4 in E6, you will get Month displayed in E7)

1.5 Basic Lookup Functions

Equity Capital for SBIN =VLOOKUP(B61,$A$8:$K$58,4,0)

Free Float for ZEEL =VLOOKUP(B63,$A$8:$K$58,5,0)

BHEL Beta =VLOOKUP(B65,$A$8:$K$58,7,0)

Company whose Free Float is 19938.9 =VLOOKUP(B67,CHOOSE({1,2},E8:E58,B8:B58),2,0)

Excel for Managers II

Page 6: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

6

1.6 Advanced Lookup Functions

Script Name for Wipro Ltd. =MATCH(B61,B8:B58,0) (or) =INDEX($A$8:$K$58,C61,1) Script Name whose Free Float is greater than 35000 Crores =INDEX(A8:K58,

MATCH(B63,E8:E58,-1),2) Calculate weightage beyond AXISBANK =SUM(INDEX(A8:K58,MATCH(B65,A8:A58,0),6))

Excel for Managers II

Page 7: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

7

1.7 Named Range & Dynamic Named Range OFFSET

Select Cells from B6 to B 13 – Go to Formula Tab – Select Define Name – Write Name as “Price” - Refers to ='Named Range'!$B$6:$B$13 Click OK

To Perform SUM using Range in Cell B19 = Sum(Price)

Prepare Script List – in Cell B61 – Go to Data Tab – Select Data Validation – Select List – Select Source = A8:A58 (or) Select the Script List – Define Name as “Script” – Go to Data Validation – Select List – Source =Script - Drop menu will appear.

Prepare Companies List – in Cell B63 - Select the Companies List (B8:B58) – Define Name as “Company” – Go to Data Tab – Select Data Validation – Select List – Select Source = Company - Drop menu will appear.

Prepare Header List in Cell B65 - Select the Headers (A7:K7) – Define Name as “Header” – Go to Data Tab – Select Data Validation – Select List – Select Source = Header - Drop menu will appear.

Select all Data points one by one Define Name with its respective Header Prepare Dynamic List - Go to Data Tab – Select Data Validation – Select List – Select

Source =INDIRECT($C$65). Drop menu will appear.

Excel for Managers II

Page 8: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

8

1.8 Dynamic Named Range INDEX

Prepare Script List – in Cell B61 – Go to Data Tab – Select Data Validation – Select List – Select Source = A8:A58. Drop menu will appear.

Prepare Companies List – in Cell B63 – Go to Data Tab – Select Data Validation – Select List – Select Source = B8:B58. Drop menu will appear.

Prepare Dynamic List – Go to Formula Tab – Create a New Define Name – Name as “Script1” – Referes to ='Dynamic Named Range INDEX'!$A$8:INDEX('Dynamic Named Range INDEX'!$A:$A,MATCH("ZEEL",'Dynamic Named Range INDEX'!$A:$A,0)) – Click ok – Go to Data Tab – Data Validation – Select List – Source = Script1. Drop down menu will appear.

1.9 Data Validation

Excel for Managers II

Page 9: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

9

Go to Cell E8 – Data Tab – Data Validation – Select List – Source = I7:I10 In Data Validation – Check the Error Alert Style – Select as Warning Copy the same and paste up to Cell E58 Type Irrelevant options like Why? or What? in few Cells Go To Data Validation – Select Circle Invalid Data – Red Circle will appear in the invalid

data

1.10 Array Functions

To Check data points are True/False using > or < Sum to compare achieved and target =SUM((D6:D13>=C6:C13)*(C6:C13>0)) along with this to

get Count use Ctrl+Shift+Enter In Function Argument (Fx) the formula will appear like this –

{=SUM((D6:D13>=C6:C13)*(C6:C13>0))}

To find the Total Achieved use SUMIFS function =SUMIFS(D6:D14,A6:A14,G5,B6:B14,G6) (or)

Excel for Managers II

Page 10: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

10

Use =SUM(IF((A6:A14=G5)*(B6:B14=G6),D6:D14)) & Ctrl + Shift + Enter

To check the Column A/ or List is Unique or not use =IF(MAX(COUNTIF(A$6:A$12,A6:A12))>1,"List is not Unique","List is Unique") & Ctrl + Shift + Enter

If the List contain repeated text it appears as "List is not Unique" otherwise it will appear as "List is Unique"

To Find out Sales Person A’s Output for 3 months – Jan, Feb, Mar =SUM(VLOOKUP(C16,A7:M14,{2,3,4},0)) & Ctrl + Shift + Enter

Excel for Managers II

Page 11: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

11

1.11 Circular Reference

Type Sales, Expenses, Tax values Find Profit by using the Formula = B6-B7-B8-B9 Find Other Expenses as 10% of Profit – Instead of Value Circular Reference Warning will

get To Remove Circular Reference Warning – Go To File – Select Formulas – Select Enable

iterative Calculation – Click OK – Other Expenses will be calculated and appear in Cell B8

Excel for Managers II

Page 12: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

12

Unit II- Advance & Dynamic Charts

2.1 Recap – Line Chart

STEP 1: Select the entire data.STEP 2: Go to INSERT, CHARTS.STEP 3: Select the line chart to represent Stock Price.

2.2 Change in Marker

STEP 1: Select entire data, go to INSERT, CHART, and SELECT the LINE CHART with MARKERS.STEP 2: Click on the MARKER( a format data series box will appear) , Select FILL CAN ICON from there.STEP 3: In the FILLCAN ICON , SELECT MARKER , then select MARKER OPTION . Select “BUILT-IN” from the option and you can change the type.STEP 4: You can change the color and size of the MARKER too.

Excel for Managers II

Page 13: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

13

2.3 Dotted Lines

STEP 1: Select the entire data , INSERT , CHART , INSERT LINE CHART WITH MARKS.STEP 2: Select one Marker , go to FORMAT DATA POINT dialog box.STEP 3: In the LINE option , change the DASH TYPE to Dotted lines(--------------), you can change and increase the width of the line and change color.Dotted lines in between the normal lines will appear.

2.4 Conditional Formatting In Graph

STEP 1: Create a column signifying sales >100 and < 100 using “if” statement.Sales >= 100 [=if(C5>=100,C5,0)], then drag.Sales<100 [=if(C5 < 100,C5,0)], then drag.STEP 2: Select the above made table , go to INSERT , CHART , SELECT a COLUMN CHART

Excel for Managers II

Page 14: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

14

2.5 Thermometer Column Chart

STEP 1: Select the data , INSERT CHART , Select STACKED COLUMN CHART .

STEP 2: Select the bar , RIGHT CLICK ON IT , go to FORMAT DATA SERIES , In SERIES OPTION Select PRIMARY AXIS. INCREASE THE “OVERLAP” to 90% and DECREASE THE WIDTH to 40%.

STEP 3: Go to SECONDARY AXIS IN FORMAT DATA SERIES OPTION and carry out the same process as PRIMARY AXIS .

STEP 4: Select the bar to change color if necessary.

2.6 Bullet Chart

STEP 1: Select the data , go to INSERT, CHART , SELECT THE STACKED COLUMN CHART .STEP 2: Go to “ CHANGE CHART TYPE “ (a chart with various color , stacked on each other will appear)STEP 3: Select the “ ACTUAL” part of the column chart , go to “CHANGE CHART TYPE”, “SECONDARY AXIS”.STEP 4: Change the chart type to marker-lined-line-chart. STEP 5: To change the MARKER , select the MARKER , go to FORMAT DATA SERIES , select FILL CAN ICON STEP 6: SELECT “MARKER OPTIONS” , SELECT “BUILT-IN” , change the type of MARKER , also change the size of the MARKER.

Excel for Managers II

Page 15: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

15

STEP 1: Select the entire data , go to INSERT , CHART , SELECT RADAR CHART.A spider shaped chart would appear.

Excel for Managers II

Page 16: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

16

2.8 Bubble Chart

STEP 1: Select the entire data , go to INSERT , CHART , SELECT BUBBLE CHART

A bubble chart showing revenue from mobile phones in various countries will appear.

2.9 Stacked Column Chart

STEP 1: Select the entire data , go to INSERT , CHART , STACKED COLUMN CHART.

A stacked chart will appear representing total score in science and maths.

Excel for Managers II

Page 17: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

17

2.10 Waterfall Chart

STEP 1: INSERT 5 COLUMN between the headings and INSERT 2 ROWS below the headings.

STEP 2: NAME THE COLUMN AS BASE, END , DOWN , UP , START.

STEP 3: LINK FIRST amount of SALES to “START” first cell i.e, link G6 to F6.

STEP 4: FOR “UP”, use syntax [=max(G6,0)],drag till DECEMBER.

STEP 5: FOR “ DOWN”,use syntax [=min(G6,0)],drag till DECEMBER.

STEP 6: Select the “BASE” value and type it in cell B4 and B18.

STEP 7: FOR “BASE” value , exclude JANUARY cell and begin with FEBRUARY cell. Use syntax [=sum(JAN+DOWN VALUE OF JAN+START VALUE OF JAN)-UP VALUE] , then drag it down.

STEP 8: CUT and PASTE December value from cell B17 to C17.

STEP 9: NOW SELECT the entire newly created data, from MONTH to START, go to INSERT, CHART, and STACKED COLUMN CHART.

STEP 10: GO to column with the “BASE” value and change its color to WHITE SO AS TO MAKE IT INVISIBLE.

A chart in the form of WATERFALL will be created.

Excel for Managers II

Page 18: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

18

Unit III – Dash Boards

3.1 Creating Dash Board Using Slicer

Create a New Worksheet and name as DashBoard1 Create Slicer – Select Data – Insert Tab – Pivot Table – New Worksheet – Name as Working

Sheet1 Select Company – Move it to Filter. Go To Analyze Tab under Pivot Table Tools – Insert Slicer –

Click on Company and Vairbale – You will get vertical slicer. Convert it to Horizontal – Select – Options Tab – Increase Columns – 4 for Companies and 5 for Variables – Copy and paste both to Dash Board1 Worksheet (Adjust the Width and Height)

Create New Worksheet & name it as Working Sheet2 – Select entire Data – Insert Tab – Create Pivot Table – Save this with Working Sheet2

Create two new slicers for company and variable – Arrange as Horizontal Go to Dash board1 – In 10th Row select three columns each for 2011, 2012, 2013, 2014, 2015 Select data – insert tab – Create pivot tab – Choose existing worksheet – Working sheet1 – Click

OK Select Company from Rows & Year from Values use Variable as filter do the same for

2011,2012,2013,2014,2015 in the same sheet Link Company from workingsheet1 with Dashboard1 and drag down for each year. For get the

value under each year – Perform VLOOKUP Function =VLOOKUP(B8,Sheet3!A4:B7,2,FALSE) and drag it down. Do the same for 2012,2013,2014,2015

To Connect Slicer with Data Table – Select Slicer – Options – Select Report Conncetions – Go to WorkingSheet1 – Select Pivot Table 3,4,5,6,7 – Click OK – OUTPUT change as per Selected Variable

Excel for Managers II

Page 19: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

19

Conditional Formatting with Data Table – Go to Cell B15 – Write a condition =B8='sheet 1'!$B$2, drag it down up to Cell B18. Similarly do for all the 5 years

Go to conditional formatting – Click manage rules – New rule – Use a formula to determine = B15 – Click format – Select Green Colour applies to all parts (B8:B11, F8:F11, I8:I11, L8:L11, 08:011) – Similarly apply the same using format painter to all the years – Use different colours for each year.

3.2 Dash board – Lookup Function

Create a New Worksheet – name it as Dashboard2 Create a Slicer using Pivot table for Company and Variable Keep Company Slicer in Horizontal Top and Variable Slicer in Vertical Left Type 5 years – 2011,2012,2013,2014,2015 in Horizontal below to the Horizontal Slicer Below the year write an INDEX Function =INDEX(Data!$A$7:$A$26,MATCH(workfile!$C$1,Data!

$A$7:$A$26,0),) To Get variable in the Cell use OFFSET and MATCH Function along with the INDEX Function

=OFFSET(INDEX(Data!$A$7:$A$26,MATCH(workfile!$C$1,Data!$A$7:$A$26,0),),MATCH(workfile!$M$1,Data!$B$7:$B$26,0)-1,2)

Excel for Managers II

Page 20: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

20

3.3 Customer Call Center Dash Board

TASK #1

STEP1: Create three worksheet.

STEP2: Rename the worksheet as Dashboard, Unique, Working.

STEP3: Go to unique worksheet and create header as product, region, Customer_type, agent_id, chart_type.

STEP4: Go to data sheet then copy product item and paste it in the unique sheet.

STEP5: Select product entirely and go to data tab then click sort and choose A to Z. Click remove duplicate under product header.

TASK #2

STEP1: Go to dashboard worksheet then type short date in B4 and long date in B5

And days in F5.

Excel for Managers II

Page 21: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

21

STEP2: In cell C4 type =today () .

STEP3: To design go to Insert tab and click illustration and select shapes.

STEP4: Select product, region, customer type, agent_id, chart_type which is required for the Graph

STEP5: Go to developer then click insert and select combo box, right click then a dialog box Appears. In input range go to unique sheet and select entire product.

STEP6: To link it go to working sheet link with B2 and change drop down lines depend of item. Similarly do for region, customer type, agent_id, chart_type.

STEP7: Remove gridlines then go to file option and select advanced choose remove and tick the Check box of show gridlines.

TASK #3

STEP1: Go to developer tab and choose insert and click option button, create 4 option Button. STEP2: Right click each option button and format control.STEP3: Dialog box appears, link the cell and go to working sheet and link it with F2 cell number.Give header for F1 as output1. Similarly choose group box and rename as choice.

TASK #4

STEP1: Go To Working Worksheet - Under snapshot create the following header as total call, spark line, total_talk, Avg_ call_duration, resolution_rate, satisfaction, upsell$.

STEP2: Go to working sheet from cell number B10 create the following header as Date, total_calls, talk_time, avg, call_duration, resolution_rate,satisfaction,upsell$.

Excel for Managers II

Page 22: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

22

STEP3: In cell B11 link the starting date in dashboard. And calculate total calls on each day In working sheet. Type =countif (range, criteria), =countif (data, k6:k14837)

STEP4: Calculate talktime by using sumif formula =sumif ((k6:k14837, b15, f6:f14837)/60/60)

STEP5: Calculate resolution rate using countifs formula =countifs (data range, date, resolved range,”yes”)/281; =countifs (data! $k$6:$k$14837, working! B14, data! $G$6$:$G$14837,”yes”)\C14

STEP6: Calculate satisfaction using sumifs formula =sumifs (satisfaction range, data range, date) STEP7: Calculate upsell$ value =sumifs (upsell range, data range, date)

TASK #5

STEP1: Create a named range in data sheet for customer, region, and agent.

STEP2: Then to calculate the no: of desktop use countifs =countifs (date, working choose (G5), product, region, customer, agent), link with D13

STEP3: Then for talktime use sumifs (sum range, criteria range, criteria, choose (o/p1, Product, region, customer, agent), G13/60/60

STEP4: Resolution rate =countifs (date, working choose (G5), product, region, customer, agent), link with D13

STEP5: For chart creation select 3 data from working sheet (i.e.) data, option 1, option2 Insert line chart, copy the chart1 and using the paste special paste it into dashboard (i.e.) Linked picture, Refers=choose (charttype (working sheet), chart1, chart2, chart3, chart4, chart5).

Excel for Managers II

Page 23: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

23

Excel for Managers II

Page 24: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

24

Unit IV – Macros

4.1 Recording Macro – Formattinga. Type data points in Column A b. Go to developer tab – Record Macro – Name Macro as Formatting – Use Short cut as Ctrl + Qc. Strat recording the Macro – Select the Data Point – Copy Paste the data in to Column D – Center

and Middle Align the data – Fix Border – Fill Color inside the data – Stop recordingd. Delete the Column D – Run Macro through Developer (or) Use Short Cut Key – Ctrl + Q

4.2 Recording Macro – Basic Math functionsa. Type math output title in Column D – Total Output, Mean1, Mean2, SD 1, SD 2b. Go to developer tab – Record Macro – Name Macro as Basic_Math – Use Short cut as Ctrl + Wc. In Cell E7, find output by using SUMPRODUCT function = SUMPRODUCT(Array1, Array2)d. In Cell E8 & E9, find Mean 1 and Mean 2 by using Average functione. In Cell E10 & E11, find SD 1 & SD 2 by using STDEVA functionf. Run Macro through Developer (or) by using Short Cut Key – Ctrl + W

Excel for Managers II

Page 25: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

25

4.3 Find String

a. Go to developer tab – Select Visual Basic for writing Codeb. Write i as Integer, iRowNumber as Integer and sFindText as String and iRowNumber = 0c. Loop through Cells A1 – A100d. For I = 1 TO 100, Write IF Statemnet up to Exit For and End If e. If iRowNumber = 0, Set a Message Box with “ String” & sfindout & “Not Found), Else –

MessageBox with “String "String " & sFindText & " found in cell A"f. Run Macro through Developer

4.4 Math functions

a. Go to developer tab – Select Visual Basic for writing Codeb. Write i as Integer, Col As Range, dVal As Doublec. Set the variable 'Col' to be Column A of Macro 3d. Loop through each cell of the column 'Col' until a blank cell is encounterede. Apply arithmetic operations to the value of the current cellf. The command into Column A Cells(i, 3) = dVal, i = i + 1, Loopg. Run Macro through Developer

Excel for Managers II

Page 26: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

26

4.5 Fibonacci number

a. Go to developer tab – Select Visual Basic for writing Codeb. Write i as Integer, iFib As Integer to Store current value, iFib_Next As Integer next value, iStep As

Integer to store next step sizec. Initialize the variables i = 2 and iFib_Next = 0d. Do While loop to be executed as long as the value of the current Fibonacci number exceeds

1000e. If I = 2 then iStep =1 and iFib =0, Else = iStep = iFib, iFib = iFib = iFib_Next End iff. Calculate the next value in the series and increment - iFib_Next = iFib + iStep, i = i + 1, Loopg. Run Macro through Developer

Excel for Managers II

Page 27: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

27

Unit V – Statistical Functions

5.1 Shortcuts

Learn and use the following important shortcuts in MS Excel

No Functions Shortcuts1 To remove the selection Esc2 Close a spreadsheet Ctrl + W3 Open a spreadsheet Ctrl + O4 Go to Home Tab Alt + H5 Save a spreadsheet Ctrl + S6 Copy Ctrl + C7 Paste Ctrl + V8 Undo Ctrl + Z9 Remove cell contents Delete

10 Cut Ctrl + X11 Choose to fill color Alt + H + H12 Go to Insert Tab Alt + N13 Bold Ctrl + B or Alt + H +114 Center Align content Alt + H + AC15 Go to page layout Alt + P16 Go to data Alt + A17 Go to view Alt + W18 Add borders Alt + H + B + options19 Delete column Ctrl + (-) or Alt + H + D + options20 Go to formula Alt + M21 Hide rows Ctrl + 922 Hide columns Ctrl + 023 Edit cell F2 or Fn + F224 Go to next cell Right Arrow or Tab25 Go to previous cell Left Arrow or Shift + Tab26 Move up Up Arrow27 Move down Down Arrow28 Enter current time Ctrl + Shift + :29 Enter current date Ctrl + ;30 Go till the end Pg Down or Ctrl + Down Arrow31 Go to start Home32 Go to first filled cell Ctrl + Left Arrow33 Go to last arrow and select as well Ctrl + Shift + Down Arrow34 Selecting the cell one by one Shift + Down Arrow/Up/Right/Left35 Insert Row or Columns Ctrl + +36 Insert Row or Columns Ctrl + +

Excel for Managers II

Page 28: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

28

5.2 Forecast and Trend

Forecast Function

a. Find or Forecast value for 2013,2014 and 2015 by using Forecast functionb. Go to Cell H3 use forecast function = FORECAST(H$2,$D3:$G3,$D$2:$G$2) drag the formula to

right and down

Trend Function

a. Find or Trend value for 2013,2014 and 2015 by using Trend functionb. Go to Cell H 12 and use Trend function = =TREND($D12:$G12,$D$11:$G$11,$H$11:$J$11) & Ctrl

+ Shift + Enter then drag it to right and down

Excel for Managers II

Page 29: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

29

5.3 Descriptive Statistics

a. Install Data Analysis ToolPak in to Data Tab – Go to File – Options – Click Go in Add ins – Select Analysis ToolPak – Click Ok

b. Select Data points both X and Y – B4:C15 c. Go to Data Tab – Select Analysis ToolPak – Select Descriptive Statistics – Select input ranges as

B4:C15 then Select Output range as E4 then Click OK d. Presenting chart – Select Data Points B4:C15 – Insert Tab – Select Line Chart

5.4 Linear Regression

a. Go to Data Tab – Select Analysis ToolPak – Select Regressionb. Input Y Range: C4:C15, Input X Range:B4:B15, Select Labels c. Select Output option as New Worksheetd. Select All residuals and Normal Probability then Click Oke. Regression Output appear in the New Worksheetf. Use Linear Regression for One Dependent and One Independent Variableg. Y = Mx + Ch. In Cell A22 = 200 as input X , Calculate Value Y in Cell B22 by using the formula = 0.6877 * A22

(200) + 1.4117

Excel for Managers II

Page 30: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

30

5.5 Multiple Regression

a. Use Multiple Regression for One Dependent Variable and More Independent Variablesb. Y = mX1 + nX2 + Cc. Go to Data Tab – Select Analysis ToolPak – Select Regressiond. Input Y Range: D4:D15, Input X Range:B4:C15, Select Labels e. Select Output Range as A17f. Select Residuals Click OKg. Regression Output appear in the Cell A17h. Regression Equation based on the Output is Price = 1.7514 + 4.8952 * Color + 3.7584 * Qualityi. Substitute Color Value in F38, Quality Value in G38, the Price Value appear in H38

Excel for Managers II

Page 31: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

31

5.6 Multiple Regression Finding Issues

a. Use Multiple Regression for One Dependent Variable and More Independent Variablesb. Y = mX1 + nX2 + Cc. Go to Data Tab – Select Analysis ToolPak – Select Regressiond. Input Y Range: D5:D9, Input X Range:B5:C9, Select Labels e. Select Output Range as A10f. Select Residuals Click OKg. Regression Output appear in the Cell A17h. Regression Equation based on the Output is Price = 6 * Cars + 28 * Sizei. Two Issues identified in this analysis are:

The R Square and Adjusted R Square Values are Less not much nearer to Multiple R (Coefficient Correlation)

The Significance F Value is Greater than 0.05 i.e. 0.109

Excel for Managers II

Page 32: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

32

5.7 Linear Regression with Moving Average

a. Calculate Moving Average (MA) in Cell E7 by selecting Average of 4 period sales =AVERAGE (E7:E8) and drag the formula up to E19.

b. Calculate Center value between Moving Average because it falls in between 3.5 & 4.5, Statistics couldn’t accept the values in decimals in Cell F7 =AVERAGE(E7:E8) drag it down up to F18

c. Find Seasonality in Cell G7 =D7/F7 drag it down up to G18d. Smoothen factors of each Quarter – Copy and paste up to 5 years

Quarter 1 =AVERAGE(G5,G9,G13,G17) Quarter 2 =AVERAGE(G6,G10,G14,G18) Quarter 3 =AVERAGE(G7,G11,G15,G19) Quarter 4 =AVERAGE(G8,G12,G16,G20)

e. Deseasonalize the sales values in Cell I5 =D5/H5 drag it down up to I 20f. Before Calculating Trend – Find Regression two different data points

First Calculate Regression between Period (Column A) and Sales (Column B) – Due less accuracy of data points identified through Multiple R, R2, Adjusted R2 – Calculate Regression between Period (Column A ) and Deseasonalized Sales (Column I) – Results identified that there will more accuracy in between the data points i.e. Multiple R – 95%, R2 – 92%, Adjusted R2 – 91%

g. Calculate Trend by Period * Coefficient of Period + Intercept; =A5*$B$51+$B$50 drag the formula up to J24

h. Find Forecast =J5*H5 and drag the formula up to K24i. Values appearing between K21 to K24 are forecasted Sales through this exercise.

Excel for Managers II

Page 33: vinothsv.files.wordpress.com  · Web viewAnd days in F5. STEP2: In cell C4 ... 4.4 Math functions. Go to developer tab ... Values appearing between K21 to K24 are forecasted Sales

33

Regression between Period and Sales

Regression between Period and Deseasonalized Sales

Excel for Managers II