ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   using SUMIF with ISNUMBER (https://www.excelbanter.com/excel-worksheet-functions/224827-using-sumif-isnumber.html)

Bob Arnett

using SUMIF with ISNUMBER
 
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?

Dave Peterson

using SUMIF with ISNUMBER
 
=sumproduct(--(isnumber(c139:c152)),d139:d152)

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html


Bob Arnett wrote:

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?


--

Dave Peterson

Mike H

using SUMIF with ISNUMBER
 
Bob,

try this

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

Mike

"Bob Arnett" wrote:

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?


T. Valko

using SUMIF with ISNUMBER
 
Try this:

=SUMIF(C139:C152,"<1E100",D139:D152)


--
Biff
Microsoft Excel MVP


"Bob Arnett" wrote in message
...
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?




Ashish Mathur[_2_]

using SUMIF with ISNUMBER
 
Hi,

You can also try this.

=SUMIF(D7:D9,"=-9.999E307",E7:E9)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Bob Arnett" wrote in message
...
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?



Shane Devenshire[_3_]

using SUMIF with ISNUMBER
 
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.

Bob Arnett

using SUMIF with ISNUMBER
 
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.

"Bob Arnett" wrote:

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?



All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com