Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I want to use two criterias for an answer?? If Column A contains a 1 and
Column B says Yes then return a 1 But if column B is blank return 0.. Then at the same time if column A contains anything 1 and Column B says Yes return a 2 but if column B is blank return zero Thanks For any suggestions M |
#2
![]() |
|||
|
|||
![]()
=IF(AND(A1=1,B1="Yes"),1,IF(AND(A11,B1="Yes"),2,0 ))
"LostNFound" wrote in message ... I want to use two criterias for an answer?? If Column A contains a 1 and Column B says Yes then return a 1 But if column B is blank return 0.. Then at the same time if column A contains anything 1 and Column B says Yes return a 2 but if column B is blank return zero Thanks For any suggestions M |
#3
![]() |
|||
|
|||
![]()
=IF(B1="",0,IF(AND(A1=1,B1="Yes"),1,IF(AND(A11,B1 ="Yes"),2,"")))
-- HTH RP (remove nothere from the email address if mailing direct) "LostNFound" wrote in message ... I want to use two criterias for an answer?? If Column A contains a 1 and Column B says Yes then return a 1 But if column B is blank return 0.. Then at the same time if column A contains anything 1 and Column B says Yes return a 2 but if column B is blank return zero Thanks For any suggestions M |
#4
![]() |
|||
|
|||
![]()
ignore this, use bob's. forgot you wanted to only look fro B being BLANK.
"Dave R." wrote in message ... =IF(AND(A1=1,B1="Yes"),1,IF(AND(A11,B1="Yes"),2,0 )) "LostNFound" wrote in message ... I want to use two criterias for an answer?? If Column A contains a 1 and Column B says Yes then return a 1 But if column B is blank return 0.. Then at the same time if column A contains anything 1 and Column B says Yes return a 2 but if column B is blank return zero Thanks For any suggestions M |
#5
![]() |
|||
|
|||
![]()
On Thu, 3 Mar 2005 12:31:05 -0800, "LostNFound" wrote:
I want to use two criterias for an answer?? If Column A contains a 1 and Column B says Yes then return a 1 But if column B is blank return 0.. Then at the same time if column A contains anything 1 and Column B says Yes return a 2 but if column B is blank return zero Thanks For any suggestions M Using IF statements: =IF(AND(A1=1,B1="Yes"),1,IF(AND(A11,B1="Yes"),2,0 )) Different and perhaps more obscu =(A11)*(B1="Yes")*2+(A1=1)*(B1="Yes") --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
What is the syntax for nesting functions such as IF AND? | Excel Worksheet Functions | |||
# of Functions per cell | Excel Worksheet Functions | |||
PivotTable canned functions | Excel Discussion (Misc queries) | |||
nesting 18 x functions | Excel Worksheet Functions | |||
How to load Engineering Functions into the Fx function wizard? | Excel Worksheet Functions |