+ Reply to Thread
Results 1 to 7 of 7

Modify countifs formula to exclude certain criteria

  1. #1
    Forum Contributor
    Join Date
    10-05-2016
    Location
    orange, ca
    MS-Off Ver
    0365 2209
    Posts
    144

    Modify countifs formula to exclude certain criteria

    Hello all,

    Hope you are having a good day.

    In the sample worksheet, I created formulas in columns J-O that simply returns a 1 if the specified criteria in the countifs formula is met..a "n" if not

    in this case, when for column J, "1 e" is in the same row columns A-H, a 1 is return...next column K when a 2 in the same range, a 1 is return..3 and so on to 6.

    The issue I am having is I don't want it to count when the number occurs with a c..e.g 2c,3c,4c,5c,6c (excluding 1 e).

    I highlighted in yellow the places where this occur and in the corresponding formula when it is counted, yet I don't want it counted.

    For example, I row 5 there is 4c and so the formula counts this 4, but I would like it not too as there is no other 4 in the specified range.

    How do I modify the formula to exclude this or is there a different approach?

    Thanks for the help
    Last edited by lar9149; 08-02-2021 at 07:18 PM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Modify countifs formula to exclude certain criteria

    Workbook didn't attach.

    Please see instructions at the top of this page.
    Dave

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Modify countifs formula to exclude certain criteria

    We only need a small sample. There's no way that amount of data should exceed the maximum for an Excel File. Just the sheet shown in the .pdf file will be enough if it's other sheets that make the file large. A .pdf file is as useless as a picture for anyone to work with.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    10-05-2016
    Location
    orange, ca
    MS-Off Ver
    0365 2209
    Posts
    144

    Re: Modify countifs formula to exclude certain criteria

    I fixed it you should see an excel attachment now

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Modify countifs formula to exclude certain criteria

    Try, in cell N11:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You should be able to copy the formula to the other cells EXCEPT column J. Possibly not needed there?

  6. #6
    Forum Contributor
    Join Date
    10-05-2016
    Location
    orange, ca
    MS-Off Ver
    0365 2209
    Posts
    144

    Re: Modify countifs formula to exclude certain criteria

    Quote Originally Posted by TMS View Post
    Try, in cell N11:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You should be able to copy the formula to the other cells EXCEPT column J. Possibly not needed there?
    Yes it works and yes, no modification needed for column J since there will be no "1 ec"

    Will mark as solved and thanks again

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Modify countifs formula to exclude certain criteria

    You're welcome. Thanks for the rep.

+ 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] Modify formula to exclude Paid Fee
    By TPS in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-11-2020, 01:41 AM
  2. [SOLVED] exclude certain words from a COUNTIFS formula
    By R.Sloan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-26-2017, 03:40 AM
  3. [SOLVED] COUNTIFS forumulas that can exclude criteria in a range
    By jholiday78 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-05-2015, 12:00 PM
  4. [SOLVED] Modify COUNTIFS formula
    By score in forum Excel General
    Replies: 2
    Last Post: 03-16-2015, 10:53 AM
  5. Exclude blank cells from COUNTIFS formula
    By Leahsco in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-05-2014, 11:45 AM
  6. Replies: 5
    Last Post: 05-04-2014, 10:56 AM
  7. [SOLVED] =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this manner
    By nscarritt in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-26-2014, 04:00 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