Forum Discussion

raeperk's avatar
raeperk
Copper Contributor
Aug 30, 2023
Solved

Sumifs formula excluding duplicates

What I need is a sumifs formula that will not include a value that shows up more than once.

 

How can I pull the 15.00% only once with criteria 1 employee name and criteria 2 "403B" into a cell on a separate sheet? Right now with sumifs I get 30.00%.

 

 

 

 

 

 

 

  • raeperk 

     

    This achieves the result, but it may not be what you're actually looking for. You had referenced the SUMIF function in your question, but it's not clear at all why you want SUMIF per se. If you just are looking for each individiual's percentage for a given code (e.g., 403B) then there's no summing needed; just a simple matter of data retrieval answering the question "What percentage is associate with Barry M and code 403B?"

     

    This solution does that for each name on a list with several....

     

    If this is not what you're looking for, come back with a more complete example and explanation of both the input or raw data, and the output expected. Leave the matter of the appropriate function to us.

  • mathetes's avatar
    mathetes
    Silver Contributor

    raeperk 

     

    Well, we could conceive of some solution to your question as posed that uses the UNIQUE function.

     

    HOWEVER, before we go there, is it ever possible that employee Barry M. could appear twice with a different % rate in that last column? Or other employees? In other words, how variable are the various columns that are incorporated in this SUMIF formula?

    • raeperk's avatar
      raeperk
      Copper Contributor
      Each time the employee's name appears with the same % rate. Other employees could have the same % rate.
      • mathetes's avatar
        mathetes
        Silver Contributor

        raeperk 

         

        This achieves the result, but it may not be what you're actually looking for. You had referenced the SUMIF function in your question, but it's not clear at all why you want SUMIF per se. If you just are looking for each individiual's percentage for a given code (e.g., 403B) then there's no summing needed; just a simple matter of data retrieval answering the question "What percentage is associate with Barry M and code 403B?"

         

        This solution does that for each name on a list with several....

         

        If this is not what you're looking for, come back with a more complete example and explanation of both the input or raw data, and the output expected. Leave the matter of the appropriate function to us.

Resources