+ Reply to Thread
Results 1 to 10 of 10

Sum Mulitple Column based on the multiple Conditions using sumifs function

  1. #1
    Registered User
    Join Date
    12-16-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2003, 2007
    Posts
    8

    Sum Mulitple Column based on the multiple Conditions using sumifs function

    Hi,

    I am new to this forum.

    Can somebody help me to solve the following problem.

    I have the following Data

    A B C D E F G H I J K
    1 JOB NO TOTAL AMT BOQ# QTY AMT BOQ# QTY AMT BOQ# QTY AMT

    2 ABIR-0125 11000 10 2 2000 20 5 1000 30 10 8000

    3 ABIR-0120 10000 30 2 2000 20 5 1000 10 10 7000

    4 ABIR-0125 1000 20 2 200 10 5 800


    Now from above data I want total qty and total amount for Job# ABIR-0125 & BOQ#10 which should be
    Qty-->>> 7
    Amt -->>> 2800

    I have tried Sumifs function but it gives me total for one set of data(BOQ#, Qty, Amt) but i have multiple set of data. For getting the correct answer I have to add sumifs for each set of column which will become very long

    Please if somebody can give me the simple function to add . I am using excel 2007

    I am enclosing the sample file for reference

    Thanks & Regards,

    Kamal
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    Hi Kamal,

    welcome to the forum.
    Can you highlight what all cells you are considering for the results ? thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    12-16-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2003, 2007
    Posts
    8

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    Dear Dilip,

    Data which I am considering for result is A1:K4

    Regards,

    Kamal

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    Thats nice but which all cell will lead to 7 and 2800 as you mentioned in the sheet ?

    So, I believe you need 10,7,2800 as the output and I want to know how you are arriving at these results ?

    Regards,
    DILIPandey
    <click on below 'star' if this helps>

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    hi Kamal, welcome to the forum. i hope you don't have many columns in your actual file, cause this is not an elegant way. i just repeated the SUMIFS:
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Registered User
    Join Date
    12-16-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2003, 2007
    Posts
    8

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    Thanks for the reply with a solution but I don't want to repeat sumifs function as I have so many columns.

    Regards,

    Kamal

  7. #7
    Registered User
    Join Date
    12-16-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2003, 2007
    Posts
    8

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    Dear Dilip,


    10 is not the output it is part of the condition.

    Output which I need is 7 for qty column and 2800 for amt column

    7 comes through addition of cell D2 AND G4 in which both condition apply i.e. BOQ = 10 and Job# ABIR-0125
    and in the same way

    2800 through addition of cell E2 and H4

    Regards,

    Kamal

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    Quote Originally Posted by JEETKAMALARORA View Post
    Thanks for the reply with a solution but I don't want to repeat sumifs function as I have so many columns.

    Regards,

    Kamal
    Short & Elegant version:

    B11: =SUMPRODUCT(($A2:$A4=$B9)*($C1:$I1=$A10)*($C2:$I4=$A11)*D2:J4)

    copy across to C11.

    Here is the attached
    Attached Files Attached Files
    Last edited by Teethless mama; 12-20-2012 at 03:07 AM.

  9. #9
    Registered User
    Join Date
    12-16-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2003, 2007
    Posts
    8

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    Thanks a lot. It works fine for me.

    Regards,

    Kamal

  10. #10
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Sum Mulitple Column based on the multiple Conditions using sumifs function

    You're Welcome!

+ 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