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 - Access to this page requires authorization. You can try changing directories. ... Rounds number down, toward zero, to the nearest multiple of significance. ... This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage.
Discussions

Functions: Round, Int, Fix, Floor Ceiling across Excel, MSAccess, MSSQL TSQL | Access World Forums
My data moves from Access prototypes to SQL Server (using scalar functions), and outputs into Excel using VBA with Excel Object Model. Does anyone know of singular location that outlines the difference between the the various rounding functions as they relate to the data types? Each SQL TSQL... More on access-programmers.co.uk
🌐 access-programmers.co.uk
February 27, 2015
Using math functions in Sql with MS Access - Stack Overflow
Replace Floor() with Int(). I learned this by searching in the Access help files, in this case, hitting F1 while in the query designer, and searching for "functions." That took me to a help topic comparing VBA and T-SQL functions. More on stackoverflow.com
🌐 stackoverflow.com
Floor function in Access
What I have it doing in Excel is ... hour (Floor(3/2/2005 22:25:23, 1/24) so that I get 3/2/2005 22:00:00. I then have to add values to this date/time. How can I get access to do the same thing? I tried using the round function (round(3/2/2005 22:25:23, 1/24) but got 38143 as a value rather then a date value. Any ideas on how to correct this? Thanks! Jessica ... You can reference in VBA the Excel ... More on office-forums.com
🌐 office-forums.com
7
March 23, 2005
Excel VBA - Floor on Column's Used Rows - Stack Overflow
I am trying to convert the used range of a column to hourly data using floor. As a function in Excel I have =FLOOR(A2, "1:00") So 2016-07-01 07:59:59.0000000 would become 01-07/2016 7:00 I would... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Access World
access-programmers.co.uk › home › forums › microsoft access discussion › queries
Functions: Round, Int, Fix, Floor Ceiling across Excel, MSAccess, MSSQL TSQL | Access World Forums
February 27, 2015 - To put this in perspective with Access functions: fix() <--> Floor() fix()+1 <--> Ceiling() In T-SQL - there is Round, Floor, Ceiling ROUND - Rounds a positive or negative value to a specific length and accepts three values: Value to round, Positive or negative number ( Note: data type can be an int (tiny, small, big), decimal, numeric, money or smallmoney), Precision when rounding Positive number rounds on the right side of the decimal point Negative number rounds on the left side of the decimal point Truncation of the value to round occurs when this value is not 0 or not included CEILING - E
Top answer
1 of 3
14

Replace Floor() with Int(). I learned this by searching in the Access help files, in this case, hitting F1 while in the query designer, and searching for "functions." That took me to a help topic comparing VBA and T-SQL functions.

You should probably have a look at the Access database engine SQL Reference. I can't find a good online reference for functions that are supported through the Jet/ACE and Access expression services. For some unknown reason, the Access Help has not included Jet/ACE expressions since Jet 3.0 and this aged resource was finally removed from MSDN a year or two ago :(

Keep in mind that the Jet/ACE expression service for use outside Access supports a much smaller subset of functions that is possible using the Access Expression Service when running your SQL inside Access 2007. Broadly speaking, the VBA5 functions (as distinct from methods) that involve simple data types (as distinct from, say, arrays or objects) are supported outside of the Access user interface; for an approximate list of function names see the 'Use Sandbox mode operations with Jet 4.0 Service Pack 3 and later' section of this MSDN article.

Also, the functions reference in the VBE help should be a starting place.

The help files are not perfect, but a little searching ought to get you what you need.

2 of 3
1
Public Function Floor(ByVal x As Double) As Double
'Be Because VBA does not have a Floor function.
'Works for positive numbers
'Turns 3.9 -> 3
'Note: Round(3.9) = 4

    Dim s As String, dPos As Integer
    s = CStr(x)
    dPos = InStr(s, ".")
    Floor = CLng(Left(s, dPos - 1))
End Function
🌐
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?
Find elsewhere
🌐
Microsoft Office Forums
office-forums.com › archive › newsgroup archive › access newsgroups › access vba modules
Floor function in Access | Microsoft Office Forums
March 23, 2005 - Not tested Public Function MyFloor(number As Double, significance As Double) As Double MyFloor = Floor(number, significance) End Function - Raoul : Raoul, This sounds like the way for me to go...but I am not sure what you mean by parameter list and resulttype. Is result type the output data type? What would parameter list be? Thanks! Jessica : You can reference in VBA the Excel Library. Then create a function in vba which then can be used everywhere in access public function MyFloor([parameter list]) as [resulttype] MyFloor=Floor([Parameter list]) end function - Raoul : Greetings!
🌐
Automate Excel
automateexcel.com › home › vba round, roundup, rounddown関数
VBA Round, RoundUp, and RoundDown Functions - Automate Excel
March 16, 2024 - So, let’s look at an example, ...ling_Math(unitcount, 5) MsgBox "The value is " & ceilingmathUnitcount End Sub ... VBA does not have a Floor.Math function equivalent either....
🌐
PC Review
pcreview.co.uk › newsgroups › microsoft access › microsoft access vba modules
Floor function in Access | PC Review
March 22, 2005 - Not tested Public Function MyFloor(number As Double, significance As Double) As Double MyFloor = Floor(number, significance) End Function - Raoul : Raoul, This sounds like the way for me to go...but I am not sure what you mean by parameter list and resulttype. Is result type the output data type? What would parameter list be? Thanks! Jessica : You can reference in VBA the Excel Library. Then create a function in vba which then can be used everywhere in access public function MyFloor([parameter list]) as [resulttype] MyFloor=Floor([Parameter list]) end function - Raoul : Greetings!
🌐
Automate Excel
automateexcel.com › home › floor function – examples in excel, vba, google sheets
FLOOR Function - Examples in Excel, VBA, Google Sheets
November 9, 2023 - Learn how to use Excel's FLOOR function for both Mac and PC. Includes numerous formula examples in Excel and VBA (WITH PICTURES).
🌐
Auto VBA
autovbax.com › learn › vba › round-functions.html
VBA Round, RoundUp, and RoundDown Functions - Auto VBA
So, let’s look at an example, ...ling_Math(unitcount, 5) MsgBox "The value is " & ceilingmathUnitcount End Sub ... VBA does not have a Floor.Math function equivalent either....
🌐
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)
🌐
ConsultDMW
consultdmw.com › access-rounding-numbers.html
Access VBA Function That Rounds Numbers Like Excel ROUND
April 26, 2024 - Microsoft Access VBA function that rounds numbers up and down like Excel ROUND function to set number of decimal places in results to calculations
🌐
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 ...
🌐
Access World
access-programmers.co.uk › home › forums › microsoft access discussion › forms
Still floored by the FLOOR function | Access World Forums
January 20, 2003 - What stars! Now why couldn't MSoft have made this easy. Function worked a treat. In my form I can now do the calculation in the data source as =FLOOR(([field1]*[field2]),0.01) and get the right answers.