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 / Worksheet Functions / May 2006

Tip: Looking for answers? Try searching our database.

Sumproduct with #N/A in range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deeds - 18 May 2006 15:54 GMT
I have a column B of names that is part of my sumproduct formula...there are
some cells in this column that contain #N/A.  I have to be able to complete
the sumproduct formula by ignoring these errors... Is there something I can
add to the sumproduct formula to ignore these errors in column B?

Thanks again!
Kevin Vaughn - 18 May 2006 16:21 GMT
Maybe something like this:

=SUM(IF($A$21:$A$36=11,IF(NOT(ISNA($B$21:$B$36)),$B21:B36,0)))
which is an array formula (enter using cntl-shift-enter instead of just enter)

Signature

Kevin Vaughn

> I have a column B of names that is part of my sumproduct formula...there are
> some cells in this column that contain #N/A.  I have to be able to complete
> the sumproduct formula by ignoring these errors... Is there something I can
> add to the sumproduct formula to ignore these errors in column B?
>
> Thanks again!
Deeds - 18 May 2006 16:28 GMT
Let me give you my formula:
=sumproduct(B2:B400)*(A2:A400=F1)

With the above....when it finds an #N/A in Column A...it returns #N/A.  I
need to add something to that section to ignore any #N/A.  

Thanks again.

> Maybe something like this:
>
[quoted text clipped - 7 lines]
> >
> > Thanks again!
Bob Phillips - 18 May 2006 16:46 GMT
You don't need SUMPRODUCT

=SUMIF(A2:A400,F1,B2:B400)

Signature

HTH

Bob Phillips

(remove xxx from email address if mailing direct)

> Let me give you my formula:
> =sumproduct(B2:B400)*(A2:A400=F1)
[quoted text clipped - 15 lines]
> > >
> > > Thanks again!
Deeds - 18 May 2006 17:35 GMT
Sorry for the confusion....the referenced formula is a stripped down version.
I do have other criteria in the formula.  I was trying to show just the part
that is giving me errors.  Bottom line is that I am trying to find something
that I can add to my sumproduct formula that ignores #N/A.  
Thanks again!

> You don't need SUMPRODUCT
>
[quoted text clipped - 23 lines]
> > > >
> > > > Thanks again!
Bob Phillips - 18 May 2006 17:46 GMT
Then use the same technique I showed you earlier

=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A400,F1,0))),B2:B400)

Signature

HTH

Bob Phillips

(remove xxx from email address if mailing direct)

> Sorry for the confusion....the referenced formula is a stripped down version.
>  I do have other criteria in the formula.  I was trying to show just the part
[quoted text clipped - 29 lines]
> > > > >
> > > > > Thanks again!
Deeds - 18 May 2006 18:01 GMT
right in front of me....sorry.  Much appreciated!

> Then use the same technique I showed you earlier
>
[quoted text clipped - 39 lines]
> > > > > >
> > > > > > Thanks again!
Kevin Vaughn - 18 May 2006 17:32 GMT
Applying my formula to your range (and borrowing from Bob's answer,) I came
up with:

=SUM(IF(A2:A400=F1,IF(NOT(ISNA(B2:B400)),B2:B400,0)))
which again is an array entered formula (ctrl-shift-enter)

Signature

Kevin Vaughn

> Let me give you my formula:
> =sumproduct(B2:B400)*(A2:A400=F1)
[quoted text clipped - 15 lines]
> > >
> > > Thanks again!
 
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



©2009 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.