Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Testing for conditions with IF statement and AND function

I am having trouble displaying varying results in a cell depending on what
conditions exist.

I have three conditions. If conditions A and B are both true or if
condition C is true, I want the cell to display the same results. If neither
"A and B" or C are true, I wan the sell to be blank.

I am getting an error message with the "logical test" of my IF statement and
I don't know another way to create the desired results.

Here is the formula as I have written it

=IF(((D1415) AND (G14="Y")),((I14*N14)/12),IF(C14.8,((I14*N14)/12),""))

Any ideas?
--
Joe Schwartz
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Testing for conditions with IF statement and AND function

Try it like this:

=IF(OR(AND(D1415,G14="Y"),C140.8),I14*N14/12,"")


--
Biff
Microsoft Excel MVP


"Joe" (donotspam) wrote in message
...
I am having trouble displaying varying results in a cell depending on what
conditions exist.

I have three conditions. If conditions A and B are both true or if
condition C is true, I want the cell to display the same results. If
neither
"A and B" or C are true, I wan the sell to be blank.

I am getting an error message with the "logical test" of my IF statement
and
I don't know another way to create the desired results.

Here is the formula as I have written it

=IF(((D1415) AND (G14="Y")),((I14*N14)/12),IF(C14.8,((I14*N14)/12),""))

Any ideas?
--
Joe Schwartz



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
Conditions with IF statement Jaydubs Excel Discussion (Misc queries) 2 June 26th 06 05:45 PM
Does excel have a function for statistical hypotosis testing? Meredith Borrego Excel Worksheet Functions 1 December 2nd 05 05:02 AM
IF function....testing against values in multiple cells racmb1975 Excel Worksheet Functions 2 October 12th 05 07:50 PM
Testing for Multiple Conditions Steve Excel Discussion (Misc queries) 2 July 20th 05 12:29 AM
testing more than one variable in an if statement Charles Excel Discussion (Misc queries) 3 February 22nd 05 06:46 PM


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