Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
SUMPRODUCT WITH AN "OR" MAYBE????
I received some great help on my last question and know need to make it a
little more complex if you will. Current Formula is: =SUMPRODUCT((Sheet1!A2:A4=3)*(Sheet!B2:B4=100)*(Sh eet!C2:C4="D")*Sheet1!D2:D4) Now I would like it to do: =SUMPRODUCT((Sheet!A2:A4=3 OR A OR 4 OR B OR 999999) and then continue on. Is it possible to use an or statement in the formula or not? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
SUMPRODUCT WITH AN "OR" MAYBE????
Sean,
To get an OR operation, simply Add the fields (using a + ) instead of multiplying (AND, using *). HTH, Bernie MS Excel MVP "Sean" wrote in message ... I received some great help on my last question and know need to make it a little more complex if you will. Current Formula is: =SUMPRODUCT((Sheet1!A2:A4=3)*(Sheet!B2:B4=100)*(Sh eet!C2:C4="D")*Sheet1!D2:D 4) Now I would like it to do: =SUMPRODUCT((Sheet!A2:A4=3 OR A OR 4 OR B OR 999999) and then continue on. Is it possible to use an or statement in the formula or not? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
SUMPRODUCT WITH AN "OR" MAYBE????
You can use the + instead of *
Or if you wanted different values in the same range =SUMPRODUCT((Sheet1!A2:A4={3,"A",8,12})*(Sheet!B2: B4=100)*(Sheet!C2:C4="D")* Sheet1!D2:D4) -- Don Guillett SalesAid Software "Sean" wrote in message ... I received some great help on my last question and know need to make it a little more complex if you will. Current Formula is: =SUMPRODUCT((Sheet1!A2:A4=3)*(Sheet!B2:B4=100)*(Sh eet!C2:C4="D")*Sheet1!D2:D 4) Now I would like it to do: =SUMPRODUCT((Sheet!A2:A4=3 OR A OR 4 OR B OR 999999) and then continue on. Is it possible to use an or statement in the formula or not? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
SUMPRODUCT WITH AN "OR" MAYBE????
Hi Sean
Use the + (plus) sign as OR operator, ie: =SUMPRODUCT((Sheet1!A2:A4=3)+(Sheet!B2:B4=100)+(Sh eet!C2:C4="D")*Sheet1!D2:D 4) HTH Cordially Pascal "Sean" a écrit dans le message de ... I received some great help on my last question and know need to make it a little more complex if you will. Current Formula is: =SUMPRODUCT((Sheet1!A2:A4=3)*(Sheet!B2:B4=100)*(Sh eet!C2:C4="D")*Sheet1!D2:D 4) Now I would like it to do: =SUMPRODUCT((Sheet!A2:A4=3 OR A OR 4 OR B OR 999999) and then continue on. Is it possible to use an or statement in the formula or not? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="") | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |