Sumifs when starting with a number

cmacnab

Board Regular
Joined
Jun 24, 2013
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hi, I'm trying to sum a lot of data based on date (over 7,000 lines) and based on a number and having problems. Dates in column A, amounts in column B and type in column 3. The type can vary but starts with the same number. How can I sum these? Please note, 3 and 30 are not the same thing so can't be summed together however the others can be summed by 4 or 5 as they are the same. Thanks in advance.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]07/01/2018[/TD]
[TD]13.00[/TD]
[TD]41[/TD]
[/TR]
[TR]
[TD]07/01/2018[/TD]
[TD]14.00[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]07/01/2018[/TD]
[TD]15.00[/TD]
[TD]43[/TD]
[/TR]
[TR]
[TD]07/01/2018[/TD]
[TD]16.00[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]07/01/2018[/TD]
[TD]17.00[/TD]
[TD]56[/TD]
[/TR]
[TR]
[TD]07/01/2018[/TD]
[TD]18.00[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]07/01/2018[/TD]
[TD]19.00[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]07/02/2018[/TD]
[TD]20.00[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]07/02/2018[/TD]
[TD]21.00[/TD]
[TD]41[/TD]
[/TR]
[TR]
[TD]07/02/2018[/TD]
[TD]22.00[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]07/02/2018[/TD]
[TD]23.00[/TD]
[TD]56[/TD]
[/TR]
[TR]
[TD]07/02/2018[/TD]
[TD]24.00[/TD]
[TD]42[/TD]
[/TR]
[TR]
[TD]07/02/2018[/TD]
[TD]25.00[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]07/02/2018[/TD]
[TD]26.00[/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Pivot table?

[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
H​
[/td][td="bgcolor:#C0C0C0"]
I​
[/td][td="bgcolor:#C0C0C0"]
J​
[/td][td="bgcolor:#C0C0C0"]
K​
[/td][td="bgcolor:#C0C0C0"]
L​
[/td][td="bgcolor:#C0C0C0"]
M​
[/td][td="bgcolor:#C0C0C0"]
N​
[/td][td="bgcolor:#C0C0C0"]
O​
[/td][td="bgcolor:#C0C0C0"]
P​
[/td][td="bgcolor:#C0C0C0"]
Q​
[/td][td="bgcolor:#C0C0C0"]
R​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td="bgcolor:#DCE6F1"]Sum of Amt[/td][td="bgcolor:#DCE6F1"]Column Labels[/td][td="bgcolor:#DCE6F1"][/td][td="bgcolor:#DCE6F1"][/td][td="bgcolor:#DCE6F1"][/td][td="bgcolor:#DCE6F1"][/td][td="bgcolor:#DCE6F1"][/td][td="bgcolor:#DCE6F1"][/td][td="bgcolor:#DCE6F1"][/td][td="bgcolor:#DCE6F1"][/td][td="bgcolor:#DCE6F1"][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td="bgcolor:#DCE6F1"]Row Labels[/td][td="bgcolor:#DCE6F1"]
3
[/td][td="bgcolor:#DCE6F1"]
5
[/td][td="bgcolor:#DCE6F1"]
30
[/td][td="bgcolor:#DCE6F1"]
40
[/td][td="bgcolor:#DCE6F1"]
41
[/td][td="bgcolor:#DCE6F1"]
42
[/td][td="bgcolor:#DCE6F1"]
43
[/td][td="bgcolor:#DCE6F1"]
50
[/td][td="bgcolor:#DCE6F1"]
56
[/td][td="bgcolor:#DCE6F1"]Grand Total[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]7/1/2018[/td][td]
19​
[/td][td][/td][td]
18​
[/td][td]
14​
[/td][td]
13​
[/td][td][/td][td]
15​
[/td][td]
16​
[/td][td]
17​
[/td][td]
112​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]7/2/2018[/td][td]
20​
[/td][td]
22​
[/td][td]
26​
[/td][td]
25​
[/td][td]
21​
[/td][td]
24​
[/td][td][/td][td][/td][td]
23​
[/td][td]
161​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td="bgcolor:#DCE6F1"]Grand Total[/td][td="bgcolor:#DCE6F1"]
39
[/td][td="bgcolor:#DCE6F1"]
22
[/td][td="bgcolor:#DCE6F1"]
44
[/td][td="bgcolor:#DCE6F1"]
39
[/td][td="bgcolor:#DCE6F1"]
34
[/td][td="bgcolor:#DCE6F1"]
24
[/td][td="bgcolor:#DCE6F1"]
15
[/td][td="bgcolor:#DCE6F1"]
16
[/td][td="bgcolor:#DCE6F1"]
40
[/td][td="bgcolor:#DCE6F1"]
273
[/td][/tr]
[/table]
 
Upvote 0
No, too complicated for what I need. I need a summary of deposits by date and type for a month. I've done it before but I can't remember how.
 
Upvote 0
[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][td="bgcolor:#C0C0C0"]
E​
[/td][td="bgcolor:#C0C0C0"]
F​
[/td][td="bgcolor:#C0C0C0"]
G​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td="bgcolor:#F3F3F3"]
Date
[/td][td="bgcolor:#F3F3F3"]
Amt
[/td][td="bgcolor:#F3F3F3"]
Type
[/td][td="bgcolor:#F3F3F3"]
[/td][td="bgcolor:#F3F3F3"]
Type
[/td][td="bgcolor:#F3F3F3"]
Amt
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
7/1/2018​
[/td][td]
13​
[/td][td]
41​
[/td][td][/td][td]
3​
[/td][td]
39​
[/td][td]F2: =SUMIF($C$2:$C$15, E2, $B$2:$B$15)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
7/1/2018​
[/td][td]
14​
[/td][td]
40​
[/td][td][/td][td]
5​
[/td][td]
22​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]
7/1/2018​
[/td][td]
15​
[/td][td]
43​
[/td][td][/td][td]
30​
[/td][td]
44​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]
7/1/2018​
[/td][td]
16​
[/td][td]
50​
[/td][td][/td][td]
40​
[/td][td]
39​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
6​
[/td][td]
7/1/2018​
[/td][td]
17​
[/td][td]
56​
[/td][td][/td][td]
41​
[/td][td]
34​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
7​
[/td][td]
7/1/2018​
[/td][td]
18​
[/td][td]
30​
[/td][td][/td][td]
42​
[/td][td]
24​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
8​
[/td][td]
7/1/2018​
[/td][td]
19​
[/td][td]
3​
[/td][td][/td][td]
43​
[/td][td]
15​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
9​
[/td][td]
7/2/2018​
[/td][td]
20​
[/td][td]
3​
[/td][td][/td][td]
50​
[/td][td]
16​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
10​
[/td][td]
7/2/2018​
[/td][td]
21​
[/td][td]
41​
[/td][td][/td][td]
56​
[/td][td]
40​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
11​
[/td][td]
7/2/2018​
[/td][td]
22​
[/td][td]
5​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
12​
[/td][td]
7/2/2018​
[/td][td]
23​
[/td][td]
56​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
13​
[/td][td]
7/2/2018​
[/td][td]
24​
[/td][td]
42​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
14​
[/td][td]
7/2/2018​
[/td][td]
25​
[/td][td]
40​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
15​
[/td][td]
7/2/2018​
[/td][td]
26​
[/td][td]
30​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]
 
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD="bgcolor: #C0C0C0"][/TD]
[TD="bgcolor: #C0C0C0"]
A​
[/TD]
[TD="bgcolor: #C0C0C0"]
B​
[/TD]
[TD="bgcolor: #C0C0C0"]
C​
[/TD]
[TD="bgcolor: #C0C0C0"]
D​
[/TD]
[TD="bgcolor: #C0C0C0"]
E​
[/TD]
[TD="bgcolor: #C0C0C0"]
F​
[/TD]
[TD="bgcolor: #C0C0C0"]
G​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
1​
[/TD]
[TD="bgcolor: #F3F3F3"]
Date
[/TD]
[TD="bgcolor: #F3F3F3"]
Amt
[/TD]
[TD="bgcolor: #F3F3F3"]
Type
[/TD]
[TD="bgcolor: #F3F3F3"][/TD]
[TD="bgcolor: #F3F3F3"]
Type
[/TD]
[TD="bgcolor: #F3F3F3"]
Amt
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
2​
[/TD]
[TD]
7/1/2018​
[/TD]
[TD]
13​
[/TD]
[TD]
41​
[/TD]
[TD][/TD]
[TD]
3​
[/TD]
[TD]
39​
[/TD]
[TD]F2: =SUMIF($C$2:$C$15, E2, $B$2:$B$15)[/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
3​
[/TD]
[TD]
7/1/2018​
[/TD]
[TD]
14​
[/TD]
[TD]
40​
[/TD]
[TD][/TD]
[TD]
5​
[/TD]
[TD]
22​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
4​
[/TD]
[TD]
7/1/2018​
[/TD]
[TD]
15​
[/TD]
[TD]
43​
[/TD]
[TD][/TD]
[TD]
30​
[/TD]
[TD]
44​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
5​
[/TD]
[TD]
7/1/2018​
[/TD]
[TD]
16​
[/TD]
[TD]
50​
[/TD]
[TD][/TD]
[TD]
40​
[/TD]
[TD]
39​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
6​
[/TD]
[TD]
7/1/2018​
[/TD]
[TD]
17​
[/TD]
[TD]
56​
[/TD]
[TD][/TD]
[TD]
41​
[/TD]
[TD]
34​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
7​
[/TD]
[TD]
7/1/2018​
[/TD]
[TD]
18​
[/TD]
[TD]
30​
[/TD]
[TD][/TD]
[TD]
42​
[/TD]
[TD]
24​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
8​
[/TD]
[TD]
7/1/2018​
[/TD]
[TD]
19​
[/TD]
[TD]
3​
[/TD]
[TD][/TD]
[TD]
43​
[/TD]
[TD]
15​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
9​
[/TD]
[TD]
7/2/2018​
[/TD]
[TD]
20​
[/TD]
[TD]
3​
[/TD]
[TD][/TD]
[TD]
50​
[/TD]
[TD]
16​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
10​
[/TD]
[TD]
7/2/2018​
[/TD]
[TD]
21​
[/TD]
[TD]
41​
[/TD]
[TD][/TD]
[TD]
56​
[/TD]
[TD]
40​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
11​
[/TD]
[TD]
7/2/2018​
[/TD]
[TD]
22​
[/TD]
[TD]
5​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
12​
[/TD]
[TD]
7/2/2018​
[/TD]
[TD]
23​
[/TD]
[TD]
56​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
13​
[/TD]
[TD]
7/2/2018​
[/TD]
[TD]
24​
[/TD]
[TD]
42​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
14​
[/TD]
[TD]
7/2/2018​
[/TD]
[TD]
25​
[/TD]
[TD]
40​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
15​
[/TD]
[TD]
7/2/2018​
[/TD]
[TD]
26​
[/TD]
[TD]
30​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

That would only work for that line. I need a sum for several numbers together. For example, lines 5, 6, 7 & 8 would all be summed together to equal 112.00
 
Upvote 0
Done guessing. Please provide an example with desired results.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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