• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

DASHBOARDS, COUNTIFS ARRAY FORMULAS

5150

New Member
All,

I need your help to modify the VBA code that is currently assigned to all (3) Filters (Combo Box Form Controls) in the DB Tab. Specifically, I need each filter in the DB tab to filter and maintain each filter level.

Then, when I select “All” on each filter, it should clear each filter level in the DATA tab, just as if you were filtering directly in the DATA tabs. Currently, the VBA code filters only one at time and does not hold multiple filters simultaneously.

All I’m trying to do is filter from the DB tab instead of the DATA tab to create a cleaner Dashboard rather than having all the DATA and calculations on the same tab.

Normally, I would use a pivot table for my dashboards from all the amazing examples your site has, but unfortunately the pivot table does not allow COUNTIFs Array Formulas in its calculated fields to count filtered visible cells data. Sure I can have the array formula calculate from the pivot table data source, but the data source will not be filtered. So I have to use a different option.

Additionally, I need some help with the COUNTIFS ARRAY formulas that I have in this spreadsheet that are based on multiple criteria. I am trying to figures out how to make them adjust according to visible filtered items from the DATA tab. I have the subtotal functions working properly on all my other calculations, but I'm having issues with the COUNTIFS type ARRAY formula adjusting and calculating the filtered data when the data is filtered or not.

I’m almost there I just need these final component to accomplish my objective. This will be great because it will another great alternative when I don’t have a pivot table option.

I have attached the XL file with more clarification and questions regarding this initiative.

I appreciate your help so much guys!
 

Attachments

  • DASHBOARD PROJECT.xlsm
    38.4 KB · Views: 22
Hi ,

Can you check your file now ?

I have used an AdvancedFilter instead of an AutoFilter. If you confirm that this is OK , I'll look into the COUNTIFS part.

Narayan
 

Attachments

  • DASHBOARD PROJECT.xlsm
    36.3 KB · Views: 19
I appreciate your help very much on the filters solution. I was able to figure out the COUNTIFS ARRAY.

Now, how do I get the Frequency Range(O5:O12) to calculate based on the filtered data like I get with the COUNTIFS ARRAY located in Cell (J12) ? I want to see if we can use the same concept of combining functions to be able to make the Frequency Function Dynamic.

Right now, I have a the following formula: FREQUENCY(RngVal1,BinVal1). However, it calculates based on the entire range filtered instead of the filtered scope. Is it possible to create a dynamic range that returns that filtered range values only?

Lastly, is it possible to do this all in a Pivot Table instead and be able to get the COUNTIFS ARRAY formula use the filtered data from Pivot Table?
 

Attachments

  • DASHBOARD PROJECT V3.xlsm
    42.5 KB · Views: 29
Hi ,

Sorry , but I saw your latest post just an hour back. Give me till tomorrow to go through your file , and get back on this.

Narayan
 
Back
Top