Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Lotus 123 @if(and statement

Lotus 123 @if(and statement

Lotus 123 @if(and statement


I have a need to test for 3 or more conditions in a spreadsheet ex:@if(a=1 and @if( b=2 and @if( c=3, then "x", else "y"))).

Also have a need to test conditions within a range of #'s
ex: @if(a>20 and @if(a<=25,then x, else y))

Any help would be greatly appreciated.

RE: Lotus 123 @if(and statement

Hi Jessec3,

If you haven't yet started to used range names, then I would STRONGLY recommend that you start now.  You'll see that it will make a HUGE difference in your overall use of Lotus 123.

Where you referred to "a", "b", "c", etc, I have used 3-digit names.  You can use whatever name you like - usually one will use names that you can associate with the data.  Be sure NOT to use names that will conflict with cell coordinates.  For example, don't use a name like "a1".  I you should want to use something like "a1", used the "_" character - e.g. "_a1" or "a1_".

Here are the formulas...


2) @IF(AAA>20#AND#AAA<=25,XXX,YYY)

If you want to copy these formulas and have the reference to the range names stay "absolute" (fixed), then place the "$" character in front of those names you want to stay absolute.

I hope this helps.   Please advise as to how you make out.

Regards,    ...Dale Watson    dwatson@bsi.gov.mb.ca

RE: Lotus 123 @if(and statement

I was unable to repair the file.  I ended up having someone re-create the spreadsheet for me.  I would like to know if there is a way to repair them in case it happens again though.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close