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.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!