#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Round a number help

Hi I want to round up a number only if the decimal part is greater than 0.25,
if not leave it as a whole number
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Round a number help

Round up a number to what, next integer?

--


Regards,


Peo Sjoblom

"Mary" wrote in message
...
Hi I want to round up a number only if the decimal part is greater than
0.25,
if not leave it as a whole number
Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,081
Default Round a number help

=if(mod(a1,1).25,int(a1)+1,a1)

If A1 = 2.3, that formula will give you 3
If A1 = 2.2, that formula will give you 2.2

If you want 2.2 to be turned into 2.0, then use

=if(mod(a1,1).25,int(a1)+1,int(a1))



"Mary" wrote:

Hi I want to round up a number only if the decimal part is greater than 0.25,
if not leave it as a whole number
Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,327
Default Round a number help

=ROUND(A1+0.245,0)

HTH. Best wishes Harald

"Mary" skrev i melding
...
Hi I want to round up a number only if the decimal part is greater than
0.25,
if not leave it as a whole number
Thank you.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Round a number help

Thank you so much Duke. It worked.

"Duke Carey" wrote:

=if(mod(a1,1).25,int(a1)+1,a1)

If A1 = 2.3, that formula will give you 3
If A1 = 2.2, that formula will give you 2.2

If you want 2.2 to be turned into 2.0, then use

=if(mod(a1,1).25,int(a1)+1,int(a1))



"Mary" wrote:

Hi I want to round up a number only if the decimal part is greater than 0.25,
if not leave it as a whole number
Thank you.

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
Round number to the thousands without changing underlying number Tim Caldwell Excel Discussion (Misc queries) 3 June 13th 07 09:37 PM
Excel. How to round a number to nearest half number? HaraldS Excel Discussion (Misc queries) 2 February 19th 07 09:50 AM
Can I increase a number by 5.5% and then round that number to the. Jeff Thornburg Excel Discussion (Misc queries) 1 June 28th 06 05:26 PM
How can i round a number to closest tenth number? rayne95 Excel Worksheet Functions 3 June 19th 06 09:34 PM
How to make a number round up/down to a set number David S Excel Worksheet Functions 1 April 7th 05 04:20 PM


All times are GMT +1. The time now is 06:58 PM.

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

About Us

"It's about Microsoft Excel"