Sum if not null

  • Thread starter Thread starter Fred Smith
  • Start date Start date
F

Fred Smith

I would like to sum all cells which are non-blank (same as selecting non-blank
cells in a filter). I tried

=sumif(A:A,"<>""""",B:B)

but Excel didn't think much of it.

What is the correct criteria for 'not null'?
 
Fred,
Perhaps try something like:
=SUMPRODUCT(--(A1:A100<>""),B1:B100)
Adapt the ranges to suit. We can't use entire col refs in SP.
 
=SUMIF(A:A,"<>",B:B)

Above doesn't seem to return correctly if col A contained null strings: "",
which was what I thought Fred was looking for. That's why I suggested the
good, old Sumproduct way <g>.

---
 
I see what you mean. Good call. I'll have to try to remember that
particular "feature". <g>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Sumproduct 0
Nested IF / SUMIF statements 2
SUMIF and non-blank 7
Adding some list items 1
Sum up 2 or more columns under same SUMIF criteria 2
SUMIFS with Dates 1
Dynamic Sum-if function 5
SUMIF Formula Problem 9

Back
Top