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
-
Ray Lindstrom ✭✭✭✭✭✭
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
-
Ray Lindstrom ✭✭✭✭✭✭
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
-
mromaire ✭
Thats it! Thanks Ray.
-
mromaire ✭
I forgot to add how would I exclude cells that are blank?
-
Ray Lindstrom ✭✭✭✭✭✭
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
I guess you forget to use AND( ).<\/p>
For example, <\/p>
- IF([Total Value to User Score]@row = <3.8, >4.7, \"Mild,<\/li><\/ul>
should be<\/p>
- IF(AND(<\/strong>[Total Value to User Score]@row < 3.8, [Total Value to User Score]@row > 4.7)<\/strong>, \"Mild\",<\/li><\/ul>
However, the following would be more straightforward.<\/p>
- =IF([Total Value to User Score]@row >= 4.8, \"No Pain\", <\/li>
- IF([Total Value to User Score]@row >= 3.8, \"Mild\", <\/li>
- IF([Total Value to User Score]@row >= 2.8, \"Moderate\", <\/li>
- IF([Total Value to User Score]@row >= 1.8, \"Very Severe\", <\/li>
- IF([Total Value to User Score]@row < 1.8, \"Extreme\", \"//m.santa-greenland.com/community/discussion/106782/\")))))<\/li><\/ul>
- IF(AND(<\/strong>[Total Value to User Score]@row < 3.8, [Total Value to User Score]@row > 4.7)<\/strong>, \"Mild\",<\/li><\/ul>