Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Conditional formula based on 2 pre-conditions

Can anyone tell me what is wrong with the following formula? I only want the
division part of the formula to be executed if the previous two conditions
are both satisfied, if either one isn't satisfied, then I'd like it to return
the "--" value but I can't seem to get the parentheses right. Many thanks.

=IF(D57<"NA"& IF(D220,D22/D57,"--"))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Conditional formula based on 2 pre-conditions

PSmith wrote:
Can anyone tell me what is wrong with the following formula? I only want the
division part of the formula to be executed if the previous two conditions
are both satisfied, if either one isn't satisfied, then I'd like it to return
the "--" value but I can't seem to get the parentheses right. Many thanks.

=IF(D57<"NA"& IF(D220,D22/D57,"--"))



In the help file, search for "Logical Functions" and then select "AND worksheet
function".
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default Conditional formula based on 2 pre-conditions

=IF(AND(D57<"NA", D220),D22/D57,"--")

but if you have #N/A in D57 from a formula then
=IF(AND(NOT(ISNA(D57), D220),D22/D57,"--")

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"PSmith" wrote in message
...
Can anyone tell me what is wrong with the following formula? I only want
the
division part of the formula to be executed if the previous two conditions
are both satisfied, if either one isn't satisfied, then I'd like it to
return
the "--" value but I can't seem to get the parentheses right. Many thanks.

=IF(D57<"NA"& IF(D220,D22/D57,"--"))



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Conditional formula based on 2 pre-conditions

Hi P. Smith
Try it this way =IF(AND(D57<"NA",D220),D22/D57,"--")
HTH
John
"PSmith" wrote in message
...
Can anyone tell me what is wrong with the following formula? I only want the
division part of the formula to be executed if the previous two conditions
are both satisfied, if either one isn't satisfied, then I'd like it to return
the "--" value but I can't seem to get the parentheses right. Many thanks.

=IF(D57<"NA"& IF(D220,D22/D57,"--"))


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Conditional formula based on 2 pre-conditions

Thank you very much Bernard, I appreciate the quick reply!

"PSmith" wrote:

Can anyone tell me what is wrong with the following formula? I only want the
division part of the formula to be executed if the previous two conditions
are both satisfied, if either one isn't satisfied, then I'd like it to return
the "--" value but I can't seem to get the parentheses right. Many thanks.

=IF(D57<"NA"& IF(D220,D22/D57,"--"))



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
Conditional Formatting based on 2 conditions Still learning@work Excel Discussion (Misc queries) 3 April 7th 09 11:11 PM
Conditional formatting Based on cell A text with conditions in Cell B Raicomm Excel Discussion (Misc queries) 0 January 21st 08 04:46 PM
Formula based on conditions PT40 Excel Worksheet Functions 4 December 14th 07 08:25 AM
Formula to Extract value on 3 column based on two conditions wayliff Excel Discussion (Misc queries) 0 January 12th 06 08:20 PM
Use different formula to calculation based on conditions 0-0 Wai Wai ^-^ Excel Discussion (Misc queries) 2 December 3rd 05 08:28 AM


All times are GMT +1. The time now is 11:33 PM.

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

About Us

"It's about Microsoft Excel"