+ Reply to Thread
Results 1 to 7 of 7

Running numerous countifs for formulas - stuck on best way to setup/apply filters 2 recalc

  1. #1
    Registered User
    Join Date
    07-09-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Running numerous countifs for formulas - stuck on best way to setup/apply filters 2 recalc

    Excel file attached. Using Office 365.

    I have a number of easy countif formulas setup that grab the counts given the various criteria across a number of columns. Ultimately, this is to create a percentage calculation where I use the countifs to sum all the numerator values and then another sum to have all the various denominator values and then create that percentage. That is easy enough - I'm sure there is a better way to do it, but it's simple and easy to replicate.

    My problem is I have to do this same countif/sum/division for 23 different scenarios based on filtering the data source various ways. It also has to be repeatable as I have to do this every month where I copy a new datasource into the Excel file to run the various calculations.

    I've seen other scenarios on here around not counting hidden rows where you create a visible flag and use sumproduct formulas, but that doesn't seem like it would work given how many filters I need to apply. Any help?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,187

    Re: Running numerous countifs for formulas - stuck on best way to setup/apply filters 2 re

    See attached: I set up Named Ranges (N14:Q21)and used Data Validation to select choice.
    Attached Files Attached Files
    Last edited by JohnTopley; 07-09-2021 at 03:14 PM.

  3. #3
    Registered User
    Join Date
    07-09-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Running numerous countifs for formulas - stuck on best way to setup/apply filters 2 re

    Thanks! I updated the formulas a bit for the calculations to be correct. I verified that the Market Num selection list works as well as the Q5 list with your 1/2/3/1-3 drop down list but how would I change that to update for running Q14 or Q56?

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,187

    Re: Running numerous countifs for formulas - stuck on best way to setup/apply filters 2 re

    Go to Data ==>Data Validation==>Allow: List Source: Q14_List

    Repeat and use Q56_List

  5. #5
    Registered User
    Join Date
    07-09-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Running numerous countifs for formulas - stuck on best way to setup/apply filters 2 re

    Got it. I didn't see the formula edits I needed to make to pick the correct column (B/C/D for the change in Q14/Q56/Q6). That's all sorted now.
    Here was the final worksheet for posterity with all the updates made.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,187

    Re: Running numerous countifs for formulas - stuck on best way to setup/apply filters 2 re

    If you are happy with the solution offered would you please mark the thread as SOLVED: see "Thread Tools" at top of first post.

    Thank you.

  7. #7
    Registered User
    Join Date
    07-09-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Running numerous countifs for formulas - stuck on best way to setup/apply filters 2 re

    So, reviewing this closer, the solution was to instead use =countifs to add the additional filter based on the additional logic needed for each of those 23 data filter scenarios. You cleaned it up a bit by adding data validation so instead of 23 calculation sections, we could get down to just 6 or so by using the data validation list. Got it! thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Using COUNTIFS across numerous columns within a SUBTOTAL
    By ChrisNaughton in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-15-2021, 01:20 PM
  2. [SOLVED] Apply textbox format to numerous textboxes on userform
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2017, 12:19 PM
  3. [SOLVED] Format Painter in conjunction with ColorFunction to force recalc of formulas
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-09-2014, 01:03 PM
  4. [SOLVED] Running a macro over numerous sheets
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-06-2013, 10:36 AM
  5. Marco for changing numerous pivot chart filters at once
    By Nick Simo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2012, 12:09 PM
  6. Apply Filters to each Cell
    By chris8877 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-08-2012, 06:06 AM
  7. [SOLVED] want to apply function to numerous cells
    By ExcelQuestion in forum Excel General
    Replies: 3
    Last Post: 09-07-2005, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1