It’s simple math. Given a number X and a rounding factor N, the formula would be:
round(X / N)*N
Related Contents:
- Sorting a range of values correctly in vba
- Levenshtein Distance in VBA [closed]
- Excel column number from column name
- Can VBA Reach Across Instances of Excel?
- Excel VBA – Delete empty rows
- What does the Call keyword do in VB6?
- Saving excel worksheet to CSV files with filename+worksheet name using VB [duplicate]
- Getting Error 3340 Query ‘ ‘ is corrupt while executing queries DoCmd.RunSQL
- How to compare two entire rows in a sheet
- Protecting cells in Excel but allow these to be modified by VBA script
- Select first empty cell in column F starting from row 1. (without using offset )
- Efficient way to delete entire row if cell doesn’t contain ‘@’ [duplicate]
- Deleting a file in VBA
- How to check for empty array in vba macro [duplicate]
- Detect merged cells in VBA Excel with MergeArea
- Conditional Formatting using Excel VBA code
- Use autofilter on more than 2 criteria
- Excel VBA Load worksheet in Function
- Using VBA code, how to export Excel worksheets as image in Excel 2003?
- How to count up text of a different font colour in excel
- Copy filtered data to another sheet using VBA
- VBA Adding a class to a collection [duplicate]
- Best workaround for VBA Transpose array length limit?
- VBA collection: list of keys
- VBA Integer Overflow at 70,000
- vba paste not working
- Open an html page in default browser with VBA?
- Determining whether an object is a member of a collection in VBA
- Excel VBA Delete Rows
- VBA EXCEL To Prompt User Response to Select Folder and Return the Path as String Variable [duplicate]
- Saving a Excel File into .txt format without quotes
- Return a range from A1 to the true last used cell
- What is the function of FormulaR1C1?
- Compiler Error: User-defined types not defined
- Automatically generating handling of issues
- TextJoin UDF For Excel 2013
- Call keyword – deprecated or not
- Load csv file into a VBA array rather than Excel Sheet
- How to add items to a combobox in a form in excel VBA?
- Change color of certain characters in a cell
- Can I Get the Source Range Of Excel Clipboard Data?
- Range.Find not making a difference between January and November (February and December) in VBA Excel
- How do I use variables to set properties in VBA (Excel)
- VBA – How the colon `:` works in VBA code with condition
- Sheet protection: UserInterFaceOnly gone
- Difference in type between using and not using Set keyword
- Removing the password from a VBA project
- Use getElementById on HTMLElement instead of HTMLDocument
- Why VBA goes to error handling code when there is no error?
- How to comment and uncomment blocks of code in the Office VBA Editor