Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using "or" in criteria
I have a formula that allows for individual criteria:
=SUM(('Test Map'!G2:G124="R")*('Test Map'!I2:I124="Anchor")) I would like the 2nd part of the formula to allow for either "Anchor" or "A". Any ideas how I can incorporate? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using "or" in criteria
Why not use
=SUM(('Test Map'!G2:G124="R")*('Test Map'!I2:I124="Anchor")) + SUM(('Test Map'!G2:G124="R")*('Test Map'!I2:I124="A")) "Maureen" wrote: I have a formula that allows for individual criteria: =SUM(('Test Map'!G2:G124="R")*('Test Map'!I2:I124="Anchor")) I would like the 2nd part of the formula to allow for either "Anchor" or "A". Any ideas how I can incorporate? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using "or" in criteria
Use + as Or within an array formula:
=SUM(('Test Map'!G2:G124="R")*(('Test Map'!I2:I124="Anchor")+('Test Map'!I2:I124="A"))) HTH, Bernie MS Excel MVP "Maureen" wrote in message ... I have a formula that allows for individual criteria: =SUM(('Test Map'!G2:G124="R")*('Test Map'!I2:I124="Anchor")) I would like the 2nd part of the formula to allow for either "Anchor" or "A". Any ideas how I can incorporate? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using "or" in criteria
HI,
I would switch from SUM to SUMPRODUCT so you don't need to array enter it: =SUMPRODUCT(('Test Map'!G2:G124="R")*(('Test Map'!I2:I124="Anchor")+('Test Map'!I2:I124="A"))) -- If this helps, please click the Yes button. Cheers, Shane Devenshire "Maureen" wrote: I have a formula that allows for individual criteria: =SUM(('Test Map'!G2:G124="R")*('Test Map'!I2:I124="Anchor")) I would like the 2nd part of the formula to allow for either "Anchor" or "A". Any ideas how I can incorporate? |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using "or" in criteria
I would prefer using Sumproduct
=SUMPRODUCT(('Test Map'!G2:G124="R")*(('Test Map'!I2:I124="Anchor")+('Test Map'!I2:I124="A"))) -- Hope this is helpful Pls click the Yes button below if this post provide answer you have asked Thank You cheers, francis "Maureen" wrote: I have a formula that allows for individual criteria: =SUM(('Test Map'!G2:G124="R")*('Test Map'!I2:I124="Anchor")) I would like the 2nd part of the formula to allow for either "Anchor" or "A". Any ideas how I can incorporate? |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using "or" in criteria
Thanks to all. Your suggestions worked.
"Bernie Deitrick" wrote: Use + as Or within an array formula: =SUM(('Test Map'!G2:G124="R")*(('Test Map'!I2:I124="Anchor")+('Test Map'!I2:I124="A"))) HTH, Bernie MS Excel MVP "Maureen" wrote in message ... I have a formula that allows for individual criteria: =SUM(('Test Map'!G2:G124="R")*('Test Map'!I2:I124="Anchor")) I would like the 2nd part of the formula to allow for either "Anchor" or "A". Any ideas how I can incorporate? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to show "yes" or "No" in a cell if certain criteria is met? | New Users to Excel | |||
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 | |||
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 |