LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Rounding numbers up or down in same formula

On Nov 15, 4:43 pm, JE McGimpsey wrote:
Assuming your values are integers, one way:
=CEILING(A1 - 2.0000000001, 5)


Given your assumption, why not simply:

=ceiling(A1 - 2, 5)

In both cases (yours and mine), this assumes A1 = 2.

But I would write CEILING(INT(A1)-2,5) to avoid the assumption.


----- original posting -----

On Nov 15, 4:43*pm, JE McGimpsey wrote:
Assuming your values are integers, one way:

* *=CEILING(A1 - 2.0000000001, 5)

In article ,



*Tired wrote:
A value ending in 0 through 2 needs to round down to 0 (e.g., $25,402 =
$25,400).


A value ending in 3 through 5, needs to round up to the nearest 5 (e.g.,
$24,174 = $24,175).


A value ending in 6 through 7, needs to round down to the nearest 5 (e.g.,
$18,217 - $18,215).


A value ending in 8 or 9, needs to round up the nearest 10 (e.g., $14,408 =
$14410)



 
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 whole numbers Bob Excel Worksheet Functions 6 October 8th 08 04:46 AM
numbers rounding mopat Excel Discussion (Misc queries) 1 November 18th 07 05:00 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 numbers VPHR Excel Discussion (Misc queries) 4 January 10th 07 05:15 PM
Rounding up numbers Michelle Nichols via OfficeKB.com Excel Discussion (Misc queries) 2 April 28th 05 05:03 PM


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