Forum Discussion
Conditional Formatting doesn't work with formula result
- Dec 09, 2022
quick answer if I'm pretty sure your problem is the 'shortened' result is TEXT and not a number. Simply add = --( original formula ) to force excel to convert it into a number or use VALUE( orig formula). So in your example it would be:
=--(LEFT(E12,4)&RIGHT(E12,LEN(E12)-6))
FYI - another thought (not related to the actual problem) is you could use SUBSTITUTE() to replace "-0" with "" to remove those 2 characters instead of getting LEFT and RIGHT and putting them back together so again in your example it would be:=--SUBSTITUTE(E12,"-0","")
quick answer if I'm pretty sure your problem is the 'shortened' result is TEXT and not a number. Simply add = --( original formula ) to force excel to convert it into a number or use VALUE( orig formula). So in your example it would be:
=--(LEFT(E12,4)&RIGHT(E12,LEN(E12)-6))
FYI - another thought (not related to the actual problem) is you could use SUBSTITUTE() to replace "-0" with "" to remove those 2 characters instead of getting LEFT and RIGHT and putting them back together so again in your example it would be:
=--SUBSTITUTE(E12,"-0","")
Thank you this has saved my sanity