+ Reply to Thread
Results 1 to 5 of 5

Sum(if(countif(

  1. #1
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    100

    Sum(if(countif(

    I have a unique key in column A and a number value in column K.

    Based on the unique key (cuz there could be duplicates), I need a formula that will state that if there are more than 1 unique key then SUM column K. If column K's sum is greater than 1 then "Recycled" if not then "New New".

    Here's the formula I currently have which is returning a #VALUE!.

    SUM(IF(COUNTIFS($A:$A,A2)>1,"Recycled","Net New"),$K:$K)

    Please help.

    Thanks,

  2. #2
    Forum Contributor
    Join Date
    08-07-2015
    Location
    AB, Canada
    MS-Off Ver
    Excel 2013 x64
    Posts
    132

    Re: Sum(if(countif(

    Not sure if I understood your problem correctly... the following formula will return "recycled" if the sum of all the K values associated with the key in cell A2 is greater than 1.
    Please Login or Register  to view this content.
    The following formula returns "recycled" if the key found in A2 is found multiple times in column A.
    Please Login or Register  to view this content.
    Hope that helps!

  3. #3
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Sum(if(countif(

    That is what I needed. Thank you.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: Sum(if(countif(

    Quote Originally Posted by mphillips View Post
    ...if there are more than 1 unique key then SUM column K. If column K's sum is greater than 1 then "Recycled" if not then "New New".
    Your description is not as rigorous as it could be, but here's what I think you mean.

    If there is more than one key, then it's not unique. Instead of "more than 1 unique key" I think you mean "the key is repeated."

    You didn't say so but I am assuming that this formula is intended to be used in each row of data starting in row 2 then copied down.

    If the key in that row is not unique, then check the sum in column K only for that key. You didn't say it was only for that key, but that's the only way I can make sense of this description.

    Note that you didn't say what you want the result to be if the key is not repeated, so you can blank out my red text if you want a blank result.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: Sum(if(countif(

    I guess I was a little late here. If ThirdFret's solution is what you needed then I applaud the effort.

+ 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. Faster if/countif formula for flagging uniques - countif too slow
    By Speshul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2015, 01:44 PM
  2. [SOLVED] Countif within a Countif - Countception
    By stiganovski in forum Excel General
    Replies: 3
    Last Post: 04-26-2012, 12:47 PM
  3. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  4. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  5. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 AM
  6. [SOLVED] COUNTIF or not to COUNTIF on a range in another sheet
    By Ellie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2005, 05:06 PM
  7. [SOLVED] Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05:05 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