Galgenstrick
New Member
- Joined
- Apr 21, 2012
- Messages
- 43
This is a slightly weird questions, but I need a decimal converted to a fraction a certain way, similar to the fractional number formatting. I'm guessing this will have to be done in VBA
Here's an example of what I'm looking to do:
I have a cell that is always rounded to the nearest 0.5, I want to convert that to a fraction of either 1/16" if the number is whole, or 1/32" if the number ends in 0.5.
Example:
0.5 converted to 1/32"
1 converted to 1/16"
3 converted to 3/16"
3.5 converted to 7/32"
-5 converted to -5/16"
-5.5 converted to -11/32"
etc...
Here's an example of what I'm looking to do:
I have a cell that is always rounded to the nearest 0.5, I want to convert that to a fraction of either 1/16" if the number is whole, or 1/32" if the number ends in 0.5.
Example:
0.5 converted to 1/32"
1 converted to 1/16"
3 converted to 3/16"
3.5 converted to 7/32"
-5 converted to -5/16"
-5.5 converted to -11/32"
etc...