Of what i remember use the Int() function. ex

int(2.99) = 2 ; int(2.1)=2

and so on.

Answer from Albi on Stack Overflow
🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
Floor function in VBA code | MrExcel Message Board
August 14, 2006 - Sub test() Dim result As Long Dim starttime As Double Dim i As Long starttime = Timer For i = 1 To 3000000 'result = Int(5.65) - 1 * (Int(5.65) > i) result = Application.WorksheetFunction.Floor(5.65, 1) Next i MsgBox Timer - starttime End Sub
🌐
Microsoft Learn
learn.microsoft.com › en-us › office › vba › api › excel.worksheetfunction.floor
WorksheetFunction.Floor method (Excel) | Microsoft Learn
September 12, 2021 - Otherwise, if significance is negative, Floor rounds towards zero. For positive numbers with negative multiples of significance, Excel returns the #NUM! error value. If number is an exact multiple of significance, no rounding occurs. Have questions or feedback about Office VBA or this documentation?
🌐
Statology
statology.org › home › how to use floor function in vba (with examples)
How to Use Floor Function in VBA (With Examples)
July 24, 2023 - This tutorial explains how to use the floor function in VBA to round values down to the nearest multiple of significance, including examples.
🌐
Eileen's Lounge
eileenslounge.com › viewtopic.php
VBA Floor and Ceiling Functions - Eileen's Lounge
Just discovered that vba doesn't have floor or Ceil (Ceiling) functions. How can I make sure that a result with a remainder is rounded up to the next highest number?
🌐
TechOnTheNet
techonthenet.com › excel › formulas › floor.php
MS Excel: How to use the FLOOR Function (WS)
=FLOOR(-4.5, -1) Result: -4 · Share on: SQL · Oracle / PLSQL · SQL Server · MySQL · MariaDB · PostgreSQL · SQLite · Excel · Access · Word · HTML · CSS · JavaScript · Color Picker · C Language · ASCII · Unicode · Linux · UNIX · Techie Humor · ADDRESS (WS) AREAS (WS) CHOOSE (WS, VBA) COLUMN (WS) COLUMNS (WS) HLOOKUP (WS) HYPERLINK (WS) INDEX (WS) INDIRECT (WS) LOOKUP (WS) MATCH (WS) OFFSET (WS) ROW (WS) ROWS (WS) TRANSPOSE (WS) VLOOKUP (WS) XLOOKUP (WS) ASC (VBA) BAHTTEXT (WS) CHAR (WS) CHR (VBA) CLEAN (WS) CODE (WS) CONCAT (WS) CONCATENATE (WS) CONCATENATE with & (WS, VBA)
🌐
FasterCapital
fastercapital.com › content › VBA-Floor--Navigating-Numbers--Mastering-the-VBA-Floor-Function-for-Precise-Rounding.html
VBA Floor: Navigating Numbers: Mastering the VBA Floor Function for Precise Rounding - FasterCapital
For example, $$\lfloor 3.7 \rfloor ... where whole numbers are necessary. In VBA, the floor function can be accessed through the `WorksheetFunction` object, which allows users to utilize Excel's built-in functions within ...
Find elsewhere
🌐
Arab Psychology
scales.arabpsychology.com › psychological scales › how can i use the floor function in vba, and can you provide some examples?
How Can I Use The Floor Function In VBA, And Can You Provide Some Examples?
April 10, 2024 - To use the floor function in VBA, the syntax is “Application.WorksheetFunction.Floor(number, significance)”. The “number” parameter represents the value to be rounded down, and the “significance” parameter represents the multiple to which the number should be rounded.
🌐
Auto VBA
autovbax.com › learn › vba › round-functions.html
VBA Round, RoundUp, and RoundDown Functions - Auto VBA
In this ArticleVBA RoundSyntax of the VBA Round FunctionVBA Round a VariableVBA Rounding ResultsVBA Round Cell ValueVBA RoundUp FunctionRoundUp to the Nearest Whole NumberRoundUp Function ResultsVBA RoundDown FunctionRoundDown to the Nearest Whole NumberRoundDown Function ResultsOther VBA Rounding FunctionsVBA Ceiling – RoundUp to A Specified SignificanceVBA RoundUp To Specified Significance ResultsVBA Floor – RoundDown to A…
🌐
Automate Excel
automateexcel.com › home › vba round, roundup, rounddown関数
VBA Round, RoundUp, and RoundDown Functions - Automate Excel
March 16, 2024 - However, once again, if you want to round a number down to the nearest integer or to the nearest specified multiple of significance, then you can call Excel’s Floor.Math worksheet function from VBA.
🌐
Excel Forum
excelforum.com › excel-programming-vba-macros › 355704-ceiling-and-floor-functions.html
Thread: ceiling and floor functions
March 18, 2005 - All of my numbers are between 0 and 1. Then I want to get the ceiling of the max and the floor of the min both rounded off to the nearest 1/20th I can do this with the worksheet function ceiling(max,.05) and floor(min,.05) but when I do it in VBA my numbers always come out as 0 and 1.
🌐
GitHub
github.com › OfficeDev › VBA-content › blob › master › VBA › Excel-VBA › articles › worksheetfunction-floor-method-excel.md
VBA-content/VBA/Excel-VBA/articles/worksheetfunction-floor-method-excel.md at master · OfficeDev/VBA-content
November 14, 2024 - vbaxl10.chm137189 · excel · Excel.WorksheetFunction.Floor · c35733d5-34b9-8475-197f-4f13ae1e6c1a · 06/08/2017 · Rounds number down, toward zero, to the nearest multiple of significance.
Author   OfficeDev
🌐
Miraheze
vba.miraheze.org › wiki › FLOOR_function
FLOOR function - Visual Basic for Applications
April 12, 2019 - Rounds a number down toward zero significance. If the sign of number is positive, a value is rounded down and adjusted toward zero. If the sign of number is negative...
🌐
ExcelDemy
exceldemy.com › home › excel functions › how to use floor function in excel (11 examples)
How to Use FLOOR Function in Excel (11 Examples) - ExcelDemy
December 21, 2023 - In this article you will get to know the introduction and usage of the Excel FLOOR function. Download the workbook.
🌐
Arabpsychology
statistics.arabpsychology.com › psychological statistics › understanding the vba floor function for rounding down numbers in excel
Understanding The VBA Floor Function For Rounding Down Numbers In Excel - PSYCHOLOGICAL STATISTICS
November 9, 2025 - The pure mathematical definition of the floor function dictates that it returns the greatest integer that is less than or equal to the input number. However, the Microsoft Excel implementation, which is exposed in VBA through WorksheetFunct...
🌐
Microsoft Learn
learn.microsoft.com › en-us › office › vba › api › Excel.Floor(object)
Floor object (Excel) | Microsoft Learn
Worksheets("sheet1").ChartObjects(1).Activate ActiveChart.Floor.Interior.Color = RGB(0, 255, 255) ... Have questions or feedback about Office VBA or this documentation?