+ Reply to Thread
Results 1 to 6 of 6

Tricky If & Sumif combination

  1. #1
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    450

    Tricky If & Sumif combination

    Hi peeps.

    Im probably missing something really simple here but for the life of me i can't seem to crack this. I've attached a simplified version of the test file.

    data tab: contains list of countries, values and month

    I'm trying to populate the summary tab with the total sum of each country per month.

    It looks so simple, not sure why i'm struggling so much.

    Neill
    Attached Files Attached Files
    Last edited by Gti182; 10-29-2010 at 06:38 AM. Reason: solution solved

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    38,143

    Re: Tricky If & Sumif combination

    In Excel 2003:

    Please Login or Register  to view this content.

    Copy across and down.

    Regards
    Trevor Shuttleworth - Excel Aid

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: Tricky If & Sumif combination

    @TMS, the coercion of the final range is superfluous.

    In reality one of the main reasons for coercing the Boolean arrays separately is to avoid directly coercing the summation range.
    In this manner the SUMPRODUCT acts like SUMIF in so far as non-numerics are ignored rather than causing #VALUE! errors

  4. #4
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    450

    Re: Tricky If & Sumif combination

    TMS you are a beast! That formula is amazing thanks mate

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: Tricky If & Sumif combination

    On an aside... it's generally a good idea to avoid matrices of SUMPRODUCTs as they are inefficient and will lead to poor performance.

    Here, it would be best to concatenate on Data

    Please Login or Register  to view this content.
    Then

    Please Login or Register  to view this content.
    Though less elegant the above is something of a no-brainer in these situations as it will perform significantly better than SUMPRODUCT (calcs will be instantaneous)

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    38,143

    Re: Tricky If & Sumif combination

    @DonkeyOte: thanks for the prompt. It gets to be a habit, based on past poor experience and realising that the coercion "helps".

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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