I have a macro that I'm working on, and for the most part the macro works well except for one issue. When the source data is exported, it will be over the course of several months, and the end user will filter out all of the months except the one they want to look at. I need to have the macro calculate only for the visible, non-filtered items. Here is the code for my macro (many of the lines are commented out since I had used them at some point in testing, but currently don't need them:
The main issue is that when determining the percentage of a response, the denomenator is calculated based on ALL values, not just the visible ones. For example, if the spreadsheet has 9 entries, 1 row for labels, 7 rows for May, and 1 row for april, and I filter out april, when the % of yes responses for may is calculated by the macro its going to be x/8, when really it should be x/7 since the row containing the month of April is filtered out.
Bookmarks