+ Reply to Thread
Results 1 to 10 of 10

Which uses more processing power - countifs or index/match?

  1. #1
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Which uses more processing power - countifs or index/match?

    I was hoping that someone here will know which function uses more processing power.

    I have four different countifs to collect data with each countifs having four different criteria. I’m adding the results of each countifs by connecting them with a plus sign.

    In the same workbook, I need to split out the results of each of the four countifs in twenty-one tabs.

    Would it be more efficient to use each of the four countifs once (in a helper tab) and then use index/match on the twenty-one tabs to bring the results in or have each tab reuse the countifs formulas?

    Thank you for your input!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Which uses more processing power - countifs or index/match?

    Use the helper column for the 4 COUNTIFS, then INDEX/MATCH.

    Hope this helps.

    Pete

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Which uses more processing power - countifs or index/match?

    why on earth do you need 21 sheets?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Which uses more processing power - countifs or index/match?

    Pete - perfect, thank you!

    FB - because the law enforcement agency that reached out for help has 21 different Divisions and 4 crimes they want to track (for 7 day, 28 day, and YTD periods) for each Division and a Citywide report to boot. I could put all 21x4 on one helper tab but then the results would get buried and referencing the result data could easily get confusing. Having a helper tab for each Division seems more organized and the chances for mistakes greatly reduced along with it being easier for them to manage down the road. Does it add significant memory and processing power doing it this way? If so, I will just make one helper tab because their computers aren’t the best in the world. I’m doing this for a friend and I don’t want her job to be more complicated as she uses the workbook to generate the reports she needs. Thank you!
    Last edited by CWatsonJr; 02-14-2019 at 07:10 AM.

  5. #5
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Which uses more processing power - countifs or index/match?

    FB - I forgot to add that each Division is broken down into districts (some as many as a hundred) and they want to know which districts have the most occurrences of each crime in each Division.

    Each Division belongs to a group (four of them) and I already did the Citywide report which shows the worst five districts in each group. All that’s left to do is create each Division report now and then hand it over to them to use.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Which uses more processing power - countifs or index/match?

    I still think that all data could be contained on 1 "data" sheet, and just add whatever identifier you need for each district etc. You could then have 1 (or more) summary sheets that would pull the extracts that you need.

  7. #7
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Which uses more processing power - countifs or index/match?

    Thanks FB. I started that yesterday. As I thought about your first post, the more I liked having all the data manipulation in one place and then have 26 summary (or report) sheets (one for each Division, one for each group, and one for the whole city).

    Thank you again for your insight!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Which uses more processing power - countifs or index/match?

    (FD - no problem though lol)

    Im happy that you agree that 1 sheet for all data is the way to go. (thanks for the rep, too)

    But there may also be a way to not need 26 summary sheets, as well. Maybe consider having (1 option) 1 sheet for each crime type, and then show all divisions on each sheet, for comparison purposes.

    OR, you could perhaps use 1 table that would show all stats, but use DropDowns to pick Divisions, crimes, other sub-sections?

    We could always help with something like that, and if you dont like it, modify it or go back to what you are more comfortable with?

  9. #9
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Which uses more processing power - countifs or index/match?

    DOH! Sorry about that Mr. Dibbins

    The one sheet with the drop down is an intriguing thought. I could have them select the Division and then the sheet would auto-populate the stats for that division. There are 60 formulas for each report and I’ll have to lay down the data gathering and sorting first so I’ll know which cells to reference in the IF statements (those are going to be long IF statements too). The downside to that would be they would have to pdf each report individually to email it off. Having a sheet for each Division and group (Bureau) means they could batch pdf the reports for everyone all at once and send out one file (without having to assemble them in Acrobat).

    I did three of the four Bureau reports today and I’ll do the fourth in the morning.

    I’ll send them an email on Tuesday to see what their preference is. Thanks again for the ideas! I love this place, someone always has a way to do something that I hadn’t thought of.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Which uses more processing power - countifs or index/match?

    Quote Originally Posted by CWatsonJr View Post
    ...someone always has a way to do something that I hadn’t thought of.
    You can say that again

    There are many ways around "long if statements", we can explore them later if you decide to go in that direction.
    Also, we could help create a macro that would run through all the options in the DD's, and create (and email) all the necessary PDF's for you. That will, of course, require far more detail from your side, but with excel, almost anything is possible.

+ 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. Countifs with index match
    By Paul.Thompson in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-12-2019, 09:41 AM
  2. using countifs with index and match
    By cvandy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2018, 02:43 AM
  3. INDEX, MATCH and COUNTIFS
    By 1953CAG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-18-2017, 04:57 AM
  4. Index Match Processing Stall
    By aritsa in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 05-20-2016, 09:56 AM
  5. Minimum function and processing power
    By tsakta13ole in forum Excel General
    Replies: 4
    Last Post: 07-13-2015, 09:41 AM
  6. INDEX(MATCH)) / LOOKUPS Processing Calculator Speed
    By AstToTheRegionalMGR in forum Excel General
    Replies: 1
    Last Post: 02-17-2015, 10:57 AM
  7. Countifs Index Match
    By Keelin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-16-2014, 08:38 AM

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