Sumif not blank

par60056

Well-known Member
Joined
Jul 26, 2012
Messages
1,581
Office Version
  1. 2011
  2. 2010
Platform
  1. Windows
  2. MacOS
I know this is easy and I just can't find the right way.

I want to sum J if C is not blank.

I know I can sum it is it IS blank with:
=sumif(C1:C1000,"",J1:j1000)

But I can't figure out how to specify the condition <>""
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try

=SUMIF(C1:C1000,"<>",J1:J1000)


However, this only works for TRUELY blank/empty cells in column C.
It will not consider a formula returning "" as blank.
 
Upvote 0
try cell EZ1 - it must be blank - in the formula =countif(A1:A10,<>"") should count the non blanks
 
Upvote 0
21
31
1
41
51
61
1
71
81
91
8
=SUMPRODUCT((A1:A10<>"")*(B1:B10))
do it the old way lol

<colgroup><col width="64" span="8" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Thank you Jon. That was it. I tried <>"" and it didn't like it.
 
Upvote 0

Forum statistics

Threads
1,214,572
Messages
6,120,306
Members
448,955
Latest member
Dreamz high

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