Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Rounding to the nearest 25 including negative numbers??

I have the following formula
=CEILING(Sheet4!BY6, 25)
How I get it to round negative numbers too

It works with positive numbers but when I insert ie -360, it should read
-350 but I get the following #NUM!
--
Bob
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default Rounding to the nearest 25 including negative numbers??

You need a little IF/THEN assistance:

=IF(Sheet4!BY60, CEILING(Sheet4!BY6,25), FLOOR(ABS(Sheet4!BY6),25)*-1)
--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Bob" wrote:

I have the following formula
=CEILING(Sheet4!BY6, 25)
How I get it to round negative numbers too

It works with positive numbers but when I insert ie -360, it should read
-350 but I get the following #NUM!
--
Bob

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default Rounding to the nearest 25 including negative numbers??

By the way, your thread title says "nearest 25" but you're example used
CEILING, which always rounds UP. So my first answer was in the same vein.

But if you really want the numbers to round to the nearest 25, both up or
down, then use this:

=IF(G30,MROUND(G3,25),MROUND(ABS(G3),25)*-1)

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Bob" wrote:

I have the following formula
=CEILING(Sheet4!BY6, 25)
How I get it to round negative numbers too

It works with positive numbers but when I insert ie -360, it should read
-350 but I get the following #NUM!
--
Bob

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Rounding to the nearest 25 including negative numbers??

On Sat, 9 May 2009 09:38:01 -0700, Bob wrote:

I have the following formula
=CEILING(Sheet4!BY6, 25)
How I get it to round negative numbers too

It works with positive numbers but when I insert ie -360, it should read
-350 but I get the following #NUM!


=round(sheet4!BY6/25,0)*25
--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 numbers to the nearest dollar amount HelpExcel Excel Worksheet Functions 11 April 6th 09 08:35 PM
Rounding formulas for negative numbers Pat Excel Worksheet Functions 3 August 31st 06 06:43 PM
Rounding numbers to the nearest 5 or 0 Fieldmedic Excel Worksheet Functions 3 July 17th 05 06:51 AM
Ploting data with a large range including negative numbers Hoochi Coochi Man Charts and Charting in Excel 1 April 28th 05 03:18 PM
Rounding numbers to the nearest thousand Mark Excel Discussion (Misc queries) 2 March 10th 05 12:13 PM


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