ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Rounding down to specific numbers (https://www.excelbanter.com/new-users-excel/217630-rounding-down-specific-numbers.html)

Srfnski2be

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

JE McGimpsey

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


Srfnski2be

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




All times are GMT +1. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com