Formula error or usage error?

Capsaicin Burn

New Member
Joined
Jan 26, 2018
Messages
38
I'm trying to total some columns. However, I only want the column totals of the rows where columns B & C are not empty. I want the totals NOT to include any rows where columns B & C are empty. I hope I'm asking this question correctly. Any help would be greatly appreciated.



Excel 2010
ABCDEFGH
1#LengthHeightSq FtAvg ThicknessCFPerchYards
213572452.375581.87523.27521.55093
324062402.12551020.418.88889
43104401.625652.62.407407
5434121.62519.50.780.722222
652481.625130.520.481481
7644161.625261.040.962963
8755251.87546.8751.8751.736111
9800.625000
10900.625000
111000.625000
12Using formula below598.8751275.1251312.7497.2446.75
13< =SUMIF(B4:C13,"<>",D4:D13) >
14Minus the first and last characters
15
16Summing rows 2 - 1158612.8751262.2550.4946.75
17
18I only want the column totals of the rows where columns B & C are not empty

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet4

Worksheet Formulas
CellFormula
A1#
B1Length
C1Height
D1Sq Ft
E1Avg Thickness
F1CF
G1Perch
H1Yards
A21
B235
C27
D2245
E22.375
F2581.875
G223.275
H221.5509259259259
A32
B340
C36
D3240
E32.125
F3510
G320.4
H318.8888888888889
A43
B410
C44
D440
E41.625
F465
G42.6
H42.40740740740741
A54
B53
C54
D512
E51.625
F519.5
G50.78
H50.722222222222222
A65
B62
C64
D68
E61.625
F613
G60.52
H60.481481481481481
A76
B74
C74
D716
E71.625
F726
G71.04
H70.962962962962963
A87
B85
C85
D825
E81.875
F846.875
G81.875
H81.73611111111111
A98
B9
C9
D90
E90.625
F90
G90
H90
A109
B10
C10
D100
E100.625
F100
G100
H100
A1110
B11
C11
D110
E110.625
F110
G110
H110
D12598.875
E121275.125
F121312.74
G1297.24
H1246.75
D13
E13
F13
G13
H13
E14
F14
G14
H14
B15
C15
D15
E15
F15
G15
H15
D16586
E1612.875
F161262.25
G1650.49
H1646.75
B17
C17
D17
E17
F17
G17
H17
A12Using formula below
A13< =SUMIF(B4:C13,"<>",D4:D13) >
A14Minus the first and last characters
A15
A16Summing rows 2 - 11
A17
A18I only want the column totals of the rows where columns B & C are not empty

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try:

ABCDEFGH
1#LengthHeightSq FtAvg ThicknessCFPerchYards
213572452.375581.87523.27521.5509
324062402.12551020.418.8889
43104401.625652.62.40741
5434121.62519.50.780.72222
652481.625130.520.48148
7644161.625261.040.96296
8755251.87546.8751.8751.73611
9800.625000
10900.625000
111000.625000
1258612.8751262.2550.4946.75

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet17

Worksheet Formulas
CellFormula
D12=SUMIFS(D2:D11,$B$2:$B$11,"<>",$C$2:$C$11,"<>")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Put the formula in D12 and drag to the right. I'd guess E12 doesn't need the formula.
 
Upvote 0
Thanks very much Eric! This worked perfectly. :) Maybe one day I will understand the difference. I really do appreciate your formula and your help!
 
Upvote 0
I'm a little surprised that your formula didn't cause an error. The ranges in the "IF" functions all have to be the same size. Since your condition range was 2 columns, we needed to split it out into 2 columns, which required the SUMIFS.

In any case, I'm glad we could help. :)
 
Upvote 0
Yes, and I was going to say that right after reading your question (no really) but wanted to be sure SUMIF couldn't search a multi column range at all, even for just nonblanks. Sumproduct and {sum(if())} also work, especially if you have pre-2007 Excel versions that lack SUMIFs.
 
Upvote 0

Forum statistics

Threads
1,216,914
Messages
6,133,436
Members
449,807
Latest member
Loham Andre

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