Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Rounding up to a set of specific numbers?


Does anyone know how I can round a number up to a specific set of
numbers.

I need to round a number to the nearest of the following numbers:
250
350
450
550
650
750
850
950
1050
1150
1250
...
...
etc

The numbers above are in a range B3:AC3.

Eg 1: 260 becomes 350
Eg 2: 700 becomes 750

Any ideas?

Bradles


--
bradles
------------------------------------------------------------------------
bradles's Profile: http://www.excelforum.com/member.php...nfo&userid=998
View this thread: http://www.excelforum.com/showthread...hreadid=569322

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Rounding up to a set of specific numbers?

Hi

Try something like this, with your value in A2
=HLOOKUP(A2+90,B3:AC3,1,TRUE)

Hope this helps.
Andy.

"bradles" wrote in
message ...

Does anyone know how I can round a number up to a specific set of
numbers.

I need to round a number to the nearest of the following numbers:
250
350
450
550
650
750
850
950
1050
1150
1250
..
..
etc

The numbers above are in a range B3:AC3.

Eg 1: 260 becomes 350
Eg 2: 700 becomes 750

Any ideas?

Bradles


--
bradles
------------------------------------------------------------------------
bradles's Profile:
http://www.excelforum.com/member.php...nfo&userid=998
View this thread: http://www.excelforum.com/showthread...hreadid=569322



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Rounding up to a set of specific numbers?


Hi

Try something like this, with your value in A2
=HLOOKUP(A2+90,B3:AC3,1,TRUE)

Hope this helps.
Andy.

That almost had it Andy. Only problem is: what if the number is 250.1.
I need that to be rounded up to 350 because it is greater than 250.

Your formular in that case would be looking up 250.1+90 = 349.1. So it
would still drop down to 250.

Any more ideas?

Brad


--
bradles
------------------------------------------------------------------------
bradles's Profile: http://www.excelforum.com/member.php...nfo&userid=998
View this thread: http://www.excelforum.com/showthread...hreadid=569322

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Rounding up to a set of specific numbers?

With 1250,1150...250 in A1:A11 (sorted descending) and your number in B1:

=INDEX(A1:A11,MATCH(B1,A1:A11,-1))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"bradles" wrote in message
...
|
| Does anyone know how I can round a number up to a specific set of
| numbers.
|
| I need to round a number to the nearest of the following numbers:
| 250
| 350
| 450
| 550
| 650
| 750
| 850
| 950
| 1050
| 1150
| 1250
| ..
| ..
| etc
|
| The numbers above are in a range B3:AC3.
|
| Eg 1: 260 becomes 350
| Eg 2: 700 becomes 750
|
| Any ideas?
|
| Bradles
|
|
| --
| bradles
| ------------------------------------------------------------------------
| bradles's Profile: http://www.excelforum.com/member.php...nfo&userid=998
| View this thread: http://www.excelforum.com/showthread...hreadid=569322
|


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Rounding up to a set of specific numbers?

Hi

Change the A2+90 to A2+99.9999 or similar.
Sorry, I didn't realise you'd be using decimals.

Andy.

"bradles" wrote in
message ...

Hi

Try something like this, with your value in A2
=HLOOKUP(A2+90,B3:AC3,1,TRUE)

Hope this helps.
Andy.

That almost had it Andy. Only problem is: what if the number is 250.1.
I need that to be rounded up to 350 because it is greater than 250.

Your formular in that case would be looking up 250.1+90 = 349.1. So it
would still drop down to 250.

Any more ideas?

Brad


--
bradles
------------------------------------------------------------------------
bradles's Profile:
http://www.excelforum.com/member.php...nfo&userid=998
View this thread: http://www.excelforum.com/showthread...hreadid=569322





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Rounding up to a set of specific numbers?


Change the A2+90 to A2+99.9999 or similar.
Sorry, I didn't realise you'd be using decimals.

Andy.


Thanks Andy,

I think that's done it. Much appreciated.

Brad.


--
bradles
------------------------------------------------------------------------
bradles's Profile: http://www.excelforum.com/member.php...nfo&userid=998
View this thread: http://www.excelforum.com/showthread...hreadid=569322

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 numbers up or down boyshanks Excel Discussion (Misc queries) 13 April 8th 09 03:03 PM
Select specific numbers from a list based on position judoist Excel Discussion (Misc queries) 1 November 21st 05 04:19 PM
counting only specific numbers in column Alex C Excel Worksheet Functions 2 May 25th 05 08:32 PM
How do I add a range of numbers to sum a specific total? SJoshi Excel Worksheet Functions 3 February 15th 05 01:16 PM
How do I make Excel stop rounding off my numbers that are 16 digi. Aida Excel Discussion (Misc queries) 1 December 6th 04 04:34 PM


All times are GMT +1. The time now is 07:46 AM.

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"