+ Reply to Thread
Results 1 to 9 of 9

Using CountIFS or SumIFS with "exact"

  1. #1
    Registered User
    Join Date
    09-25-2018
    Location
    NJ, United States
    MS-Off Ver
    2016
    Posts
    18

    Using CountIFS or SumIFS with "exact"

    Currently have the formula =COUNTIFS(Data!$C:$C,E8,Data!G:G,"<0") to return the # of items less than 0. Cell E8 is now a problem because I have an "s" and a "S" to match. How would I update formula to get the exact match? having the same issue with =SUMIFS(Data!$J:$J,Data!$C:$C,E8,Data!G:G,"<0")




    Thank you,

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Using CountIFS or SumIFS with "exact"

    Hello and welcome to the forum.

    COUNTIFS and SUMIFS are not case sensitive so there much be something else that makes the cells differ (like a trailing space for example).

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Using CountIFS or SumIFS with "exact"

    Ooh I think that I misunderstood your request. Are you saying that s and S should not be seen as the same?

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

    Re: Using CountIFS or SumIFS with "exact"

    That was my take 63FD, that the count for S and s and the sums for S and s are different and he doesn't want them combined.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    09-25-2018
    Location
    NJ, United States
    MS-Off Ver
    2016
    Posts
    18

    Re: Using CountIFS or SumIFS with "exact"

    correct. s will return 105 and S will still return 105 even though S is really 94 or something...For the mean time, i just changed "S" to "S " with a space after to differentiate to lookup. But it's time consuming to change...

    s needs to return 105 and S needs to return 94

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

    Re: Using CountIFS or SumIFS with "exact"

    For the mean time, i just changed "S" to "S " with a space after to differentiate to lookup. But it's time consuming to change
    while contemplating the issue of S and s, if it is a stand alone in the cell a simple find what >> S and replace with what >> S [space] and match entire cell contents and match case check boxes should make it much faster.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Using CountIFS or SumIFS with "exact"

    =COUNTIFS(Data!$C:$C,E8,Data!G:G,"<0")
    Can be changed to:
    =SUMPRODUCT((EXACT(Data!$C$2:$C$100,E8))*(Data!$G$2:$G$100>0))

    =SUMIFS(Data!$J:$J,Data!$C:$C,E8,Data!G:G,"<0")
    Can be changed to:
    =SUMPRODUCT((EXACT(Data!$C$2:$C$100,E8))*(Data!$G$2:$G$100>0)*(Data!$J$2:$J$100))

    Just change the ranges to suit your data.

  8. #8
    Registered User
    Join Date
    09-25-2018
    Location
    NJ, United States
    MS-Off Ver
    2016
    Posts
    18

    Re: Using CountIFS or SumIFS with "exact"

    Quote Originally Posted by 63falcondude View Post
    =COUNTIFS(Data!$C:$C,E8,Data!G:G,"<0")
    Can be changed to:
    =SUMPRODUCT((EXACT(Data!$C$2:$C$100,E8))*(Data!$G$2:$G$100>0))

    =SUMIFS(Data!$J:$J,Data!$C:$C,E8,Data!G:G,"<0")
    Can be changed to:
    =SUMPRODUCT((EXACT(Data!$C$2:$C$100,E8))*(Data!$G$2:$G$100>0)*(Data!$J$2:$J$100))

    Just change the ranges to suit your data.
    works like a charm !!!

    I have a few more I can't figure out how to integrate the "exact" formula if you can please assist
    =COUNTIF(Data!C:C,A4)
    =SUMIFS(Data!$J:$J,Data!$C:$C,A4)
    =COUNTIFS(Data!C:C,I4,Data!G:G,">=0",Data!G:G,"<2")
    =SUMIFS(Data!$J:$J,Data!$C:$C,I4,Data!G:G,">=0",Data!G:G,"<2")

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Using CountIFS or SumIFS with "exact"

    =COUNTIF(Data!C:C,A4)
    would be
    =SUMPRODUCT(--(EXACT(Data!C$2:C$100,A4)))

    =SUMIFS(Data!$J:$J,Data!$C:$C,A4)
    would be
    =SUMPRODUCT((EXACT(Data!$C$2:$C$100,A4))*(Data!$J$2:$J$100))

    =COUNTIFS(Data!C:C,I4,Data!G:G,">=0",Data!G:G,"<2")
    would be
    =SUMPRODUCT((EXACT(Data!C$2:C$100,I4))*(Data!G$2:G$100>=0)*(Data!G$2:G$100<2))

    =SUMIFS(Data!$J:$J,Data!$C:$C,I4,Data!G:G,">=0",Data!G:G,"<2")
    would be
    =SUMPRODUCT((EXACT(Data!$C$2:$C$100,I4))*(Data!$G$2:$G$100>=0)*(Data!$G$2:$G$100<2)*(Data!$J$2:$J$100))


    Again, making sure to adjust the ranges to fit your data.

    Thanks for the rep!
    This should give you enough to be able to convert any others that you have yourself.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Try to countifs and sumifs value with "-"
    By molittlemo in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 08-28-2017, 08:36 AM
  2. Highlight cells containing exact string value "our" and not "your" as well?
    By papazulu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-01-2016, 02:20 AM
  3. [SOLVED] COUNTIFS returning "TRUE" or "FALSE"
    By ambolton528 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-20-2016, 08:16 PM
  4. [SOLVED] Countifs, Sumifs, is there another "ifs"?
    By Eldernurf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2013, 09:19 AM
  5. Replies: 10
    Last Post: 01-26-2012, 08:26 AM
  6. can a "MINIF" formula be built, equivalent to "SUMIFS"?
    By jrtaylor in forum Excel General
    Replies: 4
    Last Post: 10-22-2011, 12:44 PM
  7. [SOLVED] Can you replace "TRUE" with " " in an exact formula?
    By Sweetetc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2006, 09:15 AM

Tags for this Thread

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