Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default 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?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default 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.
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default 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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISNUMBER Arceedee Excel Discussion (Misc queries) 2 January 14th 09 05:09 AM
SUMPRODUCT, SUMIF, ISNUMBER?? please help Tasha Excel Discussion (Misc queries) 2 September 23rd 08 04:38 PM
ISNUMBER Tanya Excel Worksheet Functions 5 December 6th 07 04:45 PM
ISNUMBER Michael Nol Excel Worksheet Functions 1 March 22nd 06 12:29 AM
ISNUMBER RJJ Excel Worksheet Functions 8 January 4th 06 11:29 PM


All times are GMT +1. The time now is 01:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"