#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Trying Rounding

I need to rounddown values to the nearest 7 multiple.
They will always be whole numbers.

If I have a number of 8 it needs to round down to 7.
If I have a number of 9 it needs to round down to 7.
If I have a number of 15 it needs to round down to 14.
etc...

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 418
Default Trying Rounding

Nicholas wrote:
I need to rounddown values to the nearest 7 multiple.
They will always be whole numbers.
If I have a number of 8 it needs to round down to 7.
If I have a number of 9 it needs to round down to 7.
If I have a number of 15 it needs to round down to 14.
etc...


But what should 6, 13, and 20 become? I have to ask because so many
people in this forum misuse the terms "round", "round down" and "round
up". Your subject line says "round" -- which means "round up or down
as appropriate" in my parlance -- but all of your examples say "round
down".

If you truly want to "round" (by my definition), try one of the
following:

=mround(A1, 7)

=7*round(A1/7, 0)

MROUND() requires that install and load the Excel Analysis ToolPak.
See the MROUND help page for instructions.

If you want to "round down" (always!), try the following:

=7*int(A1/7)

Note: These functions may not produce the desired results when A1
contains a negative number. If that is a concern, try them first and
make appropriate adjustments. Different individuals expect different
"desired results" for negative numbers.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Trying Rounding

=7*INT(A1/7)

"Nicholas" wrote:

I need to rounddown values to the nearest 7 multiple.
They will always be whole numbers.

If I have a number of 8 it needs to round down to 7.
If I have a number of 9 it needs to round down to 7.
If I have a number of 15 it needs to round down to 14.
etc...

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 618
Default Trying Rounding

"Nicholas" wrote in message
...
I need to rounddown values to the nearest 7 multiple.
They will always be whole numbers.

If I have a number of 8 it needs to round down to 7.
If I have a number of 9 it needs to round down to 7.
If I have a number of 15 it needs to round down to 14.
etc...


=7*INT(A1/7)

There remain the usual questions as to how you would want to treat negative
numbers, & decide whether you want INT or TRUNC.
--
David Biddulph


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
How do I correct rounding errors in Excel formulas? C. Van Dam Excel Worksheet Functions 1 August 29th 06 04:37 AM
Rounding to the Nearest Eighth L.sean9 Excel Discussion (Misc queries) 4 June 23rd 06 12:00 AM
Unwanted rounding of large number Candyman Excel Worksheet Functions 5 August 18th 05 12:32 AM
Percentage rounding error in charts Tracey Excel Discussion (Misc queries) 4 May 14th 05 04:01 AM
Banker's Rounding - need help! Somecallmejosh Excel Discussion (Misc queries) 3 January 20th 05 09:53 PM


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