• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

If condition with Sumifs...help

SG

Member
Hi Experts,

I want to sum the values on basis of the status.I know it would get solved through if condition but still didn't got the exact match of formulas to get the results. Please help me with the solution. PFA file for reference.
 

Attachments

  • Book1.xlsx
    9.1 KB · Views: 7
Hi SG,

DO you want say for ex.

For Neha---HD----Completed HD-----Not Completed
---SD-----Completed SD-----Not Completed

If so, why not add an extra criteria range, in your present formula covering column A of Sheet1???

Regards,
 
Nopes....actually i want that for Neha..in type "HD", if the status is completed or not completed or both, then it would sum that amount otherwise if any other status comes up, then it wouldn't add that amount.
 
@SG

Try in B2 on summary sheet and copy right and down.

=SUMPRODUCT(($A2=Sheet1!$B$2:$B$28)*(Sheet1!$C$2:$C$28=Summary!B$1)*(Sheet1!$A$2:$A$28=TRANSPOSE(Summary!$F$2:$F$3))*(Sheet1!$D$2:$D$28))

Note this is an array formula so must be entered with Ctrl+Shift+Enter.

Just check the results.

Regards,
 
Hello SG,

You already have SUMIFS in your file, just add one more range Sheet1!$A:$A,$F$2:$F$3 & summed with SUMPRODUCT

=SUMPRODUCT(SUMIFS(Sheet1!$D:$D,Sheet1!$C:$C,B$1,Sheet1!$B:$B,$A2,Sheet1!$A:$A,$F$2:$F$3))
 
Another approach..
Condition
Crate a condition table like below.
1.PNG

Now in A1 use formula as ..
=DSUM(Sheet1!A1:D28,"Amt",Summary!E1:G3)

Now select A1 to C6.
Click Data > What If Analysis > Data Table

3.PNG
Use Row Input Cell as G3 & Column Input cell as F3.
And you are done..

PS: Obviously.. it not better than SUMIF master Haseeb A's formula.. but just want a fusion of DATA TABLE & DSUM two rarely used feature of excel :)
 

Attachments

  • Sumproduct vs Data Table.xlsx
    10 KB · Views: 9
Last edited:
Back
Top