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: 8,520
Default Rounding to the nearest 25 including negative numbers??

=IF(Sheet4!BY6<0,-CEILING(ABS(Sheet4!BY6),25),CEILING(Sheet4!BY6,25) )

There may be a different solution

If this post helps click Yes
---------------
Jacob Skaria


"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: 3,718
Default Rounding to the nearest 25 including negative numbers??

=MROUND(A1,IF(A1<0,-25,25))


"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
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Rounding to the nearest 25 including negative numbers??

Fantastic it works
Many thanks

--
Bob


"Jacob Skaria" wrote:

=IF(Sheet4!BY6<0,-CEILING(ABS(Sheet4!BY6),25),CEILING(Sheet4!BY6,25) )

There may be a different solution

If this post helps click Yes
---------------
Jacob Skaria


"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

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

Refer help on CEILING

It is supposed to return number rounded up, away from zero.
=CEILING(-2.5, 2)
Returns an error, because -2.5 and 2 have different signs (#NUM!)

You should be using
=CEILING(Sheet4!BY6, -25)

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

=IF(Sheet4!BY6<0,-CEILING(ABS(Sheet4!BY6),25),CEILING(Sheet4!BY6,25) )

There may be a different solution

If this post helps click Yes
---------------
Jacob Skaria


"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

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 to the nearest 25 including negative numbers?? Bob Excel Discussion (Misc queries) 3 May 10th 09 03:19 PM
rounding numbers to the nearest dollar amount HelpExcel Excel Worksheet Functions 11 April 6th 09 08:35 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 04:00 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"