Solved

Dynamic Bar chart in Excel

Posted on 2016-10-21
5
33 Views
Last Modified: 2016-10-21
Can someone please show me how to create dynamic  chart for the data attached here?  In the attached example, mint does not have any sales.  How can i build a dynamic chart that hides mint from the chart and only show mint sales on the chart when mint is not blank.
Book12.xlsx
0
Comment
Question by:fb1990
  • 2
  • 2
5 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 41854094
Recast your source data to look like this:

Category      Product      Result
Percent Sales      cookie      42.64%
Percent Sales      sweets      84.75%
Percent Sales      dough      22.64%
Percent Sales      oil      20.00%
Percent Sales      biscuit      52.16%
Percent Rewards      cookie      48.10%
Percent Rewards      sweets      70.29%
Percent Rewards      dough      38.10%
Percent Rewards      biscuit      92.78%

Then create a PivotChart on that data, with Product as the Axis field, Category as the Legend field, and Sum of Result as the Value field
0
 
LVL 28

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
ID: 41854117
Refer to the attached and see if this is what you were trying to achieve.
Book12.xlsx
0
 
LVL 1

Author Closing Comment

by:fb1990
ID: 41854334
Thanks Patrick and Neeraj.  Neeraj solution worked for me.  Is there a way to hide #N/A?  I want add data label and don't want that to show
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41854345
You're welcome.
#N/A is necessary to hide the series with no data in this case Mint sales.
0
 
LVL 1

Author Comment

by:fb1990
ID: 41854569
Thank you.  I added iferror to mask it and it changed the #N/A to 0%.  I want it to go away but i can live with it.  Thanks a a bunch as usual
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now