Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Value if two cells are true
Having difficulty with IF two cells are true.
Example, I want D1 to = C1 if, A1="Green" and B1="Blue" D1 can also equal a value instead of equaling C1, say equal 1 if True and 0 if False. The problem I am having is it will equal 1 if either A1 or B1 are True, need both to be True to value 1 (or C1, really either way would work for my purposes). |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Value if two cells are true
Spendtoomuchtime wrote:
Having difficulty with IF two cells are true. Example, I want D1 to = C1 if, A1="Green" and B1="Blue" D1 can also equal a value instead of equaling C1, say equal 1 if True and 0 if False. The problem I am having is it will equal 1 if either A1 or B1 are True, need both to be True to value 1 (or C1, really either way would work for my purposes). =IF(AND(A1="Green", B1="Blue"),C1,FALSE) -- |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Value if two cells are true
One way:
=(A1="Green") * (B1 = "Blue") In article , Spendtoomuchtime wrote: Having difficulty with IF two cells are true. Example, I want D1 to = C1 if, A1="Green" and B1="Blue" D1 can also equal a value instead of equaling C1, say equal 1 if True and 0 if False. The problem I am having is it will equal 1 if either A1 or B1 are True, need both to be True to value 1 (or C1, really either way would work for my purposes). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Return true if multiple cells are the same | Excel Discussion (Misc queries) | |||
Highlight more than one entire row when cells = TRUE | Excel Discussion (Misc queries) | |||
Search for 2 true arguments and return true or false | Excel Discussion (Misc queries) | |||
Function to return True/False if all are validated as True by ISNU | Excel Worksheet Functions | |||
How do I stop Excel from changing the word true to TRUE? | Excel Discussion (Misc queries) |