I don't see any reason to avoid WorksheetFunction; I don't see any confusion here.

Number_of_layers = WorksheetFunction.RoundUp(iQty / iLayerQty, 0)

You could also roll your own function:

Function RoundUp(ByVal Value As Double)
    If Int(Value) = Value Then
        RoundUp = Value
    Else
        RoundUp = Int(Value) + 1
    End If
End Function

Call it like this:

Number_of_layers = RoundUp(iQty / iLayerQty)
Answer from D_Bester on Stack Overflow
🌐
Microsoft Learn
learn.microsoft.com › en-us › office › vba › api › excel.worksheetfunction.ceiling
WorksheetFunction.Ceiling method (Excel) | Microsoft Learn
This function is still available ... of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality. For more information about the new function, see the Ceiling_Precise ...
🌐
Automate Excel
automateexcel.com › home › ceiling function – round to multiple in excel, vba, g sheets
CEILING Function - Round to Multiple in Excel, VBA, G Sheets
November 7, 2023 - Range("C2") = Application.WorksheetFunction.Ceiling(Range("A2"), Range("B2")) Range("C3") = Application.WorksheetFunction.Ceiling(Range("A3"), Range("B3")) Range("C4") = Application.WorksheetFunction.Ceiling(Range("A4"), Range("B4")) Range("C5") = Application.WorksheetFunction.Ceiling(Range("A5"), Range("B5")) Range("C6") = Application.WorksheetFunction.Ceiling(Range("A6"), Range("B6")) Range("C7") = Application.WorksheetFunction.Ceiling(Range("A7"), Range("B7")) Range("C8") = Application.WorksheetFunction.Ceiling(Range("A8"), Range("B8")) Range("C9") = Application.WorksheetFunction.Ceiling(Range("A9"), Range("B9")) ... For the function arguments (number, etc.), you can either enter them directly into the function, or define variables to use instead. ... Practice Excel functions and formulas with our 100% free practice worksheets!
🌐
Microsoft Support
support.microsoft.com › en-us › office › ceiling-function-0a5cd7c8-0720-4f0a-bd2c-c943e510899f
CEILING function - Microsoft Support
Returns number rounded up, away from zero, to the nearest multiple of significance. For example, if you want to avoid using pennies in your prices and your product is priced at $4.42, use the formula =CEILING(4.42,0.05) to round prices up to the nearest nickel.
🌐
ExcelMojo
excelmojo.com › home › excel ceiling function
Excel CEILING Function - Formula, Examples, How to Use?
June 24, 2025 - The CEILING function in Excel is in the Formulas tab. Click Formulas → More Functions → Compatibility → CEILING to access it. ... We can use the CEILING() in Excel VBA as follows: The following table contains values for the two CEILING() ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › office › vba › api › excel.worksheetfunction.ceiling_precise
WorksheetFunction.Ceiling_Precise method (Excel) | Microsoft Learn
For example, if you want to avoid using pennies in your prices and your product is priced at $4.42, use the formula Ceiling(4.42,0.05) to round prices up to the nearest nickel.
🌐
TechOnTheNet
techonthenet.com › excel › formulas › ceiling.php
MS Excel: How to use the CEILING Function (WS)
This Excel tutorial explains how to use the Excel CEILING function with syntax and examples. The Microsoft Excel CEILING function returns a number rounded up based on a multiple of significance.
Find elsewhere
🌐
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?
🌐
IQCode
iqcode.com › code › vb › excel-vba-ceiling-function
excel vba ceiling function Code Example
The most 'performant way to accomplish this in VBA is with this custom 'function: Function Ceil&(n#) Ceil = -Int(-n) If n < 0 Then Ceil = Fix(n) End Function '--------------------------------------------------------------------- MsgBox Ceil(5.000000000000001) '<--displays: 6 MsgBox Ceil(5.999999999999999) '<--displays: 6 MsgBox Ceil(5.000000000000000) '<--displays: 5 'Note: This method is much faster than using the RoundUp() function. ... Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond. Sign up · Develop soft skills on BrainApps Complete the IQ Test ... excel vba ceiling vba function.ceiling vba round up vba ceiling ceiling vba vba ceil vba number ceiling vba Ceil function excel-vba Ceil function excelvba Ceil function excel vba ceil function vba ceiling function excel-vba ceiling function excel vba ceiling function
🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
Ceiling using VBA code | MrExcel Message Board
September 15, 2020 - I need to add a vba code for ceiling along with vlookup worksheet function. Can anyone please help? This is my code line: Worksheets("sheets").Cells(i, 24).Value = Worksheets("sheets").Cells(i, 21).Value / Application.WorksheetFunction.VLookup(Worksheets("sheets").Cells(i, 18).Value...
🌐
FasterCapital
fastercapital.com › content › VBA-Ceiling--Reaching-New-Heights--Understanding-the-VBA-Ceiling-Method-in-Data-Analysis.html
VBA Ceiling: Reaching New Heights: Understanding the VBA Ceiling Method in Data Analysis - FasterCapital
It enables the creation of user-defined functions (UDFs) that can perform calculations not available in Excel's predefined function list. For instance, a data analyst might use VBA to write a function that calculates the Ceiling of a set of numbers based on a variable significance level, which can be particularly useful in financial analysis for rounding up to the nearest specified value.
🌐
EDUCBA
educba.com › home › excel › excel resources › excel tips › ceiling function in excel
CEILING Function in Excel
August 16, 2023 - If you multiply 8 by 3, the resulting number is 24. The supplied number is 22, and the nearest multiple numbers of 8. ... So CEILING function returns the nearest multiple of the significant number to the nearest supplied number.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Excel Functions
excelfunctions.net › excel-ceiling-function.html
Excel CEILING Function
In this case, the Ceiling function reverses the direction of the rounding (i.e. rounds the supplied number ... In column B of the following spreadsheet, the Excel Ceiling function is used to round the positive and negative numbers 22.25 and -22.25 to different significance values.
🌐
Better Solutions
bettersolutions.com › excel › functions › ceiling-math-function.htm
Excel CEILING.MATH Function - BetterSolutions.com
Microsoft Excel · Functions · CEILING.MATH · Maths & Trigonometry · Complete List · Alphabetical - C · Index - C · Updated: 01 March 2026 · 01 March 2026 · © 2026 Better Solutions Limited. All Rights Reserved.
🌐
Ajelix
ajelix.com › home › resources › formulas and functions › ceiling function ms excel
How To Use CEILING Function in Excel Guide With Examples - Ajelix
March 14, 2024 - Excel VBA Code Debugger · Google ... · A CEILING function in Excel is a mathematical function that rounds a number up to the nearest integer, or to the nearest multiple of a specified value....