+ Reply to Thread
Results 1 to 6 of 6

How to shorten COUNTIF formulas (without using VBA)

  1. #1
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,070

    How to shorten COUNTIF formulas (without using VBA)

    I have a spreadsheet that i would like to shorten the formulas (if possible).

    I have discovered that it is possible to shorten SUMIFS using the {curly brackets} to make an array of the options for a given range.

    However, I still havent found if there is similar method for COUNTIF.

    I did try to use the {curly brackets} method on a COUNTIF formula, but it doesnt seem to work.

    Does anyone know of methods to shorten formulas that have repeated sections, and for what functions they can be applied to?

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,226

    Re: How to shorten COUNTIF formulas (without using VBA)

    If you had MS365, you could use the new LET function, but it seems you have Excel 2016 - is this right? Please update your profile to make this clear.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,070

    Re: How to shorten COUNTIF formulas (without using VBA)

    yes i have Office 16 on Mac.

    I just discovered (trying from my thoughts) how to shorten COUNTIF with the curly brackets, the trick is to also wrap the COUNTIF in SUM, so it would look like this:

    SUM(COUNTIF(range{variable1,variable2,variable3,variable,4}))

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,226

    Re: How to shorten COUNTIF formulas (without using VBA)

    Please update your profile to say Office 16 for Mac instead of just 16.

    You missed a comma:

    =SUM(COUNTIF(range,{variable1,variable2,variable3,variable,4}))

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,070

    Re: How to shorten COUNTIF formulas (without using VBA)

    oh yes indeed, thanks for the correction, and the advice for using the forum, it has been many years since ive used them, time to relearn those skills

  6. #6
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,784

    Re: How to shorten COUNTIF formulas (without using VBA)

    Attach your sample workbook.

+ 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. Shorten the countif formula
    By badcobra2021 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-07-2021, 01:18 PM
  2. [SOLVED] How to shorten Too Long Countif formula
    By putraguevara in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-10-2019, 04:12 PM
  3. Shorten a Countif/Sumproduct formula
    By her.rockstar in forum Excel General
    Replies: 5
    Last Post: 10-02-2018, 02:24 PM
  4. Proper syntax to shorten Countif formula
    By small_wonder in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2012, 09:23 AM
  5. How to shorten the formula - IF(SUM(COUNTIF(
    By fang603 in forum Excel General
    Replies: 2
    Last Post: 03-09-2012, 08:59 AM
  6. [SOLVED] Shorten Formulas
    By MichelleExcelBeginner in forum Excel General
    Replies: 4
    Last Post: 09-29-2005, 03:05 PM
  7. How to shorten formulas??
    By dwest100 in forum Excel General
    Replies: 4
    Last Post: 09-29-2005, 06:05 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