+ Reply to Thread
Results 1 to 5 of 5

Formula works until I change CountIF to CountIFS

  1. #1
    Registered User
    Join Date
    12-28-2018
    Location
    BC Canada
    MS-Off Ver
    MS Office 360
    Posts
    16

    Formula works until I change CountIF to CountIFS

    Need some help - need to include another criteria for my formula. Currently has a CountIF, and it works. When I change to CountIFS to add the extra criteria (001), it stops calculating for everything. I also tried adding to include in my "Default" named range (range off to the far right) but cant get that to work either, I think because I have to store number as text to get 001 to show. See attachment. also examples below.

    Formula currently: =IF(COUNTIF(E10:I10,"*999*")+SUMPRODUCT(--(DEFAULT=E10:I10))>0,1,"")
    Formula I want to work: =IF(COUNTIFS(E16:I16,"*999*",E16:I16,"*001*")+SUMPRODUCT(--(DEFAULT=E16:I16))>0,1,"")
    default named range includes: 101, 102, 104, 105, 107, 108, 999

    appreciate the help on this one!
    Attached Files Attached Files
    Last edited by spenny32; 02-27-2019 at 01:30 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula works until I change CountIF to CountIFS

    maybe try...
    =IF(SUM(COUNTIF(E16:I16,{"*999*","*001*"})+SUMPRODUCT(--(DEFAULT=E16:I16)))>0,1,"")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Formula works until I change CountIF to CountIFS

    Maybe try at J9

    =IF(SUM(COUNTIF(E9:I9,{"*999*","*001*"}))+SUMPRODUCT(--(DEFAULT=E9:I9))>0,1,"")

  4. #4
    Registered User
    Join Date
    12-28-2018
    Location
    BC Canada
    MS-Off Ver
    MS Office 360
    Posts
    16

    Re: Formula works until I change CountIF to CountIFS

    Awesome!! Looks like it is working Thanks so much

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula works until I change CountIF to CountIFS

    you're welcome, AND thank you 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. Countif Vlookup formula works in one cell but not another
    By lcfhcsd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2017, 06:53 PM
  2. COUNTIFS formula that works in the same row
    By julesmck in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-29-2016, 12:36 AM
  3. [SOLVED] Struggling to build count/countif/countifs formula with various comparative criteria!
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2014, 03:04 AM
  4. COUNTIF/COUNTIFS/IF Formula
    By quibilty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2013, 03:17 PM
  5. COUNTIF/COUNTIFS/IF Formula
    By quibilty in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-17-2013, 07:02 PM
  6. Formula needed for countif or countifs (may also need a sumif)
    By Petefav in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 02:18 AM
  7. Change COUNTIFS to COUNTIF
    By braydon16 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2011, 03:29 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