Formula Help

Arafat

Board Regular
Joined
May 3, 2011
Messages
61
Hello Experts,

I have been working out different formulas to sum up values based on two multiple conditions and the problem being it has to add the value of the existing and the new found value. I have used sumifs but its only showing the TAX amount. please help

IRNAPM-J-50087-0415-000-1735057330004SG9999691

<tbody>
</tbody>
0

<tbody>
</tbody>
5286.02

<tbody>
</tbody>
here I want add the GST TAX matching the COL A and COLB, i.e 5286.02+370.03

<tbody>
</tbody>
IRNAPM-J-50087-0415-000-1735057330004SG9999887

<tbody>
</tbody>
0

<tbody>
</tbody>
868.49

<tbody>
</tbody>
here I want add the GST TAX matching the COL A and COLB, i.e 868.49+60.79

<tbody>
</tbody>
IRNAPM-J-50087-0415-000-1735057330004SG9999691

<tbody>
</tbody>
GSTTax

<tbody>
</tbody>
370.03

<tbody>
</tbody>
IRNAPM-J-50087-0415-000-1735057330004SG9999887

<tbody>
</tbody>
GSTTax

<tbody>
</tbody>
60.79

<tbody>
</tbody>

<tbody>
</tbody>

<tbody>
</tbody>
 
Think i was overcomplicating it! MirakelMan is correct just use sumif

=IF(B1=0,SUMIF($A$1:$A$30,A1,$C$1:$C$30),"")

Or if B needs to be checked just for "GSTTax" then

=IF(B1=0,C1+SUMPRODUCT(($A$1:$A$20=A1)*($B$1:$B$20="GSTTax")*($C$1:$C$20)),"")

or

=IF(B1=0,C1+SUMIFS($C$1:$C$30,$A$1:$A$30,A1,$B$1:$B$30,"GSTTax"),"")
 
Last edited:
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Thank you gaz_chops and Mirakel man. Its working perfectly fine and correctly :) You make our life easier.
 
Upvote 0
You're welcome, just beware of using the full column reference as it can slow things down, always try and limit the range to your actual data.
 
Upvote 0

Forum statistics

Threads
1,216,027
Messages
6,128,381
Members
449,445
Latest member
JJFabEngineering

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top