Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Stuck on Nested IF Function

Nested IF function has me stuck. I tried this:
=IF((OR(J2="N",K2="N",M2="N")),"N",(IF((AND(J2="Y" ,K2="Y",M2="Y")),"Y","")))
Trying to create a function to automatically determine if an engine is fully
assembled in column N.
If the answer is "N" (no) to either columns J, K or M (not L) then column N
must display "N" (no, the engine is not completely assembled). If the answer
is "Y" (yes) to all columns J, K and M (not L) then column N must display
"Y". If all columns J thru M are left blank then column "N" must display
nothing (blank).

J K L M N
Belt Motor Oil Valves Engine Assembled?
1
2 Y N Y N (=IF function)

Does someone know what's wrong with the IF function above?

Regards-Studebaker


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Stuck on Nested IF Function

=IF(AND(COUNTIF(J2:M2,"N")0,L2<"N"),"N",IF(AND(C OUNTIF(J2:M2,"Y")=3,L2<"Y"),"Y",""))


"Studebaker" wrote:

Nested IF function has me stuck. I tried this:
=IF((OR(J2="N",K2="N",M2="N")),"N",(IF((AND(J2="Y" ,K2="Y",M2="Y")),"Y","")))
Trying to create a function to automatically determine if an engine is fully
assembled in column N.
If the answer is "N" (no) to either columns J, K or M (not L) then column N
must display "N" (no, the engine is not completely assembled). If the answer
is "Y" (yes) to all columns J, K and M (not L) then column N must display
"Y". If all columns J thru M are left blank then column "N" must display
nothing (blank).

J K L M N
Belt Motor Oil Valves Engine Assembled?
1
2 Y N Y N (=IF function)

Does someone know what's wrong with the IF function above?

Regards-Studebaker


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default Stuck on Nested IF Function

You didn't define what answer you want if your inputs are a mixture of Ys
and blanks. At present your formula will give a blank result.
Otherwise your formula seems to give the right result.
You can make it a fraction more readable by getting rid of a few of the
parentheses:
=IF(OR(J2="N",K2="N",M2="N"),"N",(IF(AND(J2="Y",K2 ="Y",M2="Y"),"Y","")))
--
David Biddulph

"Studebaker" wrote in message
...
Nested IF function has me stuck. I tried this:
=IF((OR(J2="N",K2="N",M2="N")),"N",(IF((AND(J2="Y" ,K2="Y",M2="Y")),"Y","")))
Trying to create a function to automatically determine if an engine is
fully
assembled in column N.
If the answer is "N" (no) to either columns J, K or M (not L) then column
N
must display "N" (no, the engine is not completely assembled). If the
answer
is "Y" (yes) to all columns J, K and M (not L) then column N must display
"Y". If all columns J thru M are left blank then column "N" must display
nothing (blank).

J K L M N
Belt Motor Oil Valves Engine Assembled?
1
2 Y N Y N (=IF function)

Does someone know what's wrong with the IF function above?

Regards-Studebaker




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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM


All times are GMT +1. The time now is 07:52 AM.

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"