Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this formula works for me when i need to round out a number to the nearest
1/4; however, when i need to round out time to the nearest 15 minutes, it does not... any sugggestions? Dim vTargetValue1 As Long Dim vTargetValue2 As Double Dim vTargetValue Const BillingIncrement = 25 If target.Count = 1 Then vTargetValue1 = target.Value \ BillingIncrement vTargetValue2 = target.Value / BillingIncrement If vTargetValue1 < vTargetValue2 Then target.Value = (vTargetValue1 + 1) / 100 * BillingIncrement End If End If thanks in advance, mark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sort 2 column in the same time "" as dictionary "" | Excel Worksheet Functions | |||
Disabling the "&[Time]" or "&[T]" in Excel headers and footers | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
How do I "paste link", and "transpose" at the same time? | Excel Discussion (Misc queries) | |||
cannot use "Create List" and "Share Workbook" same time | Excel Discussion (Misc queries) |