Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default cut off number in excel cell vs. rounding

Dear Reader,

I have got following simple problem that seems to be hard to solve:

I have an AS 400 system calculation that adds $ amounts on the
condition that all decimal places bigger than 2 are cut off. Finally
the total of all these numbers is calculated.

Now these numbers are read out into excel but with their full length of
decimal places which is often more than 2 decimal places. If I round
these numbers the total as well as each number differs from the total
cell number I get when every decimal place bigger than 2 is cut off.

The only way to fix that so far is deleting the decimal places of each
number manually. That took me hours.

Isn't there any trick to shorten this "waste of time"?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default cut off number in excel cell vs. rounding


Say your values are in A:A. Insert a column to the right. Select your
range of values. Go to DataText to Columns. Select Fixed Width in
step one. In Step two insert a break after your second decimal place.
Click Next and Finish. Delete column B where your extra decimal place
values are.

If you'd rather use a formula you could use,

=VALUE(FIXED(A1,2))

Copy down you range as needed.

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=562206

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default cut off number in excel cell vs. rounding

Use the Trunc() function.

=Round(12.2156,2)
Returns 12.22

=Trunc(12.2156,2)
Returns 12.21
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
wrote in message
ups.com...
Dear Reader,

I have got following simple problem that seems to be hard to solve:

I have an AS 400 system calculation that adds $ amounts on the
condition that all decimal places bigger than 2 are cut off. Finally
the total of all these numbers is calculated.

Now these numbers are read out into excel but with their full length of
decimal places which is often more than 2 decimal places. If I round
these numbers the total as well as each number differs from the total
cell number I get when every decimal place bigger than 2 is cut off.

The only way to fix that so far is deleting the decimal places of each
number manually. That took me hours.

Isn't there any trick to shorten this "waste of time"?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default cut off number in excel cell vs. rounding

Round them down

=ROUNDDOWN(A1,2)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
ups.com...
Dear Reader,

I have got following simple problem that seems to be hard to solve:

I have an AS 400 system calculation that adds $ amounts on the
condition that all decimal places bigger than 2 are cut off. Finally
the total of all these numbers is calculated.

Now these numbers are read out into excel but with their full length of
decimal places which is often more than 2 decimal places. If I round
these numbers the total as well as each number differs from the total
cell number I get when every decimal place bigger than 2 is cut off.

The only way to fix that so far is deleting the decimal places of each
number manually. That took me hours.

Isn't there any trick to shorten this "waste of time"?

Thanks



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default cut off number in excel cell vs. rounding

Can you give us a sample of the actual data? Do the numbers have a variety
of decimals and a variety of digits before the decimal?

" wrote:

Dear Reader,

I have got following simple problem that seems to be hard to solve:

I have an AS 400 system calculation that adds $ amounts on the
condition that all decimal places bigger than 2 are cut off. Finally
the total of all these numbers is calculated.

Now these numbers are read out into excel but with their full length of
decimal places which is often more than 2 decimal places. If I round
these numbers the total as well as each number differs from the total
cell number I get when every decimal place bigger than 2 is cut off.

The only way to fix that so far is deleting the decimal places of each
number manually. That took me hours.

Isn't there any trick to shorten this "waste of time"?

Thanks




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default cut off number in excel cell vs. rounding


Disregard my formula. FIXED still rounds up. TRUNC or ROUNDDOWN would
be what you are looking for. Sorry for the erroneous post. The Text
to Columns solution would work as well.


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=562206

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
how can I subtract excel cell values that contain both a number a. John Sayaff Excel Discussion (Misc queries) 4 April 2nd 23 07:24 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
how do i set up excel to copy from one cell to a given number of . ronmjo Excel Discussion (Misc queries) 3 January 18th 05 08:49 PM


All times are GMT +1. The time now is 02:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"