ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Splitting decimals (https://www.excelbanter.com/excel-programming/407673-splitting-decimals.html)

Steve

Splitting decimals
 
I need to split a figure with a decimal value of 2 places, into 2 seperate
cells.

EG
I have a figure of 1.56 in cell a1
and I want to split it into
A2 and A3
A2 will hold the number before the decimal point and A3 will hold the number
after the decimal point.

Thanks

Rick Rothstein \(MVP - VB\)[_1460_]

Splitting decimals
 
These formulas should do what you want...

A2: =TRUNC(A1)

A3: =MOD(ABS(A1),1)

Rick


"Steve" wrote in message
...
I need to split a figure with a decimal value of 2 places, into 2 seperate
cells.

EG
I have a figure of 1.56 in cell a1
and I want to split it into
A2 and A3
A2 will hold the number before the decimal point and A3 will hold the
number
after the decimal point.

Thanks




All times are GMT +1. The time now is 03:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com