Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default formula for rounding

I need a formula that rounds the result of a calculation
to a number exactly divisible by 250.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default formula for rounding

temp = x mod 250
if(temp<250/2)
res = x-temp
else
res = x + (250-temp)

mod is a standard arithmetic operator that returns the remainder of x
divided by y. not sure what the syntax is for VB in most other languages
it's % or 'mod'.


"Patty Hatridge" wrote in message
...
I need a formula that rounds the result of a calculation
to a number exactly divisible by 250.



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

Patty Hatridge wrote:
I need a formula that rounds the result of a calculation
to a number exactly divisible by 250.


=ROUND(A1/250,0)*250

Assuming the number to be rounded is in A1. YOu might want to check the
name of the function (ROUND), because I use Excel in spanish (REDONDEAR).

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

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 FORMULA =ROUND(B12/$B$10,1) ROUNDING TO HIGH SunshineinFt.Myers[_2_] Excel Worksheet Functions 7 March 5th 09 06:41 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
Rounding up and or down formula Potaroo New Users to Excel 6 May 6th 07 01:37 AM
Rounding Down Formula Lilbit Excel Worksheet Functions 2 March 1st 07 09:55 PM
Rounding Formula mccrimmon Excel Worksheet Functions 3 June 27th 06 12:49 PM


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

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"