Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have written the following formula =SUMIF(B5:B21,"partner",D5:D21) but
would like to include an OR criteria =SUMIF(B5:B21,OR("partner","manager"),D5:D21) but it gives me an incorrect value of zero. The first formula above yields the correct answer of "7500". Is my syntax incorrect? Thank you in advance for your assistance. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way:
=SUM(SUMIF(B5:B21,{"partner","manager"},D5:D21)) SJT wrote: I have written the following formula =SUMIF(B5:B21,"partner",D5:D21) but would like to include an OR criteria =SUMIF(B5:B21,OR("partner","manager"),D5:D21) but it gives me an incorrect value of zero. The first formula above yields the correct answer of "7500". Is my syntax incorrect? Thank you in advance for your assistance. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could simply use
=SUMIF(B5:B21,"partner",D5:D21)+SUMIF(B5:B21,"mana ger",D5:D21) But I reckon there may be another way.......anyone? Rob "SJT" wrote in message ... I have written the following formula =SUMIF(B5:B21,"partner",D5:D21) but would like to include an OR criteria =SUMIF(B5:B21,OR("partner","manager"),D5:D21) but it gives me an incorrect value of zero. The first formula above yields the correct answer of "7500". Is my syntax incorrect? Thank you in advance for your assistance. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks. What is the function that the "{" serve in your formula?
"Dave Peterson" wrote: One way: =SUM(SUMIF(B5:B21,{"partner","manager"},D5:D21)) SJT wrote: I have written the following formula =SUMIF(B5:B21,"partner",D5:D21) but would like to include an OR criteria =SUMIF(B5:B21,OR("partner","manager"),D5:D21) but it gives me an incorrect value of zero. The first formula above yields the correct answer of "7500". Is my syntax incorrect? Thank you in advance for your assistance. -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It tells excel to treat that as an array.
Put some test data in A1:A2 put this in A3: =a1:a2 select A3, hit F2 and then hit F9. Look at what you see in the formula bar. SJT wrote: Thanks. What is the function that the "{" serve in your formula? "Dave Peterson" wrote: One way: =SUM(SUMIF(B5:B21,{"partner","manager"},D5:D21)) SJT wrote: I have written the following formula =SUMIF(B5:B21,"partner",D5:D21) but would like to include an OR criteria =SUMIF(B5:B21,OR("partner","manager"),D5:D21) but it gives me an incorrect value of zero. The first formula above yields the correct answer of "7500". Is my syntax incorrect? Thank you in advance for your assistance. -- Dave Peterson -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for all the help.
"Dave Peterson" wrote: It tells excel to treat that as an array. Put some test data in A1:A2 put this in A3: =a1:a2 select A3, hit F2 and then hit F9. Look at what you see in the formula bar. SJT wrote: Thanks. What is the function that the "{" serve in your formula? "Dave Peterson" wrote: One way: =SUM(SUMIF(B5:B21,{"partner","manager"},D5:D21)) SJT wrote: I have written the following formula =SUMIF(B5:B21,"partner",D5:D21) but would like to include an OR criteria =SUMIF(B5:B21,OR("partner","manager"),D5:D21) but it gives me an incorrect value of zero. The first formula above yields the correct answer of "7500". Is my syntax incorrect? Thank you in advance for your assistance. -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
SUMIF with multiple criteria | Excel Discussion (Misc queries) | |||
SUMIF, multiple criteria | Excel Discussion (Misc queries) | |||
SUMPRODUCT Formula to Count Row of data Below Matched Criteria | Excel Worksheet Functions | |||
"criteria" in a sumif refering to the value in another cell | Excel Discussion (Misc queries) |