How to write an if or formula with either or return?
I am trying to write a formula that says if the Department column says Pharmacology then return "Pharm" or If Department column says Biology then return "Bio"
Thank you in advance.
This is what I have that isn't working:
=IF(OR(Department@row =Pharmacology, "Pharm",IF(Department@row =Biology, "Bio")))
Best Answer
-
Hello @RPlaud
I think the formula below is what you are looking for.
=IF(Department@row = "Pharmacology", "Pharm", IF(Department@row = "Biology", "Bio", ""))
This formula will give a blank in [Department] if "Pharmacology" or "Biology" are not present in [Department]. If you have more than Pharmacology and Biology you can just add to the IF statements.
Answers
-
Hello @RPlaud
I think the formula below is what you are looking for.
=IF(Department@row = "Pharmacology", "Pharm", IF(Department@row = "Biology", "Bio", ""))
This formula will give a blank in [Department] if "Pharmacology" or "Biology" are not present in [Department]. If you have more than Pharmacology and Biology you can just add to the IF statements.
-
This worked great…thank you so very much!
-
Thank you for the follow up, more than happy to help and pleased you got something to work for you.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 413 Global Discussions
- 221 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!