Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I correct rounding errors in Excel formulas? | Excel Worksheet Functions | |||
Rounding to the Nearest Eighth | Excel Discussion (Misc queries) | |||
Unwanted rounding of large number | Excel Worksheet Functions | |||
Percentage rounding error in charts | Excel Discussion (Misc queries) | |||
Banker's Rounding - need help! | Excel Discussion (Misc queries) |