ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Problems truncating a column (https://www.excelbanter.com/excel-discussion-misc-queries/224640-problems-truncating-column.html)

Abbey Normal

Problems truncating a column
 
I have a column of numbers on a sheet w/22,000 rows, I'm trying to truncate
the decimal. If I try =Trunc(a2,0) on 1.093 I get 1 which is what I want. But
if I copy the cell to fill the rest of the column, 0 will truncate to 1. What
am I doing wrong?
Thanks for any help,

Sheeloo[_4_]

Problems truncating a column
 
You should not...

Do you mean to say that
=TRUN(0,0) is giving you 1?

Can you post the number which is truncating to 1?

I tried with
1.0989
2.0989
3.0989
4.0989
5.0989
0

and got
1
2
3
4
5
0



"Abbey Normal" wrote:

I have a column of numbers on a sheet w/22,000 rows, I'm trying to truncate
the decimal. If I try =Trunc(a2,0) on 1.093 I get 1 which is what I want. But
if I copy the cell to fill the rest of the column, 0 will truncate to 1. What
am I doing wrong?
Thanks for any help,


Abbey Normal

Problems truncating a column
 
I wasn't including the number in the formula. I was including the cell, and
then copying it down the entire column. Is that not acceptable on this
formula?

"Abbey Normal" wrote:

I have a column of numbers on a sheet w/22,000 rows, I'm trying to truncate
the decimal. If I try =Trunc(a2,0) on 1.093 I get 1 which is what I want. But
if I copy the cell to fill the rest of the column, 0 will truncate to 1. What
am I doing wrong?
Thanks for any help,


Sheeloo[_4_]

Problems truncating a column
 
I just gave that as an example... you can use cell reference in the formula
(as in any Excel formula)... I meant to say that does the cell with 0 is
giving you the problem when you use TRUN on it?

Pl. paste the no which is giving you trouble and the result.

"Abbey Normal" wrote:

I wasn't including the number in the formula. I was including the cell, and
then copying it down the entire column. Is that not acceptable on this
formula?

"Abbey Normal" wrote:

I have a column of numbers on a sheet w/22,000 rows, I'm trying to truncate
the decimal. If I try =Trunc(a2,0) on 1.093 I get 1 which is what I want. But
if I copy the cell to fill the rest of the column, 0 will truncate to 1. What
am I doing wrong?
Thanks for any help,



All times are GMT +1. The time now is 02:22 AM.

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