Histogram of Filtered Data

RFurball

New Member
Joined
Jul 26, 2004
Messages
24
I have a data base made up of 5 populations of data. I would like to create histogram data for the total of all 5 populations plus histogram data for each population. I tried to create histogram data using data filters but that does not seem to work. The only way I see how to do this is to:
1) filter the data
2) copy the filtered data to a new sheet
3) create the histogram data for the entries on the new sheet.

Is there an easier way?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Arghhh! I just found this forum after viewing ExcelIsFun videos #31 and 37, and was about to post exactly the same question.

Here's hoping somebody has an answer.
 
Upvote 0
Pivot table is a good idea. I will try it...

Also came up with my own solution. Add two things to the spreadsheet:
1. List of all valid filter items, and a validated cell where you can select the "current" item

2. New column in the data area with a simple formula that points to the original data column and multiplies it by a true/false item that depends on whether the row matches the "current" item. For my test case, the formula was: =B5*(A5=$E$1)
where:
B5 was the original data cell
A5 was a parameter of the row. In my case, it was the "load number" of the row, and I wanted to filter for a selected load number.
$E$1 was the value of the selected load number.

This formula returns zero for all rows that are not in the selected row number. Base the histogram on this new column, making sure that zero is outside the histogram range.
 
Upvote 0

Forum statistics

Threads
1,215,613
Messages
6,125,834
Members
449,266
Latest member
davinroach

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top