IF cell contains specific letter then return value
I'd like to return a value of 120/208 in Service Volts for Xfmr# ending in E
value of 277/480 for Xfmr# ending in X
value of 120/240 for Xfmr# ending with no letter
Thanks
Best Answer
-
Hi @mromaire,
Try this!
=IF(RIGHT([xfmr#]@row, 1) = "X", "277/480", IF(RIGHT([xfmr#]@row, 1) = "E", "120/208", "120/240"))
Hope that helps!
BRgds,
-Ray
Answers
-
Hi @mromaire,
Try this!
=IF(RIGHT([xfmr#]@row, 1) = "X", "277/480", IF(RIGHT([xfmr#]@row, 1) = "E", "120/208", "120/240"))
Hope that helps!
BRgds,
-Ray
-
Thats it! Thanks Ray.
-
I forgot to add how would I exclude cells that are blank?
-
Hi @mromaire,
So glad it worked for you. To exclude the blanks, use this:
=IF(ISBLANK([xfmr#]@row), "", IF(RIGHT([xfmr#]@row, 1) = "X", "277/480", IF(RIGHT([xfmr#]@row, 1) = "E", "120/208", "120/240")))
BRgds,
-Ray
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 430 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!