Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default SUMPRODUCT to substiute array formula

I have this formula

=SUM(IF(ISERROR(A1:A100),0,A1:A100))


entered as an array formula, to sum a column even if some of the cells
contains error values.

Now I wonder if it could be done using SUMPRODUCT or any other functions, to
avoid the array formula?

Jan


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default SUMPRODUCT to substiute array formula

Try this (normally entered):

=SUMPRODUCT(--(NOT(ISERROR(A1:A100))),A1:A100)

Hope this helps.

Pete

On Feb 26, 8:42*am, "Jan Kronsell"
wrote:
I have this formula

* * * =SUM(IF(ISERROR(A1:A100),0,A1:A100))

entered as an array formula, to sum a column even if some of the cells
contains error values.

Now I wonder if it could be done using SUMPRODUCT or any other functions, to
avoid the array formula?

Jan


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default SUMPRODUCT to substiute array formula

It did not. It returnes the error value it firtst meet in the column.

Jan

Pete_UK wrote:
Try this (normally entered):

=SUMPRODUCT(--(NOT(ISERROR(A1:A100))),A1:A100)

Hope this helps.

Pete

On Feb 26, 8:42 am, "Jan Kronsell"
wrote:
I have this formula

=SUM(IF(ISERROR(A1:A100),0,A1:A100))

entered as an array formula, to sum a column even if some of the
cells contains error values.

Now I wonder if it could be done using SUMPRODUCT or any other
functions, to avoid the array formula?

Jan



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMPRODUCT to substiute array formula

Hi,

Try this

=SUMIF(A1:A100,"<1E100")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Jan Kronsell" wrote:

I have this formula

=SUM(IF(ISERROR(A1:A100),0,A1:A100))


entered as an array formula, to sum a column even if some of the cells
contains error values.

Now I wonder if it could be done using SUMPRODUCT or any other functions, to
avoid the array formula?

Jan


.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default SUMPRODUCT to substiute array formula

That worked, but can you tell me why?

Jan

Mike H wrote:
Hi,

Try this

=SUMIF(A1:A100,"<1E100")

I have this formula

=SUM(IF(ISERROR(A1:A100),0,A1:A100))


entered as an array formula, to sum a column even if some of the
cells contains error values.

Now I wonder if it could be done using SUMPRODUCT or any other
functions, to avoid the array formula?

Jan


.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMPRODUCT to substiute array formula

That worked, but can you tell me why?

Of course

1E100 is scientific notation for a very large number it represent 1 followed
by 100 zeroes. Now I guessed that your not dealing with numbers this large so
what it does is force the formula to sum omly numeric values less than this
very large number and the errors; by this criteria, are ignored.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Jan Kronsell" wrote:

That worked, but can you tell me why?

Jan

Mike H wrote:
Hi,

Try this

=SUMIF(A1:A100,"<1E100")

I have this formula

=SUM(IF(ISERROR(A1:A100),0,A1:A100))


entered as an array formula, to sum a column even if some of the
cells contains error values.

Now I wonder if it could be done using SUMPRODUCT or any other
functions, to avoid the array formula?

Jan


.



.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default SUMPRODUCT to substiute array formula

Thank you. I know about scientific notation, but did not know that using
this condition, will make Excel ignore the errors.

Jan

Mike H wrote:
That worked, but can you tell me why?


Of course

1E100 is scientific notation for a very large number it represent 1
followed by 100 zeroes. Now I guessed that your not dealing with
numbers this large so what it does is force the formula to sum omly
numeric values less than this very large number and the errors; by
this criteria, are ignored.

That worked, but can you tell me why?

Jan

Mike H wrote:
Hi,

Try this

=SUMIF(A1:A100,"<1E100")

I have this formula

=SUM(IF(ISERROR(A1:A100),0,A1:A100))


entered as an array formula, to sum a column even if some of the
cells contains error values.

Now I wonder if it could be done using SUMPRODUCT or any other
functions, to avoid the array formula?

Jan


.



.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default SUMPRODUCT to substiute array formula

Hi,

Try this

=sumif(A1:A100,"=0")+sumif(A1:A100,"<=0")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Jan Kronsell" wrote in message
...
I have this formula

=SUM(IF(ISERROR(A1:A100),0,A1:A100))


entered as an array formula, to sum a column even if some of the cells
contains error values.

Now I wonder if it could be done using SUMPRODUCT or any other functions,
to avoid the array formula?

Jan


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
Sumproduct and Array Formula StephenAccountant Excel Discussion (Misc queries) 3 April 7th 08 06:36 AM
Help with Possible Array or Sumproduct Formula Steph Excel Worksheet Functions 7 February 23rd 08 08:55 PM
substiute formula = subing something to " gcelis81 Excel Worksheet Functions 5 March 20th 07 11:43 AM
Array formula for SUMPRODUCT Martin Fishlock Excel Worksheet Functions 1 January 10th 07 03:07 AM
SUMPRODUCT as array formula? Henrik Excel Worksheet Functions 2 November 2nd 05 07:08 AM


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

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

About Us

"It's about Microsoft Excel"