Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default SUMPRODUCT with Multiple Criteria

I have three criteria with this formula and it brings back a $0 value, when I
know there is a $ amount that should have be calculated. I am working in one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook Name.xls]Name'!$I$2:$I$37)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT with Multiple Criteria

You're testing one range twice for 2 different criteria. While one test
might be true the other *has* to be false so T*F=0. In other words: if it's
"A" then it *can't* be "P" and vice versa.

Try it like this:

=SUMPRODUCT(('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$M$2:$M$37="Y")*'[Workbook Name.xls]Name'!$I$2:$I$37)


--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
I have three criteria with this formula and it brings back a $0 value, when
I
know there is a $ amount that should have be calculated. I am working in
one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook Name.xls]Name'!$I$2:$I$37)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default SUMPRODUCT with Multiple Criteria

You are brilliant!! It worked! Thank you for the help.

"T. Valko" wrote:

You're testing one range twice for 2 different criteria. While one test
might be true the other *has* to be false so T*F=0. In other words: if it's
"A" then it *can't* be "P" and vice versa.

Try it like this:

=SUMPRODUCT(('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$M$2:$M$37="Y")*'[Workbook Name.xls]Name'!$I$2:$I$37)


--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
I have three criteria with this formula and it brings back a $0 value, when
I
know there is a $ amount that should have be calculated. I am working in
one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook Name.xls]Name'!$I$2:$I$37)




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT with Multiple Criteria

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
You are brilliant!! It worked! Thank you for the help.

"T. Valko" wrote:

You're testing one range twice for 2 different criteria. While one test
might be true the other *has* to be false so T*F=0. In other words: if
it's
"A" then it *can't* be "P" and vice versa.

Try it like this:

=SUMPRODUCT(('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$M$2:$M$37="Y")*'[Workbook Name.xls]Name'!$I$2:$I$37)


--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
I have three criteria with this formula and it brings back a $0 value,
when
I
know there is a $ amount that should have be calculated. I am working
in
one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook Name.xls]Name'!$I$2:$I$37)






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default SUMPRODUCT with Multiple Criteria

One other question hopefully you can help with; I have a similar situation
with having to count the number of occurences with three criteria (two of
which are in the same column). I tried to modify my formula, but it isn't
working.

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"}),--('[Workbook
Name.xls]Name'!$F$2:$F$37="1"))

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
You are brilliant!! It worked! Thank you for the help.

"T. Valko" wrote:

You're testing one range twice for 2 different criteria. While one test
might be true the other *has* to be false so T*F=0. In other words: if
it's
"A" then it *can't* be "P" and vice versa.

Try it like this:

=SUMPRODUCT(('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$M$2:$M$37="Y")*'[Workbook Name.xls]Name'!$I$2:$I$37)


--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
I have three criteria with this formula and it brings back a $0 value,
when
I
know there is a $ amount that should have be calculated. I am working
in
one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook Name.xls]Name'!$I$2:$I$37)








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT with Multiple Criteria

Probably a number, not text

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"}),
--('[Workbook Name.xls]Name'!$F$2:$F$37=1))


--
---
HTH

Bob


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



"Kelly" wrote in message
...
One other question hopefully you can help with; I have a similar situation
with having to count the number of occurences with three criteria (two of
which are in the same column). I tried to modify my formula, but it isn't
working.

=SUMPRODUCT(--('[Workbook
Name.xls]Name'!$O$2:$O$37={"A","P"}),--('[Workbook
Name.xls]Name'!$F$2:$F$37="1"))

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
You are brilliant!! It worked! Thank you for the help.

"T. Valko" wrote:

You're testing one range twice for 2 different criteria. While one
test
might be true the other *has* to be false so T*F=0. In other words: if
it's
"A" then it *can't* be "P" and vice versa.

Try it like this:

=SUMPRODUCT(('[Workbook
Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$M$2:$M$37="Y")*'[Workbook Name.xls]Name'!$I$2:$I$37)


--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
I have three criteria with this formula and it brings back a $0
value,
when
I
know there is a $ amount that should have be calculated. I am
working
in
one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook
Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook Name.xls]Name'!$I$2:$I$37)








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default SUMPRODUCT with Multiple Criteria

I am getting a #VALUE error. Any other suggestions?



"Bob Phillips" wrote:

Probably a number, not text

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"}),
--('[Workbook Name.xls]Name'!$F$2:$F$37=1))


--
---
HTH

Bob


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



"Kelly" wrote in message
...
One other question hopefully you can help with; I have a similar situation
with having to count the number of occurences with three criteria (two of
which are in the same column). I tried to modify my formula, but it isn't
working.

=SUMPRODUCT(--('[Workbook
Name.xls]Name'!$O$2:$O$37={"A","P"}),--('[Workbook
Name.xls]Name'!$F$2:$F$37="1"))

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
You are brilliant!! It worked! Thank you for the help.

"T. Valko" wrote:

You're testing one range twice for 2 different criteria. While one
test
might be true the other *has* to be false so T*F=0. In other words: if
it's
"A" then it *can't* be "P" and vice versa.

Try it like this:

=SUMPRODUCT(('[Workbook
Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$M$2:$M$37="Y")*'[Workbook Name.xls]Name'!$I$2:$I$37)


--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
I have three criteria with this formula and it brings back a $0
value,
when
I
know there is a $ amount that should have be calculated. I am
working
in
one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook
Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook Name.xls]Name'!$I$2:$I$37)









  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT with Multiple Criteria

that suggests you have an error in one of the cells being summed, probably
F2:F37

--
---
HTH

Bob


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



"Kelly" wrote in message
...
I am getting a #VALUE error. Any other suggestions?



"Bob Phillips" wrote:

Probably a number, not text

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"}),
--('[Workbook
Name.xls]Name'!$F$2:$F$37=1))


--
---
HTH

Bob


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



"Kelly" wrote in message
...
One other question hopefully you can help with; I have a similar
situation
with having to count the number of occurences with three criteria (two
of
which are in the same column). I tried to modify my formula, but it
isn't
working.

=SUMPRODUCT(--('[Workbook
Name.xls]Name'!$O$2:$O$37={"A","P"}),--('[Workbook
Name.xls]Name'!$F$2:$F$37="1"))

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
You are brilliant!! It worked! Thank you for the help.

"T. Valko" wrote:

You're testing one range twice for 2 different criteria. While one
test
might be true the other *has* to be false so T*F=0. In other words:
if
it's
"A" then it *can't* be "P" and vice versa.

Try it like this:

=SUMPRODUCT(('[Workbook
Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$M$2:$M$37="Y")*'[Workbook
Name.xls]Name'!$I$2:$I$37)


--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
I have three criteria with this formula and it brings back a $0
value,
when
I
know there is a $ amount that should have be calculated. I am
working
in
one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook
Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook
Name.xls]Name'!$I$2:$I$37)











  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default SUMPRODUCT with Multiple Criteria

Figured it out:

=SUMPRODUCT(('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$F$2:$F$37=1))



"Bob Phillips" wrote:

that suggests you have an error in one of the cells being summed, probably
F2:F37

--
---
HTH

Bob


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



"Kelly" wrote in message
...
I am getting a #VALUE error. Any other suggestions?



"Bob Phillips" wrote:

Probably a number, not text

=SUMPRODUCT(--('[Workbook Name.xls]Name'!$O$2:$O$37={"A","P"}),
--('[Workbook
Name.xls]Name'!$F$2:$F$37=1))


--
---
HTH

Bob


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



"Kelly" wrote in message
...
One other question hopefully you can help with; I have a similar
situation
with having to count the number of occurences with three criteria (two
of
which are in the same column). I tried to modify my formula, but it
isn't
working.

=SUMPRODUCT(--('[Workbook
Name.xls]Name'!$O$2:$O$37={"A","P"}),--('[Workbook
Name.xls]Name'!$F$2:$F$37="1"))

"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
You are brilliant!! It worked! Thank you for the help.

"T. Valko" wrote:

You're testing one range twice for 2 different criteria. While one
test
might be true the other *has* to be false so T*F=0. In other words:
if
it's
"A" then it *can't* be "P" and vice versa.

Try it like this:

=SUMPRODUCT(('[Workbook
Name.xls]Name'!$O$2:$O$37={"A","P"})*('[Workbook
Name.xls]Name'!$M$2:$M$37="Y")*'[Workbook
Name.xls]Name'!$I$2:$I$37)


--
Biff
Microsoft Excel MVP


"Kelly" wrote in message
...
I have three criteria with this formula and it brings back a $0
value,
when
I
know there is a $ amount that should have be calculated. I am
working
in
one
workbook and linking to another. What have I done wrong?

=SUMPRODUCT(--('[Workbook
Name.xls]Name'!$O$2:$O$37="P"),--('[Workbook
Name.xls]Name'!$O$2:$O$37="A"),--('[Workbook
Name.xls]Name'!$M$2:$M$37="Y"),'[Workbook
Name.xls]Name'!$I$2:$I$37)












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
Multiple criteria for sumproduct ocuhcs Excel Discussion (Misc queries) 4 April 26th 09 02:44 AM
SumProduct With Multiple criteria Tony D Excel Worksheet Functions 1 February 24th 06 09:26 PM
multiple criteria in if or sumproduct tbird0566 Excel Worksheet Functions 1 September 19th 05 09:11 PM
Using Sumproduct with multiple Criteria Mark Jackson Excel Worksheet Functions 1 May 6th 05 10:07 PM
sumproduct using multiple criteria tifosi3 Excel Worksheet Functions 2 January 6th 05 08:46 PM


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