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
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!