+ Reply to Thread
Results 1 to 6 of 6

easier way to sumif

Hybrid View

chriswrcg easier way to sumif 06-15-2022, 10:31 AM
JohnTopley Re: easier way to sumif 06-15-2022, 10:38 AM
nick.williams Re: easier way to sumif 06-15-2022, 10:38 AM
wk9128 Re: easier way to sumif 06-15-2022, 10:55 AM
oeldere Re: easier way to sumif 06-15-2022, 01:55 PM
wk9128 Re: easier way to sumif 06-15-2022, 07:08 PM
  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    541

    easier way to sumif

    I have a data grouping that I need to calculate the total sum. There is multiple criteria to consider, and although I have found a way to do the calculation, there has to be a simpler way.

    The criteria includes a date column, number column, and a column that contains multiple two letter codes. The solution I found Is in cell L3 but it is very convoluted and unnecessarily long. A quick solution to the two letter codes in multiple match issue is in L4 but it does not take into account the date and number code criteria. How can I combine the solution in L4 with the other two criteria in a simpler way?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2508 Build 16.0.19127.20082) 64-bit
    Posts
    31,694

    Re: easier way to sumif

    Try

    =SUMPRODUCT(SUMIFS($D$1:$D$10,$A$1:$A$10,$L$1,$E$1:$E$10,$M$1,$C$1:$C$10,$H$1:$K$1))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: easier way to sumif

    One option:

    =SUM(IF(C1:C10=H1:K1,IF((A1:A10=L1)*(E1:E10=M1),D1:D10,0),0))

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2507 and WPS V2024(12.1.0.18543)
    Posts
    4,129

    Re: easier way to sumif

    Cell L3 formula
    Formula: copy to clipboard
    =SUM(SUMIFS(D:D,A:A,L1,E:E,M1,C:C,H1:K1))


    OR

    Formula: copy to clipboard
    =SUMPRODUCT((A1:A10=L1)*(E1:E10=M1)*(C1:C10=H1:K1)*D1:D10)
    Last edited by wk9128; 06-15-2022 at 11:16 AM.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: easier way to sumif

    Maybe with a pivot table.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2507 and WPS V2024(12.1.0.18543)
    Posts
    4,129

    Re: easier way to sumif

    @chriswrcg You're Welcome. Glad to help . Thank You for the feedback and rep.

+ 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. easier sumif forumla
    By bjbboats in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2015, 06:12 AM
  2. Looking for an easier way
    By sweaterman in forum Excel General
    Replies: 4
    Last Post: 02-03-2015, 01:05 AM
  3. [SOLVED] an easier SUMIF??
    By burnsie in forum Excel General
    Replies: 2
    Last Post: 03-25-2014, 06:51 AM
  4. Easier way to do this
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-26-2006, 02:40 PM
  5. [SOLVED] Easier Way to do it?
    By Kurt Barr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2006, 02:25 PM
  6. Is there an easier way?
    By wmaughan in forum Excel General
    Replies: 5
    Last Post: 12-27-2005, 07:10 PM
  7. [SOLVED] Is there an easier way to do this, SUMIF() question
    By Adam Kroger in forum Excel General
    Replies: 6
    Last Post: 12-15-2005, 01:40 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