Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax 1

Status
Not open for further replies.

mistergrady

Technical User
Jun 27, 2007
8
CA
I am a novice with spreadsheets. I am trying to write a formula to reflect the following in Open Office:

If A1>1 then "Heavy";

If A1=0 then "Medium";

If A1<1 then "Light"

I cannot find the right syntax. Any help appreciated.

Thanks.

 
Hi

What you are requesting would be this :
Code:
=IF(A1>1,"Heavy",IF(A1=0,"Medium",IF(A1<1,"Light","-")))
But I think your requirement is wrong, because you specify nothing in case A1=1. I think actually you want this :
Code:
=IF(A1>0,"Heavy",IF(A1<0,"Light","Medium"))


Feherke.
 
Hello Feherke:

As you note, I did not state the case correctly, but I applied your syntax and it worked. Woo Hoo!

Thanks for help. I really appreciate it.

Regards,

grady
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top