Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Array Formula and #N/As ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 13 Jul 2007 14:45 GMT
Hi,

I'm using the following formula but it's not working because my SUM
range E29:E59 contains #N/As.  I know one solution is to add an IF
statement to the formulas in E29:E59 to return "" if not avialable but
I'm trying to find a olution that works *with* the NAs is the range.

=SUMPRODUCT(--(B29:B59>=B94),--(B29:B59<=C94),(E29:E59))

In any other array formula I'd try use IF and ISNUMBER but am not sure
if this is possible with Sumproduct.

Can anyone advise how I can amend this formula so that it works with
#N/As in E29:E59.  Or, another forumla that does the same thing?

Many thanks,

Jason
Bob Phillips - 13 Jul 2007 15:17 GMT
=SUM(IF(ISNUMBER(E29:E59),IF((B29:B59>=B94)*(B29:B59<=C94),E29:E59)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hi,
>
[quoted text clipped - 14 lines]
>
> Jason
Jay - 13 Jul 2007 15:53 GMT
> =SUM(IF(ISNUMBER(E29:E59),IF((B29:B59>=B94)*(B29:B59<=C94),E29:E59)))
>
[quoted text clipped - 3 lines]
> not try to do this manually.
> When editing the formula, it must again be array-entered.

Thanks Bob,

I'd figured a similar solution out, except I had the ISNUMBER check in
the same IF as the other two conditions and had an ,0 ELSE condition.

Can SUMPRODUCT not accomodate an ISNUMBER check in the same way?

Cheers,

Jason
Bob Phillips - 13 Jul 2007 18:15 GMT
The problem is that with SP, even adding an ISNUMBER check doesn't solve it
because it still evaluates the NA's in the range. It is not linear, whereas
with the IFs you force a linear evaluation. You can't add IFs to SP as that
will change the range sizes and return a #VALUE error.

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>> =SUM(IF(ISNUMBER(E29:E59),IF((B29:B59>=B94)*(B29:B59<=C94),E29:E59)))
>>
[quoted text clipped - 14 lines]
>
> Jason
Jay - 14 Jul 2007 16:11 GMT
> The problem is that with SP, even adding an ISNUMBER check doesn't solve it
> because it still evaluates the NA's in the range. It is not linear, whereas
> with the IFs you force a linear evaluation. You can't add IFs to SP as that
> will change the range sizes and return a #VALUE error.

Thanks for taking the time to explain it.  That's been a real help in my
understanding of SP.

Regards....Jason
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.