Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple criteria for sumproduct | Excel Discussion (Misc queries) | |||
SumProduct With Multiple criteria | Excel Worksheet Functions | |||
multiple criteria in if or sumproduct | Excel Worksheet Functions | |||
Using Sumproduct with multiple Criteria | Excel Worksheet Functions | |||
sumproduct using multiple criteria | Excel Worksheet Functions |