+ Reply to Thread
Results 1 to 6 of 6

sum formula to match text in row header and column and sum matching criterion?

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    sum formula to match text in row header and column and sum matching criterion?

    Hello,
    I have been trying to sum monetary data by matching text in a heading as well as a specific term in column M and based on the matches obtain the summed monetary amounts in the particular assigned rows and column(s). I've tried these two formulas which I found online but they don't seem to work and give me the dreaded #VALUE. I've tried these formulas:
    Please Login or Register  to view this content.
    &
    Please Login or Register  to view this content.
    Would really appreciate your help & expertise! Thank you!
    Attached Files Attached Files
    Last edited by lilsnoop; 11-04-2020 at 10:02 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: sum formula to match text in row header and column and sum matching criterion?

    According to your attemt, try in H23:

    Please Login or Register  to view this content.
    Last edited by bebo021999; 11-04-2020 at 09:58 PM. Reason: 1 more criteria added
    Quang PT

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: sum formula to match text in row header and column and sum matching criterion?

    Thanks bebo021999! That formula did the trick! Really appreciate your help!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: sum formula to match text in row header and column and sum matching criterion?

    You are trying to make it too complicated, as the last items in your SUMIFS formula are not needed. Use this in H23:

    =SUMIFS($D$6:$D$22,$M$6:$M$22,G23)+SUMIFS($H$6:$H$22,$M$6:$M$22,G23)+SUMIFS($I$6:$I$22,$M$6:$M$22,G23)

    then copy down as required.

    Hope this helps.

    Pete

  5. #5
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: sum formula to match text in row header and column and sum matching criterion?

    Thanks Pete_UK! Your formula works excellent too! Love seeing the various options!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: sum formula to match text in row header and column and sum matching criterion?

    You're welcome, and thanks for the rep.

    Pete

+ 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. [SOLVED] matching specific words in text string to column header
    By macrorookie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2020, 02:53 PM
  2. Replies: 5
    Last Post: 01-30-2018, 07:32 AM
  3. Helped needed to index match row header, column header, and sheet
    By vw103604 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2016, 12:37 PM
  4. [SOLVED] Help with VBA code to match item numbers in column with header then copy cells to matching
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2015, 09:34 AM
  5. [SOLVED] Dynamically match Column header text to sum column on another worksheet
    By swiftrain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2015, 04:50 PM
  6. Replies: 1
    Last Post: 10-05-2013, 03:35 PM
  7. Help with VBA to insert text for when cells matching a criterion
    By mc_chopski in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2012, 07:46 AM

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