+ Reply to Thread
Results 1 to 5 of 5

How to clean a COUNTIFS Formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-10-2012
    Location
    UAE
    MS-Off Ver
    Excel 2016
    Posts
    132

    How to clean a COUNTIFS Formula

    hello everyone

    i am creating a COUNTIFS formula that is collecting data from multiple worksheet in the same workbook:

    =COUNTIFS(Security!$C$19:$C$1001,"*Manager*",Security!$A$19:$A$1001,B9)+COUNTIFS('Security - 1'!$C$19:$C$1000,"*Manager*",'Security - 1'!$A$19:$A$1000,'Costs - Estimated Summary'!B9)+COUNTIFS('Security - 2'!$C$19:$C$1000,"*Manager*",'Security - 2'!$A$19:$A$1000,'Costs - Estimated Summary'!B9)+COUNTIFS('Security - 3'!$C$19:$C$1000,"*Manager*",'Security - 3'!$A$19:$A$1000,'Costs - Estimated Summary'!B9)

    is there a way to clean up this formula to make it a bit more user friendly?

    thank you

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,433

    Re: How to clean a COUNTIFS Formula

    Possibly, but first you'll need to define "clean up" and "user-friendly" for us. What exactly is the perceived problem? It looks pretty straightforward to me.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    06-10-2012
    Location
    UAE
    MS-Off Ver
    Excel 2016
    Posts
    132

    Re: How to clean a COUNTIFS Formula

    i was wandering if there is a way to use only once the COUNTIFS Statement rather than repeat it multiple times.
    Last edited by AliGW; 10-28-2020 at 04:30 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to clean a COUNTIFS Formula

    I agree with Ali, we need more information as to what you require

    One option is to put COUNTIFS($C$19:$C$1001,"*Manager*",$A$19:$A$1001,B9) on each of the worksheets in the same cell

    then you can just sum these cells, if the sheets are in sequence and the cell used is A1

    =SUM(‘FirstSheet:LastSheet’!A1)

    =SUM(‘Security:Security - 3’!A1)

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,414

    Re: How to clean a COUNTIFS Formula

    Yes, you can. Please read the yellow banner, top of page, and post a small sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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 IF to run a formula to clean up #DIV/0!
    By thoma011 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-15-2020, 11:42 AM
  2. Formula to clean up list
    By Allen_dulles in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-30-2016, 05:07 AM
  3. [SOLVED] Coding Convention Questions #2 (To clean up or not to clean up)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 03-31-2014, 08:18 PM
  4. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  5. Clean Function to Clean Entire Sheet
    By gema in forum Excel General
    Replies: 7
    Last Post: 11-05-2009, 10:07 AM
  6. [SOLVED] CLEAN Formula in Excel
    By Kristen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2005, 08:06 PM
  7. [SOLVED] CLEAN Formula
    By Kristen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2005, 07:07 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