![]() |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
All times are GMT +1. The time now is 11:23 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com