Challenge: Sum cells in one column when adjacent cells are not blank

losamfr17

Board Regular
Joined
Jun 10, 2016
Messages
149
Good morning,

My goal is to sum cells in column 2018 only when there are non blank adjacent cells in in column 2019.
Can you think of a formula to do that? Do I need to create a new formula in VBA?

Thank you in advance.

Day20192018% Chg
Mon504025%
Tue
504025%
Wed504025%
Thu40
Fri40
Sat40
Sun40
Cum Total Week 115012025%

<tbody>
</tbody>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
A
B
C
D
1
Day
2019​
2018​
% Chg
2
Mon
50​
40​
0.25​
3
Tue
50​
40​
0.25​
4
Wed
50​
40​
0.25​
5
Thu
40​
6
Fri
40​
7
Sat
40​
8
Sun
9
Cum Total Week 1
150​
120​
0.25​

<tbody>
</tbody>

B9
=SUMIFS(B2:B8,C2:C8,"<>")

 
Last edited:
Upvote 0
A
B
C
D
1
Day
2019​
2018​
% Chg
2
Mon
50​
40​
0.25​
3
Tue
50​
40​
0.25​
4
Wed
50​
40​
0.25​
5
Thu
40​
6
Fri
40​
7
Sat
40​
8
Sun
9
Cum Total Week 1
150​
120​
0.25​

<tbody>
</tbody>

B9
=SUMIFS(B2:B8,C2:C8,"<>")


Then just switch the ranges for columns C
C9=SUMIFS(C2:C8,B2:B8,"<>")
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

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