Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Rounding down to specific numbers
I need to round down the following formula to one of a group of specific
numbers: (30, 27, 24, 21, 18, 15, 12, or 9) ActiveCell.FormulaR1C1 = "=(r6c3)-1 3/4" so if the number in (r6c3) is 24 then i need it rounded to 21 .... if the number is 22 then i need it rounded to 18. How can i make that formula |
#2
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Rounding down to specific numbers
If I understand correctly:
ActiveCell.FormulaR1C1 = "=FLOOR(r6c3 - 1.75, 3)" or, if you're just interested in the Value, not a formula: With ActiveCell .Value = Application.Floor(.Offset(5, 2).Value, 3) End With In article , Srfnski2be wrote: I need to round down the following formula to one of a group of specific numbers: (30, 27, 24, 21, 18, 15, 12, or 9) ActiveCell.FormulaR1C1 = "=(r6c3)-1 3/4" so if the number in (r6c3) is 24 then i need it rounded to 21 ... if the number is 22 then i need it rounded to 18. How can i make that formula |
#3
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Rounding down to specific numbers
Worked great. Thanks
"JE McGimpsey" wrote: If I understand correctly: ActiveCell.FormulaR1C1 = "=FLOOR(r6c3 - 1.75, 3)" or, if you're just interested in the Value, not a formula: With ActiveCell .Value = Application.Floor(.Offset(5, 2).Value, 3) End With In article , Srfnski2be wrote: I need to round down the following formula to one of a group of specific numbers: (30, 27, 24, 21, 18, 15, 12, or 9) ActiveCell.FormulaR1C1 = "=(r6c3)-1 3/4" so if the number in (r6c3) is 24 then i need it rounded to 21 ... if the number is 22 then i need it rounded to 18. How can i make that formula |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Rounding up or down to specific decimal digits. | Excel Worksheet Functions | |||
Rounding Up to a specific number | Excel Discussion (Misc queries) | |||
Rounding up to a set of specific numbers? | Excel Worksheet Functions | |||
Rounding to a specific value (up or down) | Excel Worksheet Functions | |||
rounding to a specific number | Excel Worksheet Functions |