using SUMIF with ISNUMBER

B

Bob Arnett

I have a column of figures (D139:D152) and want to add only the numbers that
are next to a cell (C139:C152) with a numerical value (not text). So I used
the formula:

=SUMIF(C139:C152,isnumber,D139:D152)

Since I'm not familiar with SUMIF syntax, I've also tried other variaitions
like:

=SUMIF(C139:C152,isnumber(),D139:D152)
=SUMIF(C139:C152,"isnumber",D139:D152)
=SUMIF(C139:C152,"=isnumber",D139:D152)
=SUMIF(C139:C152,"=isnumber()",D139:D152)
=SUMIF(C139:C152,"isnumber()",D139:D152)

None of these work so what is the proper way of writing this formula?
 
S

Shane Devenshire

Hi,

Here is yet another approach:

=SUMIF(D1:D17,">="&MIN(D1:D17),C1:C17)
or
=SUMIF(D1:D17,"<="&MAX(D1:D17),C1:C17)

If all the cells contain number or text and no blanks or errors, then you
can use

=SUMIF(D1:D17,"<>*",C1:C17)


Adjust the references to suit.

You can simplify Bob's suggestion to:

=SUMPRODUCT(--ISNUMBER(C139:C152),D139:D152)

And just in case you don't follow Biff's or Ashish's suggestions, they are
testing for numbers by seeing if the value of the cells are above a very
small number or below a very large number.
 
B

Bob Arnett

Thanks for all the good suggestions. I even have a choice now. The
=SUMPRODUCT(--ISNUMBER(C123:C136),(D123:D136)) works well and so does the
min/max suggestion. Thanks for the tips.
 

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


Top