+ Reply to Thread
Results 1 to 3 of 3

Combine two COUNTIF criteria using SUM not going well

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    2

    Angry Combine two COUNTIF criteria using SUM not going well

    Here is my formula:

    =SUM(Retirement1!$B$6:$CT$8="*"&$D61)*(Retirement1!$A$11:$CT$11="Complete")
    I also make sure to enter using Shift Ctrl

    The first criteria I am trying to pick up a piece of a cell(s) that has the particular related sell inside of it. The second criteria is a different line/cell(s) that the value is equal to the text "Complete"

    Stand alone both criterias work by themselves, abd I have made this successful when both criterias are combined by just a fix cell (e.g. B1) and a fix text (e.g. "Complete" like above).

    What am I doing Wrong?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Combine two COUNTIF criteria using SUM not going well

    The range sizes don't match, are you intentionally using 3 rows in Retirement1!$B$6:$CT$8? (and the columns are different from Retirement1!$A$11:$CT$11)

    You can't use wildcards in that fashion, assuming two equally sized rows of data try this version with SUMPRODUCT

    =SUMPRODUCT((RIGHT(Retirement1!$A$6:$CT$6,LEN($D61))=$D61)*(Retirement1!$A$11:$CT$11="Complete"))
    Audere est facere

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Combine two COUNTIF criteria using SUM not going well

    Thanks Daddy long legs. Great formula! I intentionally have selected multiple rows, but overlooked that the columns were not matching. I have used your formula matching only the columns and it works!

    I actual took all day today and found out a much longer way to do this by creating multiple new tabs first etc., and I get the same result with the formula you produced so it checks out. If only I had realized your post sooner (did not expect a reply in under 10 mins!) Thanks!


    Final Formula
    =SUMPRODUCT((RIGHT(Retirement1!$A$6:$CT$8,LEN($D61))=$D61)*(Retirement1!$A$11:$CT$11="Complete"))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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