Forum Discussion
GavinMc460
Dec 09, 2020Copper Contributor
Reducing multiple decimal points in a value
Hi All Would anyone know of a formula in Excel or PowerBI where we can reduce a value of multiple decimal points to just one? I have tried all the usual formulae in Excel but cant seem to locate th...
- Dec 09, 2020
GavinMc460 Perhaps this:
=LEFT(A1,FIND(".",A1,3)-1)
where A1 contains the version number and the first period never occurs after the third character in the text string.
SergeiBaklan
Dec 09, 2020Diamond Contributor
What is the logic, trim everything starting from second found dot?
- GavinMc460Dec 09, 2020Copper ContributorThat was it exactly Sergei, many thanks.
- SergeiBaklanDec 09, 2020Diamond Contributor
To be more safe with number of digits between dots I'd modify as
=LEFT(A1,FIND("@",SUBSTITUTE(A1,".","@",2),2)-1)
- Riny_van_EekelenDec 09, 2020Platinum Contributor
SergeiBaklan Ooops! Now my screen had not refreshed. So I didn't see your response pointing in the same direction I was thinking.