Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default How can you round a number to the nearest 900?

I think you're onto something, Ed! It appears that you can expand your
formula to calculate any value, v, to the nearest integer, n, between 100 &
999:

=(INT((v+500-n)/1000)+n

So to the nearest 900:
=INT((v+500-900)/1000)+900
or
=INT((v-400)/1000)+900 ...same as your post.

To the nearest 300:
=INT((v+500-300)/1000)+300
or
=INT((v+200)/1000)+300



"Ed Cones" wrote:

Here's a version that seems to work. It rounds up from 400 and down from 399.

=(INT((G13-400)/1000)*1000)+900

"trainer07" wrote:

what we are looking for is to round to the nearest 900. Example: if you have
$100,500 we want it rounded to $100,900 If we have $100,200 we want it
rounded to $99,900

Thanks!

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 a number to the Nearest .25 Dave E Excel Worksheet Functions 3 May 15th 23 11:47 AM
How do I round a number to the nearest 900? trainer07 Excel Discussion (Misc queries) 1 February 6th 08 05:40 PM
Is there a formula to round a number to the nearest .09? WenMess Excel Worksheet Functions 5 February 2nd 08 06:30 AM
How do I round a 4 digits number to it's nearest 10 Fabian Matrix Excel Worksheet Functions 2 December 30th 07 04:22 PM
want to round a number to the nearest quarter 0.25-0.50-0.45-0.00 Vangelis Excel Worksheet Functions 3 October 1st 07 03:48 PM


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