Sum IF

BIGGAZ

New Member
Joined
May 16, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi, I would like to sum data in a column based on the results of 2 other columns.

Machine 1Monday3
Machine 3Wednesday2
Machine 2Monday5
Machine 1Thursday7
Machine 1Monday6

So i need to sum column C in a table

Machine 1CountMachine 2Count
MondayMonday
TuesdayTuesday
WednesdayWednesday

In B2 it needs to check for Machine 1 and Monday then add every occurence etc.

Thank You
Gary
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
How is this:

Book1
ABCD
3Machine 1Monday3
4Machine 3Wednesday2
5Machine 2Monday5
6Machine 1Thursday7
7Machine 1Monday6
8
9So i need to sum column C in a table
10
11Machine 1CountMachine 2Count
12Monday9Monday5
13Tuesday0Tuesday0
14Wednesday0Wednesday0
Sheet7
Cell Formulas
RangeFormula
B12:B14B12=SUMIFS($C$3:$C$7,$A$3:$A$7,$A$11,$B$3:$B$7,$A12)
D12:D14D12=SUMIFS($C$3:$C$7,$A$3:$A$7,$C$11,$B$3:$B$7,$C12)
 
Upvote 0
Solution
How is this:

Book1
ABCD
3Machine 1Monday3
4Machine 3Wednesday2
5Machine 2Monday5
6Machine 1Thursday7
7Machine 1Monday6
8
9So i need to sum column C in a table
10
11Machine 1CountMachine 2Count
12Monday9Monday5
13Tuesday0Tuesday0
14Wednesday0Wednesday0
Sheet7
Cell Formulas
RangeFormula
B12:B14B12=SUMIFS($C$3:$C$7,$A$3:$A$7,$A$11,$B$3:$B$7,$A12)
D12:D14D12=SUMIFS($C$3:$C$7,$A$3:$A$7,$C$11,$B$3:$B$7,$C12)
Hi,

That seems to of worked. What is the first part used for? Range B12:B14 its not in the formula.
 
Upvote 0
do you mean the first column in the formula grid under the mini workbook? The first column is the range where there formula in the 2nd column is located. There are formulas in cells B12, B13, B14, and D12, D13, D14. I just did the formulas in the empty cells under the word COUNT from your initial mini workbook post.

I'm happy you have a solution! Best wishes.
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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