Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
LostNFound
 
Posts: n/a
Default Nesting Functions

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   Report Post  
Dave R.
 
Posts: n/a
Default

=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   Report Post  
Bob Phillips
 
Posts: n/a
Default

=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   Report Post  
Dave R.
 
Posts: n/a
Default

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   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the syntax for nesting functions such as IF AND? Lane CC Laura Excel Worksheet Functions 1 February 11th 05 03:07 AM
# of Functions per cell SUB-ZERO Excel Worksheet Functions 3 January 23rd 05 10:35 PM
PivotTable canned functions doco Excel Discussion (Misc queries) 0 January 14th 05 03:52 PM
nesting 18 x functions Jenny Excel Worksheet Functions 3 December 2nd 04 12:01 PM
How to load Engineering Functions into the Fx function wizard? jsaval Excel Worksheet Functions 1 November 11th 04 09:47 PM


All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"