Conditional Sums

CreativeRova

New Member
Joined
Dec 12, 2013
Messages
49
Hi,

I have a spreadsheet. See below I need to count only rows that have the correct text in the same row and 1 row off.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Backs[/TD]
[TD]Paid[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Bonus[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Combos[/TD]
[TD]Paid[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Bonus[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Client 1[/TD]
[TD]Combos[/TD]
[TD]Paid[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Bonus[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Client 2[/TD]
[TD]Combos[/TD]
[TD]Paid[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Bonus[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Client 3[/TD]
[TD]Backs[/TD]
[TD]Paid[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Bonus[/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]


I have asked before but am yet to get an answer. So in cell D1 I need to sum "paid" only from D6 downward if D6 = "backs" etc. Then the same for "bonus" if D = "Backs" then add up the "bonus" for that client with all the occurrences of this.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try these:
D1 =SUMIFS($D$6:$D$11,$B$6:$B$11,$B1,$C$6:$C$11,$C1)
D2 =SUMIFS($D$6:$D$11,$B$5:$B$10,$B1,$C$6:$C$11,$C2)
D3 =SUMIFS($D$6:$D$11,$B$6:$B$11,$B3,$C$6:$C$11,$C3)
D4 =SUMIFS($D$6:$D$11,$B$5:$B$10,$B3,$C$6:$C$11,$C4)
 
Upvote 0
Hi Tetra,

that does work thanks, except for the bonus sum. it requires me to put in "backs" in B7 B9 etc. If that is the only way then fine.
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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