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

I have not used Excel functions for a while and apparently can't figure it
out now. I
need to have 5 logical tests to be true in an IF statement. Does anyone know
the correct format with commas and parenthesis in the right place? Thanks, Deb

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Nested IF AND functions.

=if(and(a1="ok",b1=13,c42="xxy"),"all true","at least one false")

(I stopped before I got to 5 tests.)

Deb wrote:

I have not used Excel functions for a while and apparently can't figure it
out now. I
need to have 5 logical tests to be true in an IF statement. Does anyone know
the correct format with commas and parenthesis in the right place? Thanks, Deb


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Nested IF AND functions.

Hi,

This is actually and interesting issue, you could do this at least two way
and there are advantages to both:

As Dave has suggested
IF(AND(test1,test2,test3,test4,test5),"all true")

where a test is something like A110

Another solution would be
=IF(test1,IF(test2,IF(test3,IF(test4,IF(test5,"all true")))))

My question to the newsgroup - In both cases I have left the formulas so the
will evaluate to FALSE if not all conditions are met. If test1 fails in the
first case will test2 be executed? In the second case if test1 fails the
calculation if over. So will form 1 run faster than form 2 at least in the
scenario where the test1 fails?

--
Thanks,
Shane Devenshire


"Deb" wrote:

I have not used Excel functions for a while and apparently can't figure it
out now. I
need to have 5 logical tests to be true in an IF statement. Does anyone know
the correct format with commas and parenthesis in the right place? Thanks, Deb

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 Functions Help Swtmelly Excel Worksheet Functions 6 October 13th 08 06:59 PM
Nested functions Joyce Excel Discussion (Misc queries) 4 January 18th 08 07:04 PM
too many nested IF functions Amanda Excel Worksheet Functions 5 October 6th 06 03:02 PM
Nested Functions with OR bill ch Excel Worksheet Functions 5 April 7th 06 06:29 PM
Nested Functions Steve Almond Excel Worksheet Functions 2 June 14th 05 03:22 PM


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