Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


How to use CONDITIONAL statements

Xess allows you to use conditional statements using "@IF". It's syntax
is:

@IF(X,T,F)      Returns the value of T if X evaluates to non-zero,
                or F if X evaluates to zero
                X -  numeric value
                T,F - numeric or string values, cell or range references

For example, to get the following condition:

IF G7<(C7+E7) AND H7<(D7+F7) THEN "YES" ELSE "NO"

Type in an another cell:

=@IF( G7 < C7+E7 && H7 < D7+F7, "YES", "NO")

NOTE: The "@IF" statement should be placed in a cell other than the cells
specified within the (...) otherwise the result will be an infinite loop.

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.