excel sum two conditions column

manojxls

New Member
Joined
Dec 21, 2017
Messages
32
Office Version
  1. 365
  2. 2007
  3. 2003 or older
Platform
  1. Windows
[TABLE="width: 346"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]bill no[/TD]
[TD]rate[/TD]
[TD]amount[/TD]
[TD]required sum[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]100[/TD]
[TD]12[/TD]
[TD]300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]12[/TD]
[TD]245[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]100[/TD]
[TD]5[/TD]
[TD]334[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]103[/TD]
[TD]12[/TD]
[TD]456[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]103[/TD]
[TD]5[/TD]
[TD]166[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]105[/TD]
[TD]5[/TD]
[TD]321[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]105[/TD]
[TD]5[/TD]
[TD]766[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]105[/TD]
[TD]12[/TD]
[TD]776[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]105[/TD]
[TD]12[/TD]
[TD]978[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 282"]
<colgroup><col span="3"><col></colgroup><tbody></tbody>[/TABLE]

I want the required sum =SUMIF(A2:A10,A2 andb2,C2:C10) condition which check the bill and rate wise sum like result on d2 will 545 , d3 will 545, d4 will be 334.

i have a large data but want formula to solve.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Have a nice day ;)

=SUMIFS($C$2:$C$10,$A$2:$A$10,$A2,$B$2:$B$10,$B2)
 
Last edited by a moderator:
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[TD]
F
[/TD]
[TD]
G
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]bill no[/TD]
[TD]rate[/TD]
[TD]amount[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]
100​
[/TD]
[TD]
12​
[/TD]
[TD]
300​
[/TD]
[TD][/TD]
[TD][/TD]
[TD]
12​
[/TD]
[TD]
5​
[/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]
100​
[/TD]
[TD]
12​
[/TD]
[TD]
245​
[/TD]
[TD][/TD]
[TD]
100​
[/TD]
[TD]
545​
[/TD]
[TD]
334​
[/TD]
[/TR]
[TR]
[TD]
4
[/TD]
[TD]
100​
[/TD]
[TD]
5​
[/TD]
[TD]
334​
[/TD]
[TD][/TD]
[TD]
103​
[/TD]
[TD]
456​
[/TD]
[TD]
166​
[/TD]
[/TR]
[TR]
[TD]
5
[/TD]
[TD]
103​
[/TD]
[TD]
12​
[/TD]
[TD]
456​
[/TD]
[TD][/TD]
[TD]
105​
[/TD]
[TD]
1754​
[/TD]
[TD]
1087​
[/TD]
[/TR]
[TR]
[TD]
6
[/TD]
[TD]
103​
[/TD]
[TD]
5​
[/TD]
[TD]
166​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
7
[/TD]
[TD]
105​
[/TD]
[TD]
5​
[/TD]
[TD]
321​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
8
[/TD]
[TD]
105​
[/TD]
[TD]
5​
[/TD]
[TD]
766​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
9
[/TD]
[TD]
105​
[/TD]
[TD]
12​
[/TD]
[TD]
776​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
10
[/TD]
[TD]
105​
[/TD]
[TD]
12​
[/TD]
[TD]
978​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

f3=SUMIFS($C$2:$C$10,$A$2:$A$10,$E3,$B$2:$B$10,F$2) copy across and down

PIVOT TABLE IS BEST SOLUTION


 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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