+ Reply to Thread
Results 1 to 8 of 8

Need my SUM IF Frequency Match formula to combine with cell references - ideas?

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    7

    Need my SUM IF Frequency Match formula to combine with cell references - ideas?

    Hi all

    OK this shouldn’t be too hard but I am having trouble working it out.

    Basically I have a long list of countries that give $ to another country. The spreadsheet includes only 3 different donor countries in column B.

    I have a working formula that identifies the grand total of duplicate activities :

    =SUM(IF(FREQUENCY(MATCH(E2:E61,E2:E61,0),MATCH(E2:E61,E2:E61,0))>0,1))

    What I now want to do is add something to that formula so that it uses cell references for cells H5:H7 – that is, the name of the donor countries

    I want my formula to use this sumifrequencymatch to identify duplicates, but at the same time use the cell reference to a specific donor

    Array formula perhaps?!

    My life will be much easier if solved, as I am dealing with 20+countries and hundreds of duplicate activities!

    thanks awesome forum users =D!

    Multiple Donors count duplicates.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need my SUM IF Frequency Match formula to combine with cell references - ideas?

    Sometimes its better to use helper columns, to simplify formulas. See is this is something you can work with?

    In F2, use this (the table should copy it down for you)
    =IF(COUNTIF($E$2:E2,E2)>1,"",E2)

    You can then use a simple =COUNTA(E2:E61) (I get 60 though, not 55 like you did?)
    Then for the different countries...
    =COUNTIFS($E$2:$E$61,"<>",$B$2:$B$61,H5)
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need my SUM IF Frequency Match formula to combine with cell references - ideas?

    I'm not sure what you're wanting to do with this.

    Here's my best guess...

    This array formula** entered in I5 and copied down to I7:

    =SUM(IF(FREQUENCY(IF(B$2:B$61=H5,MATCH(E$2:E$61,E$2:E$61,0)),ROW(E$2:E$61)-ROW(E$2)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need my SUM IF Frequency Match formula to combine with cell references - ideas?

    I hope that this helps. I have counted the activities of each country, counted the number of duplicated activities for each country, counted the number of unique activities for each country and used Conditional Formatting to identify the duplicated activities in the table.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    06-26-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need my SUM IF Frequency Match formula to combine with cell references - ideas?

    Hi all - the wonders of excel!

    all you you have solved my problem. This is excellent. I have given you all awesome reputation points

    this makes everything a lot easier - I have 10 years worth of donor data to get through and being able to easily cell reference to count activities makes life soo much easier!!!

    thanks again!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need my SUM IF Frequency Match formula to combine with cell references - ideas?

    You're welcome. We appreciate the feedback!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need my SUM IF Frequency Match formula to combine with cell references - ideas?

    Happy to help and thanks for the feedback

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need my SUM IF Frequency Match formula to combine with cell references - ideas?

    Thanks for the feedback. I'm glad that you found something that works for you.

+ 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