Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 465
Default Nested IF AND OR statement



Hi All

I need some help with a complicated formula.

I'm trying to say ;

IF E2 contains "A" , OR "B" , OR "C" , AND K2="D" then put "YES". IF not
put B1

Grateful for any help.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Nested IF AND OR statement

Hi Colin,

Am Tue, 29 Oct 2013 20:30:45 +0000 schrieb Colin Hayes:

IF E2 contains "A" , OR "B" , OR "C" , AND K2="D" then put "YES". IF not
put B1


try:

=IF((K2="D")+COUNT(FIND({"A","B","C"},E2))=2,"Yes" ,B1)


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Nested IF AND OR statement

Hi Colin,

Am Tue, 29 Oct 2013 21:45:59 +0100 schrieb Claus Busch:

=IF((K2="D")+COUNT(FIND({"A","B","C"},E2))=2,"Yes" ,B1)


a bit shorter:
=IF(OR(E2={"A","B","C"})+(K2="D")=2,"Yes",B1)


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 465
Default Nested IF AND OR statement

In article , Claus Busch
writes
Hi Colin,

Am Tue, 29 Oct 2013 21:45:59 +0100 schrieb Claus Busch:

=IF((K2="D")+COUNT(FIND({"A","B","C"},E2))=2,"Yes" ,B1)


a bit shorter:
=IF(OR(E2={"A","B","C"})+(K2="D")=2,"Yes",B1)


Regards
Claus B.


Hi Claus

Yes , both perfect. Thanks again for your time and considerable
expertise.

^_^

Best Wishes


Colin

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
Nested If statement -- please help :) HS[_2_] New Users to Excel 8 May 5th 09 12:18 AM
If statement nested k11ngy Excel Discussion (Misc queries) 5 October 13th 08 02:38 PM
IF STATEMENT - NESTED tojo107 Excel Worksheet Functions 4 April 19th 07 08:14 PM
Nested IF statement PattiP Excel Worksheet Functions 4 January 23rd 07 10:56 PM
Nested IF/AND Statement buffgirl71 Excel Discussion (Misc queries) 1 October 10th 06 01:59 AM


All times are GMT +1. The time now is 03:26 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"