Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
ISNUMBER | Excel Discussion (Misc queries) | |||
SUMPRODUCT, SUMIF, ISNUMBER?? please help | Excel Discussion (Misc queries) | |||
ISNUMBER | Excel Worksheet Functions | |||
ISNUMBER | Excel Worksheet Functions | |||
ISNUMBER | Excel Worksheet Functions |