+ Reply to Thread
Results 1 to 5 of 5

Sum data with multiple criteria (column & row)

  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    Riyadh Saudi
    MS-Off Ver
    Excel 2007
    Posts
    28

    Sum data with multiple criteria (column & row)

    Hi to all, please help provide the formula to sum data with multiple criteria as below

    1. Component in column M must match in column A
    2. Date in row 2 (column B~J) must be within the date range specified in N1~T2
    3. Sum values are in B3~J15


    Expected outputs are highlighted in green on attached file.


    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sum data with multiple criteria (column & row)

    How about in N3 ..
    =SUMIFS($B3:$J3,$B$2:$J$2,">="&N$1,$B$2:$J$2,"<="&N$2)
    and drag down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    07-09-2012
    Location
    Riyadh Saudi
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Sum data with multiple criteria (column & row)

    Hi Ace, thanks for the help. It works since the sum values are within a row like B3~J3 but when I use B3~J15 it gives #VALUE! I need to use the whole sum range B3~J15 because column A & column M may not be exactly alike if given with more data.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sum data with multiple criteria (column & row)

    In that case use

    =SUMIFS(INDEX($B$2:$J$15,MATCH($M3,$A$2:$A$15,0),),$B$2:$J$2,">="&N$1,$B$2:$J$2,"<="&N$2)

  5. #5
    Registered User
    Join Date
    07-09-2012
    Location
    Riyadh Saudi
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Sum data with multiple criteria (column & row)

    hi ace, that's great. it did work. thanks

+ 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