Reputation: 2567
I have a table and I want to show only a part of that data as a chart.
This is my data
pets age
coco 3
rover 3
clifford 8
rugrat 7
doug 1
I want to make a chart that shows pets on the x-axis and age on the y-axis.
Importantly, I want to show data for pets that are at least four years old (clifford and rugrat).
In my use case, I cannot delete those rows from my table because it would adversely affect other tables in my worksheet. I would also rather avoid pivot tables. My band-aid fix is to select the data and manually select, in this example, clifford and rugrat.
Upvotes: 0
Views: 1038
Reputation: 632
You mentioned you prefer to avoid pivot tables. This solution utilizes pivot charts, NOT pivot tables.
Click anywhere in the table and go to insert->pivot chart
(Optional) In the Create PivotChart menu, select the check box to Add this data to the Data Model. This will prevent a Pivot Table from being created in the workbook.
Drag Age into the values section and Pets into the Axis (Categories) section.
Click the dropdown button on the Pets field and add a value filter. In this case you want the sum of age to be greater than 4. (Alternatively, you can use the Pets button on the pivot chart.)
Below is the final product. You may wish to adjust the y-axis, add titles, etc. from here.
Upvotes: 3
Reputation: 265
In Case you have Office 365, Try this:
Let assume that the following:
From the name Manager, create a named range called "Titles" and with value as:
=FILTER(INDIRECT("Sheet5!$A$2:"&"$A$"&COUNTA(Sheet5!$A:$A)),INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B))>4)
From the name Manager, create another named range called "Values" and with value as:
=FILTER(INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B)),INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B))>4)
For Chart do the below:
Upvotes: 2