MULTIPLE IF/OR
Is there a way to have an IF/OR statement for the following:
Column A represents the initials of an internal contact at company. Column A is part of a sheet which has 300 rows. Column A could have initials KA, PP, or JM. I need a formula which will look at Column A, read which set of initials are present, and return a defined email address. The defined email addresses would be:
KA = ka@company.com
PP = pp@company.com
JM = jm@company.com
Column A Column B
VP Initials Email Address
KA
JM
PP
PP
KA
KA
PP
JM
My intention is to use the email addresses in an automation.
Any help would be appreciated.
Tim
Best Answer
-
@TJB_Newbie Just FYI, you'll need to use this in a Contact type column in order to use the email address to send automated alerts or update requests, or approval processes. You don't want to use OR here, since you need a different result depending on the initials provided. We can do this with nested IFs:
=IF([Column A]@row = "KA", "ka@company.com", IF([Column A]@row = "PP", "pp@company.com", IF([Column A]@row = "JM", "jm@company.com", "")))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
@TJB_Newbie Just FYI, you'll need to use this in a Contact type column in order to use the email address to send automated alerts or update requests, or approval processes. You don't want to use OR here, since you need a different result depending on the initials provided. We can do this with nested IFs:
=IF([Column A]@row = "KA", "ka@company.com", IF([Column A]@row = "PP", "pp@company.com", IF([Column A]@row = "JM", "jm@company.com", "")))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thanks, Jeff. I had not thought about nested IF statements. Much appreciated.
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
- 67 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!