+ Reply to Thread
Results 1 to 7 of 7

Matching, IF, SUMIFS, ISSUE- Help

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Matching, IF, SUMIFS, ISSUE- Help

    Please see attached file...

    I would like a formula that sums the "amount" of each bucket type.

    The Quantity of items under each bucket change often and the arrangement of Buckets change as well.

    Example 1
    US
    10 entries
    Mexico
    5 entries
    Canada
    7 entries

    Example 2
    Canada
    12 entries
    US
    4 entries
    Mexico
    20 entries

    ect



    I hope this makes sense.

    Thanks



    test.xlsx

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Matching, IF, SUMIFS, ISSUE- Help

    I made a few changes....I remove the merge cells (the bane of XL existence)...I changed it to a format -alignment horizontal across cells. This makes it look like a merged cell but isn't. I also added the Country header to all the cells and then change the font color to white to "hide" them. Then I did a SUMIFS, a SUMIF probably would have worked also...HTH....
    Attached Files Attached Files
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    04-02-2014
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Matching, IF, SUMIFS, ISSUE- Help

    thank you for your reply.

    This doesn't work for my situation for the number of entries under each bucket can be a different size and the bucket arrangement can change. I would like to avoid typing in US.

  4. #4
    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,929

    Re: Matching, IF, SUMIFS, ISSUE- Help

    The way I would approach this is with a helper column to fill in the "missing" bucket names.

    In H4, copied down...
    =IF(C4="",H3,C4)

    Then in O4, copied down...
    =SUMIF($H$4:$H$24,"*"&N4,$G$5:$G$24)
    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

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Matching, IF, SUMIFS, ISSUE- Help

    first unmerge the cells
    or you could use copy paste below in O4 hold control and shift together and then hit enter to make it array formula and then drag down
    =SUM(INDIRECT("F"&MATCH(N4,SUBSTITUTE($C$1:$C$100,"Bucket: ",""),0)+1):INDIRECT("F"&MATCH(TRUE,INDIRECT("F"&MATCH(N4,SUBSTITUTE($C$1:$C$100,"Bucket: ",""),0)+1&":F100")="",0)+MATCH(N4,SUBSTITUTE($C$1:$C$100,"Bucket: ",""),0)+1-2))
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  6. #6
    Registered User
    Join Date
    04-02-2014
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Matching, IF, SUMIFS, ISSUE- Help

    FDibbins! that did it! Thanks

  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,929

    Re: Matching, IF, SUMIFS, ISSUE- Help

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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. SUMIFS Formula Issue
    By keithd203 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2013, 04:15 PM
  2. [SOLVED] Sumif() and Sumifs() Issue/Question
    By Consagrado in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2013, 09:13 AM
  3. Sorting/Matching Issue
    By Davethe in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2012, 06:17 PM
  4. Issue with Sumifs Function
    By ExcelFinWizzard in forum Excel General
    Replies: 11
    Last Post: 07-09-2012, 03:31 PM
  5. vlookup (matching issue)
    By jw01 in forum Excel General
    Replies: 4
    Last Post: 08-19-2011, 10:28 AM

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