LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default combining conditional statements

"wrosie" wrote:
(If I were doing this in Crystal Reports, I'd use
If...Then...Else. I had no idea how to do "else" in Excel.)


Oh, come on! Anyone experienced with if-then-else
statements in any language should recognize "value_if_false"
to be the "else" part. See the Excel Help for the IF function.

For those with F20, the field with the results [...] should
be blank. [....] If there's a value in Column F, it means
that the stock was sold and therefore there is no market
value change to put in Column I.


Oh, that is a very different story. Combining with your
original posting, does the following pseudocode match
your intention for column I (I2, for example):

if F2 0, then display blank,
else if E2 0, then display H2-E2, else display H2-D2

One way to write that in Excel is:

=IF(F20, "", IF(E20, H2-E2, H2-D2))



 
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
Nesting IF statements, Conditional Formatting Nick Danger Excel Discussion (Misc queries) 2 September 26th 05 10:31 PM
Conditional IF Statements - cumulative calc. Shams Excel Worksheet Functions 1 August 9th 05 07:25 PM
Conditional Formating multible if statements Roy Excel Discussion (Misc queries) 4 July 22nd 05 09:34 PM
iF STATEMENTS WITHIN CONDITIONAL FORMATS E Halliday Excel Worksheet Functions 4 February 23rd 05 01:05 AM
Combining IF and multiple SUMIF statements, if A>0 & B is between Lee Excel Worksheet Functions 1 January 3rd 05 06:46 PM


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