#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default rounding

Hi,
I found a way to round numbers like 6.4 to 6.5
The formula works just perfect but, rounding 6.2 returns 6.0
Is there a way to display only 6 instead of 6.0???
The problem is when I limit the decimal place to 0 I never get 6.5....
Thanks
JP


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default rounding

Hi
AFAIK this is not really possible if you want the numbers to remain numeric
values. I can only think about a macro solution

"Jean-Paul De Winter" wrote:

Hi,
I found a way to round numbers like 6.4 to 6.5
The formula works just perfect but, rounding 6.2 returns 6.0
Is there a way to display only 6 instead of 6.0???
The problem is when I limit the decimal place to 0 I never get 6.5....
Thanks
JP



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default rounding

The result is a "final resul" so nu further calculation is needed...
It's the % pupils get on their monthly report...
JP
"Frank Kabel" schreef in bericht
...
Hi
AFAIK this is not really possible if you want the numbers to remain

numeric
values. I can only think about a macro solution

"Jean-Paul De Winter" wrote:

Hi,
I found a way to round numbers like 6.4 to 6.5
The formula works just perfect but, rounding 6.2 returns 6.0
Is there a way to display only 6 instead of 6.0???
The problem is when I limit the decimal place to 0 I never get 6.5....
Thanks
JP





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default rounding

Hi
1. One way to try (works for me): Format the target cell as 'General' and
use a formula such as
=ROUND(A1*2,0)/2

2. If this does not work try
try
=IF(ROUND(A1*2,0)/2=TRUNC(A1),TEXT(TRUNC(A1),"0"),TEXT(ROUND(A1*2,0)/2,"0.0")

"Jean-Paul De WInter" wrote:

The result is a "final resul" so nu further calculation is needed...
It's the % pupils get on their monthly report...
JP
"Frank Kabel" schreef in bericht
...
Hi
AFAIK this is not really possible if you want the numbers to remain

numeric
values. I can only think about a macro solution

"Jean-Paul De Winter" wrote:

Hi,
I found a way to round numbers like 6.4 to 6.5
The formula works just perfect but, rounding 6.2 returns 6.0
Is there a way to display only 6 instead of 6.0???
The problem is when I limit the decimal place to 0 I never get 6.5....
Thanks
JP






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default rounding

yep... thanks
JP
"Frank Kabel" schreef in bericht
...
Hi
1. One way to try (works for me): Format the target cell as 'General' and
use a formula such as
=ROUND(A1*2,0)/2

2. If this does not work try
try

=IF(ROUND(A1*2,0)/2=TRUNC(A1),TEXT(TRUNC(A1),"0"),TEXT(ROUND(A1*2,0)/2,"0.0"
)

"Jean-Paul De WInter" wrote:

The result is a "final resul" so nu further calculation is needed...
It's the % pupils get on their monthly report...
JP
"Frank Kabel" schreef in bericht
...
Hi
AFAIK this is not really possible if you want the numbers to remain

numeric
values. I can only think about a macro solution

"Jean-Paul De Winter" wrote:

Hi,
I found a way to round numbers like 6.4 to 6.5
The formula works just perfect but, rounding 6.2 returns 6.0
Is there a way to display only 6 instead of 6.0???
The problem is when I limit the decimal place to 0 I never get

6.5....
Thanks
JP










  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default rounding

On Tue, 26 Oct 2004 11:40:59 GMT, "Jean-Paul De Winter"
wrote:

Hi,
I found a way to round numbers like 6.4 to 6.5
The formula works just perfect but, rounding 6.2 returns 6.0
Is there a way to display only 6 instead of 6.0???
The problem is when I limit the decimal place to 0 I never get 6.5....
Thanks
JP


Format the cell as "General".


--ron
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
Rounding off ace Excel Discussion (Misc queries) 3 May 20th 09 03:12 PM
ROUNDING FORMULA =ROUND(B12/$B$10,1) ROUNDING TO HIGH SunshineinFt.Myers[_2_] Excel Worksheet Functions 7 March 5th 09 06:41 PM
Rounding up Kavi Excel Worksheet Functions 1 October 24th 08 09:16 AM
ROUNDING EDB Excel Worksheet Functions 2 October 17th 08 05:21 PM
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM


All times are GMT +1. The time now is 02:44 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"