Aug 22 2022 09:54 AM
I need help with formating a column that I cannot change the number formating in the cells.
The data is $ and come over in this format 3456 and is missing the decimal point in the middle 34.56 -
I can add .00 to them but not add the . in the middle of the number.
Aug 22 2022 10:31 AM
It may be that you are working with text and not numbers, in which case
= SUBSTITUTE(amounts,
RIGHT(amounts,2),
"." & RIGHT(amounts,2))
would return a text string of the correct appearance. If, on the other hand, they are numbers
= amounts/100
would correct the error.
Aug 22 2022 11:57 AM
Aug 22 2022 12:33 PM
Aug 22 2022 12:40 PM
Aug 22 2022 04:00 PM
With 365, I might go for something a little more ambitious.
= LET(
cents, RIGHT(amounts,2),
dollars, LEFT(amounts, LEN(amounts) - 2),
dollars & "." & cents
)
leaves the results as text or, if the text starts with a "$" sign,
= LET(
cents, RIGHT(amounts,2),
dollars, MID(amounts, 2, LEN(amounts) - 3),
dollars + cents/100
)
would return the results as numbers ready for formatting.