Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Henrik
 
Posts: n/a
Default Sum array with #N/A

Hi,

For some reason I can't get the following to work. I have got an array of
numbers in which some observations are #N/A (the equivalent of NA() ).

3
6
8
#N/A
4
#N/A
5

Normally I'd just sum this array by submitting
{=SUM(A1:A7*ISNUMBER(A1:A7))}, but the (arrayed) formula returns #N/A. What
do I need to do in order for the formula to return the value 26?

Thanks for your help.
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=SUM(IF(NOT(ISERROR(a1:a7)),a1:a7))
array entered works for me if that helps

"Henrik" wrote in message
...
Hi,

For some reason I can't get the following to work. I have got an array of
numbers in which some observations are #N/A (the equivalent of NA() ).

3
6
8
#N/A
4
#N/A
5

Normally I'd just sum this array by submitting
{=SUM(A1:A7*ISNUMBER(A1:A7))}, but the (arrayed) formula returns #N/A.

What
do I need to do in order for the formula to return the value 26?

Thanks for your help.



  #3   Report Post  
Henrik
 
Posts: n/a
Default

Fair enough, but I guess I need to add another dimension to this (as to why I
didn't choose that approach in the first place). Let's say that sum the
numbers in column A when the value in columb B is greater than 9 and omit
observations with #N/A.

3 2
6 8
8 10
#N/A 12
4 14
#N/A 4
5 14

I propose the following approach (which doesn't work) even though, I thought
it did in the past:

{=SUM(A1:A7*ISNUMBER(A1:A7)*(B1:B79))},

As far as I know, there is no way to solve this using a sum(if()) combination.

"N Harkawat" wrote:

=SUM(IF(NOT(ISERROR(a1:a7)),a1:a7))
array entered works for me if that helps

"Henrik" wrote in message
...
Hi,

For some reason I can't get the following to work. I have got an array of
numbers in which some observations are #N/A (the equivalent of NA() ).

3
6
8
#N/A
4
#N/A
5

Normally I'd just sum this array by submitting
{=SUM(A1:A7*ISNUMBER(A1:A7))}, but the (arrayed) formula returns #N/A.

What
do I need to do in order for the formula to return the value 26?

Thanks for your help.




  #4   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
change the formula which create #NA. e.g.
=IF(ISNA(your_formula),"",your_formula)

--
Regards
Frank Kabel
Frankfurt, Germany

"Henrik" schrieb im Newsbeitrag
...
Hi,

For some reason I can't get the following to work. I have got an

array of
numbers in which some observations are #N/A (the equivalent of

NA() ).

3
6
8
#N/A
4
#N/A
5

Normally I'd just sum this array by submitting
{=SUM(A1:A7*ISNUMBER(A1:A7))}, but the (arrayed) formula returns

#N/A. What
do I need to do in order for the formula to return the value 26?

Thanks for your help.


  #5   Report Post  
hgrove
 
Posts: n/a
Default


Henrik wrote...
. . . Let's say that sum the numbers in column A when the value in

columb B is
greater than 9 and omit observations with #N/A.

3 2
6 8
8 10
#N/A 12
4 14
#N/A 4
5 14

I propose the following approach (which doesn't work) even though, I

thought it
did in the past:

{=SUM(A1:A7*ISNUMBER(A1:A7)*(B1:B79))}

As far as I know, there is no way to solve this using a sum(if())

combination.
...

Well, not if you confuse IF(x,y) with x*y. Try using a *REAL* IF().

=SUM(IF(ISNUMBER(A1:A7)*(B1:B79),A1:A7))


--
hgrove
------------------------------------------------------------------------
hgrove's Profile: http://www.excelforum.com/member.php...o&userid=11432
View this thread: http://www.excelforum.com/showthread...hreadid=318871

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
Where is the bug in my array? Gail Gurman Excel Discussion (Misc queries) 1 January 25th 05 12:36 AM
Working with array equations OkieViking Excel Discussion (Misc queries) 2 January 23rd 05 07:43 AM
Transpose into a _working_ transposed array Fred Holmes Excel Discussion (Misc queries) 1 January 13th 05 11:31 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 10:06 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"