So, I am trying to write a quick way to format metric fastener pitches in a table. The values are converted to a string, as I'm outputting a completely descriptive size, based on the input parameters. The problem I'm encountering is that I can't find a way to force Excel to drop all trailing zeroes EXCEPT in the case of integers, where I want them to display to one place.
So, IF a value is an integer, THEN, display X.0
ELSE, normal behavior for general numbers. (1.2, 1.37, etc)
How might I accomplish this?
Thank you.
So, IF a value is an integer, THEN, display X.0
ELSE, normal behavior for general numbers. (1.2, 1.37, etc)
How might I accomplish this?
Thank you.