SlideShare une entreprise Scribd logo
1  sur  27
Dynamic Chart with Dropdown List Control February 18, 2011
Overview We will create a chart in Microsoft Excel that updates automatically based on a selection from an in-cell dropdown list This chart will function based on quarterly figures as its data source The main purpose is to show users the dynamic functionality of Microsoft Excel without using macros Copyright © 2011 Techronology.  All rights reserved.
Quick Glance The components Dropdown selection list Categories and data Dynamic chart The idea To be able to change the chart's data source based a user's selection Again, we will not show you how to create the dropdown list itself, which is covered in a separate lesson Copyright © 2011 Techronology.  All rights reserved.
Requirements Microsoft Excel 2007 You may be able to apply the instructions in this tutorial to other versions of Microsoft Excel Optional Check out the tutorials below on creating dropdown lists in Microsoft Excel(We will not cover the creation of dropdown lists in this tutorial) Copyright © 2011 Techronology.  All rights reserved. Tutorial Links http://www.slideshare.net/techron/incell-interactivity-dropdown-box-in-excel http://www.techronology.com/index.php?pageID=007002&lessonID=excel0001&lessonType=pres
Get the Data Ready This data refers to the amount of money spent on business supplies and stationary for a particular business Below is the data you should use in this lesson Copyright © 2011 Techronology.  All rights reserved. We have our data organized in cells D5 to H8, as shown below
Enter the Data Enter the data (in cells D5 to H8) for your chart using the same numbers as below Copyright © 2011 Techronology.  All rights reserved.
Create the In-cell Dropdown List In cell B6, create an in-cell dropdown list with four choices 1st  Quarter 2nd Quarter 3rd Quarter 4th Quarter Copyright © 2011 Techronology.  All rights reserved.
Select Your Data and Prepare to Create Chart Copyright © 2011 Techronology.  All rights reserved. 1 1 Select cells D5 to E8, which will serve as your initial data for your chart Click on the Insertmenu 2 2
Create a Standard Pie Chart Click on the Pie icon Click on the first pie icon in the 2-D Pie section Copyright © 2011 Techronology.  All rights reserved.
Chart Display You can move the chart around, resize it, etc., but it is time to make the chart more dynamic Now that the chart is created, let's make some named ranges that will work with the chart Copyright © 2011 Techronology.  All rights reserved.
Create the Named Ranges for First Two Quarters Copyright © 2011 Techronology.  All rights reserved. 1 1 Select cells E6 to E8 Type qtrData1 in the Name Box and press Enter Select cells F6 to F8 Type qtrData2 in the Name Box and press Enter We cover named ranges in a previous tutorial, which is listed on the Requirements page in the beginning of this tutorial 2 2
Finish Creating the Named Ranges Copyright © 2011 Techronology.  All rights reserved. 1 1 Select cells G6 to G8 Type qtrData3 in the Name Box and press Enter Select cells H6 to H8 Type qtrData4 in the Name Box and press Enter 2 2
Test the Dropdown List We now want to supply a number based on the user's selection Below are the index values we want to use for the dropdown list 1st Quarter = 1 2nd Quarter = 2 3rd Quarter = 3 4th Quarter = 4 So, when a user selects 3rd Quarter, for example, the value 3 should be applied Copyright © 2011 Techronology.  All rights reserved.
Match Up Your Choice Type the formula shown above in cell B8 and press Enter The MATCH function searches for a specified item in a range and then returns the relative position of that item in the range In our case, the range is {"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"} Copyright © 2011 Techronology.  All rights reserved.
Our Match Formula Breakdown Copyright © 2011 Techronology.  All rights reserved. =MATCH($B$6,{"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"},0) This is the value in cell B6 we want to lookup These are the range of values to check B6 against The zero value in MATCH looks for an exact match The final result should be 1, 2, 3, or 4 in cell B6 If a match cannot be found, an error is displayed Our dropdown list should only allow the values listed in the match range; therefore, an error should not occur
Creating the Series Names from User Selections We can now append the number produced in B6 to the text "qtrData" For example, if the user selects "2nd Quarter" then B6 will equal 2 and the text "qtrData" will become "qtrData2" Below are the text values that we want to create based on the user selection 1st Quarter = "qtrData1" 2nd Quarter = "qtrData2" 3rd Quarter = "qtrData3" 4th Quarter = "qtrData4" Copyright © 2011 Techronology.  All rights reserved.
Test the Series Text Name In cell B9, enter the follow formula (including the quotations)… ="qtrData"&B8 …which will produce qrtData1, qrtData2, qrtData3, or qrtData4 Copyright © 2011 Techronology.  All rights reserved. Remember, cell B8 is the same as… =MATCH($B$6,{"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"},0)
Finalize Series Name In cell B10, combine cell B8 and B9 using the following formula… ="qtrData"&MATCH($B$6,{"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"},0) This will become our master named range for the chart series Copyright © 2011 Techronology.  All rights reserved.
Get the Formula for the Series Name Copyright © 2011 Techronology.  All rights reserved. 1 1 Click on cell B10 Press function key 2 (F2) to go into edit more Select all the text, including the equal sign Press Ctrl-C to copy the formula Or… Select and copy the formula from the formula toolbar 2 2
Create the Series Named Range Copyright © 2011 Techronology.  All rights reserved. 1 1 Click Formulas from the menu Click Define Name from the Formulas ribbon Type seriesData as the Name Paste in the formula you copied from cell B10 to the Refers to box Press Enter or click OK You may need to try this twice or type in the formula directly to get use to the procedure 2 2
Make the New Range Name an Indirect Range Open the Name Manager by pressing Ctrl-F3 or by clicking Name Manager from the Formulas ribbon (see previous page) Click on seriesData In the Refers to box, enclose everything in parenthesis Before the first parenthesis, type INDIRECT  See the complete formula below Copyright © 2011 Techronology.  All rights reserved. =INDIRECT("qtrData"&MATCH(Sheet1!$B$6,{"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"},0))
INDIRECT Function Note INDIRECT returns the reference specified by a text string. References are immediately evaluated to display their contents. Use INDIRECT when you want to change the reference to a cell within a formula without changing the formula itself. Copyright © 2011 Techronology.  All rights reserved.
Apply Your New Range Name to the Chart Right-click on a white area on the chart to view the shortcut menu Click Select Data from the shortcut menu You can also click on the chart, select Design from Chart Tools, and click on the Select Data icon Copyright © 2011 Techronology.  All rights reserved.
Create New Data Source Copyright © 2011 Techronology.  All rights reserved. 1 1 Click on 1st Qtr and then click the Edit option Under Edit Series, type Sheet1!seriesData in the Series values box Press Enter or click OK Basically, what you are doing is typing the name of your sheet, the exclamation point, and the named range If your sheet's name is not "Sheet1" replace "Sheet1" with the name of your sheet 2 2
Test Your Chart Now when you select an option from the dropdown, the chart will update automatically according to your selection On the other hand, the series name or title will not change because you did not create a dynamic range name for them yet You really do not need to unless you plan on displaying a chart or series title Simply click on the chart title and press delete Copyright © 2011 Techronology.  All rights reserved.
End Notes You can now delete the contents of the test cells (B8, B9, and B10) This technique can work with almost any kind of chart Once you get really good, you can create charts that automatically adjust to the size of a range You can get the supporting Microsoft Excel file from the following site: http://www.techronology.com/products.php?prodID=less002 Copyright © 2011 Techronology.  All rights reserved.
www.techronology.com

Contenu connexe

Tendances

Getting Started with MS Access and Pivot Tables
Getting Started with MS Access and Pivot TablesGetting Started with MS Access and Pivot Tables
Getting Started with MS Access and Pivot TablesParth Acharya
 
Excel Graphs Charts
Excel Graphs ChartsExcel Graphs Charts
Excel Graphs Chartssimply_coool
 
Excel Intermediate
Excel IntermediateExcel Intermediate
Excel Intermediatesimply_coool
 
Pivot Table & Chart_Parakramesh Jaroli_Pacific University
Pivot Table & Chart_Parakramesh Jaroli_Pacific UniversityPivot Table & Chart_Parakramesh Jaroli_Pacific University
Pivot Table & Chart_Parakramesh Jaroli_Pacific UniversityParakramesh Jaroli
 
Excel ppt
Excel pptExcel ppt
Excel pptnhumar
 
Using Microsoft Excel7 Advanced
Using Microsoft Excel7 AdvancedUsing Microsoft Excel7 Advanced
Using Microsoft Excel7 AdvancedJack Frost
 
Working with Star Office Base - R.D.Sivakumar
Working with Star Office Base - R.D.SivakumarWorking with Star Office Base - R.D.Sivakumar
Working with Star Office Base - R.D.SivakumarSivakumar R D .
 
MS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATIONMS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATIONMridul Bansal
 
MS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & ChartsMS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & Chartsdnbakhan
 
Integration with Office Automation Applications - R.D.Sivakumar
Integration with Office Automation Applications - R.D.SivakumarIntegration with Office Automation Applications - R.D.Sivakumar
Integration with Office Automation Applications - R.D.SivakumarSivakumar R D .
 
Intro to Excel Basics: Part I
Intro to Excel Basics: Part IIntro to Excel Basics: Part I
Intro to Excel Basics: Part ISi Krishan
 
Excel Intro Part1 2007
Excel Intro Part1 2007Excel Intro Part1 2007
Excel Intro Part1 2007simply_coool
 

Tendances (20)

Excel 2007
Excel 2007Excel 2007
Excel 2007
 
Getting Started with MS Access and Pivot Tables
Getting Started with MS Access and Pivot TablesGetting Started with MS Access and Pivot Tables
Getting Started with MS Access and Pivot Tables
 
Excel chapter-4
Excel chapter-4Excel chapter-4
Excel chapter-4
 
Basics of Ms Excel Office Tool
Basics of Ms Excel Office ToolBasics of Ms Excel Office Tool
Basics of Ms Excel Office Tool
 
Excel Graphs Charts
Excel Graphs ChartsExcel Graphs Charts
Excel Graphs Charts
 
Excel Intermediate
Excel IntermediateExcel Intermediate
Excel Intermediate
 
Pivot Table & Chart_Parakramesh Jaroli_Pacific University
Pivot Table & Chart_Parakramesh Jaroli_Pacific UniversityPivot Table & Chart_Parakramesh Jaroli_Pacific University
Pivot Table & Chart_Parakramesh Jaroli_Pacific University
 
Excel ppt
Excel pptExcel ppt
Excel ppt
 
Using Microsoft Excel7 Advanced
Using Microsoft Excel7 AdvancedUsing Microsoft Excel7 Advanced
Using Microsoft Excel7 Advanced
 
Working with Star Office Base - R.D.Sivakumar
Working with Star Office Base - R.D.SivakumarWorking with Star Office Base - R.D.Sivakumar
Working with Star Office Base - R.D.Sivakumar
 
Excel 2007- Enter Formulas
Excel 2007- Enter FormulasExcel 2007- Enter Formulas
Excel 2007- Enter Formulas
 
MS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATIONMS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATION
 
MS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & ChartsMS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & Charts
 
Integration with Office Automation Applications - R.D.Sivakumar
Integration with Office Automation Applications - R.D.SivakumarIntegration with Office Automation Applications - R.D.Sivakumar
Integration with Office Automation Applications - R.D.Sivakumar
 
Intro to Excel Basics: Part I
Intro to Excel Basics: Part IIntro to Excel Basics: Part I
Intro to Excel Basics: Part I
 
50 MS Excel Tips and Tricks
50 MS Excel Tips and Tricks 50 MS Excel Tips and Tricks
50 MS Excel Tips and Tricks
 
Excel Intro Part1 2007
Excel Intro Part1 2007Excel Intro Part1 2007
Excel Intro Part1 2007
 
MS Excel 2013
MS Excel 2013MS Excel 2013
MS Excel 2013
 
Excel tutorial
Excel tutorialExcel tutorial
Excel tutorial
 
Excel 2007 Unit C
Excel 2007 Unit CExcel 2007 Unit C
Excel 2007 Unit C
 

En vedette

Joffe Charitable Trust: Proposals & Reporting
Joffe Charitable Trust: Proposals & ReportingJoffe Charitable Trust: Proposals & Reporting
Joffe Charitable Trust: Proposals & Reportingalexjacobs1
 
rapid manufacturing_mattia_vegni
rapid manufacturing_mattia_vegni rapid manufacturing_mattia_vegni
rapid manufacturing_mattia_vegni Valentina Fucito
 
Ciclo di vita_ carlotta_albertini
Ciclo di vita_ carlotta_albertiniCiclo di vita_ carlotta_albertini
Ciclo di vita_ carlotta_albertiniValentina Fucito
 

En vedette (7)

Joffe Charitable Trust: Proposals & Reporting
Joffe Charitable Trust: Proposals & ReportingJoffe Charitable Trust: Proposals & Reporting
Joffe Charitable Trust: Proposals & Reporting
 
rapid manufacturing_mattia_vegni
rapid manufacturing_mattia_vegni rapid manufacturing_mattia_vegni
rapid manufacturing_mattia_vegni
 
Relazione Fishing
Relazione FishingRelazione Fishing
Relazione Fishing
 
design_valentina_fucito
design_valentina_fucitodesign_valentina_fucito
design_valentina_fucito
 
Ciclo di vita_ carlotta_albertini
Ciclo di vita_ carlotta_albertiniCiclo di vita_ carlotta_albertini
Ciclo di vita_ carlotta_albertini
 
Design_Valentina Fucito
Design_Valentina FucitoDesign_Valentina Fucito
Design_Valentina Fucito
 
Prova ufficiostampa 4
Prova ufficiostampa 4Prova ufficiostampa 4
Prova ufficiostampa 4
 

Similaire à Excel charts witcher

Pivot-Table-Handout1-projectcubicle lecture notes
Pivot-Table-Handout1-projectcubicle lecture notesPivot-Table-Handout1-projectcubicle lecture notes
Pivot-Table-Handout1-projectcubicle lecture notesProject Cubicle
 
Introduction to Eikon Excel
Introduction to Eikon ExcelIntroduction to Eikon Excel
Introduction to Eikon Excelisc_library
 
BIS 155 Education Specialist / snaptutorial.com
BIS 155  Education Specialist / snaptutorial.comBIS 155  Education Specialist / snaptutorial.com
BIS 155 Education Specialist / snaptutorial.comMcdonaldRyan131
 
Bis 155 Enhance teaching / snaptutorial.com
Bis 155  Enhance teaching / snaptutorial.comBis 155  Enhance teaching / snaptutorial.com
Bis 155 Enhance teaching / snaptutorial.comHarrisGeorg46
 
Excel Project 2 – MS Excel (Summer 2019) Use the pro.docx
Excel Project 2 – MS Excel (Summer 2019)  Use the pro.docxExcel Project 2 – MS Excel (Summer 2019)  Use the pro.docx
Excel Project 2 – MS Excel (Summer 2019) Use the pro.docxAASTHA76
 
Bis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.comBis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.comDavis142
 
Excel Intermediate 2007
Excel Intermediate 2007Excel Intermediate 2007
Excel Intermediate 2007simply_coool
 
Excel Project 2 – MS Excel Summer 2018 Use the project.docx
Excel Project 2 – MS Excel Summer 2018 Use the project.docxExcel Project 2 – MS Excel Summer 2018 Use the project.docx
Excel Project 2 – MS Excel Summer 2018 Use the project.docxelbanglis
 
YearQuarterLocationCarClass Revenue NumCars 2017Q1DowntownEconomy.docx
YearQuarterLocationCarClass Revenue   NumCars  2017Q1DowntownEconomy.docxYearQuarterLocationCarClass Revenue   NumCars  2017Q1DowntownEconomy.docx
YearQuarterLocationCarClass Revenue NumCars 2017Q1DowntownEconomy.docxadampcarr67227
 
Tutorial—In-cell Dropdown List with Challenge
Tutorial—In-cell Dropdown List with ChallengeTutorial—In-cell Dropdown List with Challenge
Tutorial—In-cell Dropdown List with ChallengeTechronology Inc.
 
Excel PowerPoint
Excel PowerPointExcel PowerPoint
Excel PowerPointnhumar
 
BIS 155 Lessons in Excellence / bis155.com
BIS 155 Lessons in Excellence / bis155.comBIS 155 Lessons in Excellence / bis155.com
BIS 155 Lessons in Excellence / bis155.comkopiko33
 
BIS 155 Inspiring Innovation -- bis155.com
BIS 155 Inspiring Innovation -- bis155.comBIS 155 Inspiring Innovation -- bis155.com
BIS 155 Inspiring Innovation -- bis155.comkopiko101
 
Bis 155 Education Organization / snaptutorial.com
Bis 155 Education Organization / snaptutorial.comBis 155 Education Organization / snaptutorial.com
Bis 155 Education Organization / snaptutorial.comBaileya121
 
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docxExcel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docxelbanglis
 
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docxExcel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docxcravennichole326
 
BIS 155 Redefined Education--bis155.com
BIS 155 Redefined Education--bis155.comBIS 155 Redefined Education--bis155.com
BIS 155 Redefined Education--bis155.comagathachristie204
 
BIS 155 Education for Service--bis155.com
BIS 155 Education for Service--bis155.comBIS 155 Education for Service--bis155.com
BIS 155 Education for Service--bis155.comwilliamwordsworth8
 

Similaire à Excel charts witcher (20)

Pivot-Table-Handout1-projectcubicle lecture notes
Pivot-Table-Handout1-projectcubicle lecture notesPivot-Table-Handout1-projectcubicle lecture notes
Pivot-Table-Handout1-projectcubicle lecture notes
 
Introduction to Eikon Excel
Introduction to Eikon ExcelIntroduction to Eikon Excel
Introduction to Eikon Excel
 
BIS 155 Education Specialist / snaptutorial.com
BIS 155  Education Specialist / snaptutorial.comBIS 155  Education Specialist / snaptutorial.com
BIS 155 Education Specialist / snaptutorial.com
 
Bis 155 Enhance teaching / snaptutorial.com
Bis 155  Enhance teaching / snaptutorial.comBis 155  Enhance teaching / snaptutorial.com
Bis 155 Enhance teaching / snaptutorial.com
 
OpenCastLabs Excel chapter-3
OpenCastLabs Excel chapter-3OpenCastLabs Excel chapter-3
OpenCastLabs Excel chapter-3
 
Excel Project 2 – MS Excel (Summer 2019) Use the pro.docx
Excel Project 2 – MS Excel (Summer 2019)  Use the pro.docxExcel Project 2 – MS Excel (Summer 2019)  Use the pro.docx
Excel Project 2 – MS Excel (Summer 2019) Use the pro.docx
 
Bis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.comBis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.com
 
Excel Intermediate 2007
Excel Intermediate 2007Excel Intermediate 2007
Excel Intermediate 2007
 
Excel Project 2 – MS Excel Summer 2018 Use the project.docx
Excel Project 2 – MS Excel Summer 2018 Use the project.docxExcel Project 2 – MS Excel Summer 2018 Use the project.docx
Excel Project 2 – MS Excel Summer 2018 Use the project.docx
 
YearQuarterLocationCarClass Revenue NumCars 2017Q1DowntownEconomy.docx
YearQuarterLocationCarClass Revenue   NumCars  2017Q1DowntownEconomy.docxYearQuarterLocationCarClass Revenue   NumCars  2017Q1DowntownEconomy.docx
YearQuarterLocationCarClass Revenue NumCars 2017Q1DowntownEconomy.docx
 
Tutorial—In-cell Dropdown List with Challenge
Tutorial—In-cell Dropdown List with ChallengeTutorial—In-cell Dropdown List with Challenge
Tutorial—In-cell Dropdown List with Challenge
 
Excel PowerPoint
Excel PowerPointExcel PowerPoint
Excel PowerPoint
 
BIS 155 Lessons in Excellence / bis155.com
BIS 155 Lessons in Excellence / bis155.comBIS 155 Lessons in Excellence / bis155.com
BIS 155 Lessons in Excellence / bis155.com
 
BIS 155 Inspiring Innovation -- bis155.com
BIS 155 Inspiring Innovation -- bis155.comBIS 155 Inspiring Innovation -- bis155.com
BIS 155 Inspiring Innovation -- bis155.com
 
Excel booklet
Excel bookletExcel booklet
Excel booklet
 
Bis 155 Education Organization / snaptutorial.com
Bis 155 Education Organization / snaptutorial.comBis 155 Education Organization / snaptutorial.com
Bis 155 Education Organization / snaptutorial.com
 
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docxExcel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
 
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docxExcel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
Excel Project 1 – MS Excel (Summer 2018) Use the project descripti.docx
 
BIS 155 Redefined Education--bis155.com
BIS 155 Redefined Education--bis155.comBIS 155 Redefined Education--bis155.com
BIS 155 Redefined Education--bis155.com
 
BIS 155 Education for Service--bis155.com
BIS 155 Education for Service--bis155.comBIS 155 Education for Service--bis155.com
BIS 155 Education for Service--bis155.com
 

Dernier

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 

Dernier (20)

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 

Excel charts witcher

  • 1. Dynamic Chart with Dropdown List Control February 18, 2011
  • 2. Overview We will create a chart in Microsoft Excel that updates automatically based on a selection from an in-cell dropdown list This chart will function based on quarterly figures as its data source The main purpose is to show users the dynamic functionality of Microsoft Excel without using macros Copyright © 2011 Techronology. All rights reserved.
  • 3. Quick Glance The components Dropdown selection list Categories and data Dynamic chart The idea To be able to change the chart's data source based a user's selection Again, we will not show you how to create the dropdown list itself, which is covered in a separate lesson Copyright © 2011 Techronology. All rights reserved.
  • 4. Requirements Microsoft Excel 2007 You may be able to apply the instructions in this tutorial to other versions of Microsoft Excel Optional Check out the tutorials below on creating dropdown lists in Microsoft Excel(We will not cover the creation of dropdown lists in this tutorial) Copyright © 2011 Techronology. All rights reserved. Tutorial Links http://www.slideshare.net/techron/incell-interactivity-dropdown-box-in-excel http://www.techronology.com/index.php?pageID=007002&lessonID=excel0001&lessonType=pres
  • 5. Get the Data Ready This data refers to the amount of money spent on business supplies and stationary for a particular business Below is the data you should use in this lesson Copyright © 2011 Techronology. All rights reserved. We have our data organized in cells D5 to H8, as shown below
  • 6. Enter the Data Enter the data (in cells D5 to H8) for your chart using the same numbers as below Copyright © 2011 Techronology. All rights reserved.
  • 7. Create the In-cell Dropdown List In cell B6, create an in-cell dropdown list with four choices 1st Quarter 2nd Quarter 3rd Quarter 4th Quarter Copyright © 2011 Techronology. All rights reserved.
  • 8. Select Your Data and Prepare to Create Chart Copyright © 2011 Techronology. All rights reserved. 1 1 Select cells D5 to E8, which will serve as your initial data for your chart Click on the Insertmenu 2 2
  • 9. Create a Standard Pie Chart Click on the Pie icon Click on the first pie icon in the 2-D Pie section Copyright © 2011 Techronology. All rights reserved.
  • 10. Chart Display You can move the chart around, resize it, etc., but it is time to make the chart more dynamic Now that the chart is created, let's make some named ranges that will work with the chart Copyright © 2011 Techronology. All rights reserved.
  • 11. Create the Named Ranges for First Two Quarters Copyright © 2011 Techronology. All rights reserved. 1 1 Select cells E6 to E8 Type qtrData1 in the Name Box and press Enter Select cells F6 to F8 Type qtrData2 in the Name Box and press Enter We cover named ranges in a previous tutorial, which is listed on the Requirements page in the beginning of this tutorial 2 2
  • 12. Finish Creating the Named Ranges Copyright © 2011 Techronology. All rights reserved. 1 1 Select cells G6 to G8 Type qtrData3 in the Name Box and press Enter Select cells H6 to H8 Type qtrData4 in the Name Box and press Enter 2 2
  • 13. Test the Dropdown List We now want to supply a number based on the user's selection Below are the index values we want to use for the dropdown list 1st Quarter = 1 2nd Quarter = 2 3rd Quarter = 3 4th Quarter = 4 So, when a user selects 3rd Quarter, for example, the value 3 should be applied Copyright © 2011 Techronology. All rights reserved.
  • 14. Match Up Your Choice Type the formula shown above in cell B8 and press Enter The MATCH function searches for a specified item in a range and then returns the relative position of that item in the range In our case, the range is {"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"} Copyright © 2011 Techronology. All rights reserved.
  • 15. Our Match Formula Breakdown Copyright © 2011 Techronology. All rights reserved. =MATCH($B$6,{"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"},0) This is the value in cell B6 we want to lookup These are the range of values to check B6 against The zero value in MATCH looks for an exact match The final result should be 1, 2, 3, or 4 in cell B6 If a match cannot be found, an error is displayed Our dropdown list should only allow the values listed in the match range; therefore, an error should not occur
  • 16. Creating the Series Names from User Selections We can now append the number produced in B6 to the text "qtrData" For example, if the user selects "2nd Quarter" then B6 will equal 2 and the text "qtrData" will become "qtrData2" Below are the text values that we want to create based on the user selection 1st Quarter = "qtrData1" 2nd Quarter = "qtrData2" 3rd Quarter = "qtrData3" 4th Quarter = "qtrData4" Copyright © 2011 Techronology. All rights reserved.
  • 17. Test the Series Text Name In cell B9, enter the follow formula (including the quotations)… ="qtrData"&B8 …which will produce qrtData1, qrtData2, qrtData3, or qrtData4 Copyright © 2011 Techronology. All rights reserved. Remember, cell B8 is the same as… =MATCH($B$6,{"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"},0)
  • 18. Finalize Series Name In cell B10, combine cell B8 and B9 using the following formula… ="qtrData"&MATCH($B$6,{"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"},0) This will become our master named range for the chart series Copyright © 2011 Techronology. All rights reserved.
  • 19. Get the Formula for the Series Name Copyright © 2011 Techronology. All rights reserved. 1 1 Click on cell B10 Press function key 2 (F2) to go into edit more Select all the text, including the equal sign Press Ctrl-C to copy the formula Or… Select and copy the formula from the formula toolbar 2 2
  • 20. Create the Series Named Range Copyright © 2011 Techronology. All rights reserved. 1 1 Click Formulas from the menu Click Define Name from the Formulas ribbon Type seriesData as the Name Paste in the formula you copied from cell B10 to the Refers to box Press Enter or click OK You may need to try this twice or type in the formula directly to get use to the procedure 2 2
  • 21. Make the New Range Name an Indirect Range Open the Name Manager by pressing Ctrl-F3 or by clicking Name Manager from the Formulas ribbon (see previous page) Click on seriesData In the Refers to box, enclose everything in parenthesis Before the first parenthesis, type INDIRECT See the complete formula below Copyright © 2011 Techronology. All rights reserved. =INDIRECT("qtrData"&MATCH(Sheet1!$B$6,{"1st Quarter","2nd Quarter","3rd Quarter","4th Quarter"},0))
  • 22. INDIRECT Function Note INDIRECT returns the reference specified by a text string. References are immediately evaluated to display their contents. Use INDIRECT when you want to change the reference to a cell within a formula without changing the formula itself. Copyright © 2011 Techronology. All rights reserved.
  • 23. Apply Your New Range Name to the Chart Right-click on a white area on the chart to view the shortcut menu Click Select Data from the shortcut menu You can also click on the chart, select Design from Chart Tools, and click on the Select Data icon Copyright © 2011 Techronology. All rights reserved.
  • 24. Create New Data Source Copyright © 2011 Techronology. All rights reserved. 1 1 Click on 1st Qtr and then click the Edit option Under Edit Series, type Sheet1!seriesData in the Series values box Press Enter or click OK Basically, what you are doing is typing the name of your sheet, the exclamation point, and the named range If your sheet's name is not "Sheet1" replace "Sheet1" with the name of your sheet 2 2
  • 25. Test Your Chart Now when you select an option from the dropdown, the chart will update automatically according to your selection On the other hand, the series name or title will not change because you did not create a dynamic range name for them yet You really do not need to unless you plan on displaying a chart or series title Simply click on the chart title and press delete Copyright © 2011 Techronology. All rights reserved.
  • 26. End Notes You can now delete the contents of the test cells (B8, B9, and B10) This technique can work with almost any kind of chart Once you get really good, you can create charts that automatically adjust to the size of a range You can get the supporting Microsoft Excel file from the following site: http://www.techronology.com/products.php?prodID=less002 Copyright © 2011 Techronology. All rights reserved.