Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,624
Default 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   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounding up or down to specific decimal digits. Shams Excel Worksheet Functions 2 April 24th 08 05:23 PM
Rounding Up to a specific number Phil Excel Discussion (Misc queries) 3 April 5th 07 12:28 AM
Rounding up to a set of specific numbers? bradles Excel Worksheet Functions 6 August 8th 06 07:12 PM
Rounding to a specific value (up or down) Dave Excel Worksheet Functions 3 April 12th 06 06:27 PM
rounding to a specific number Roland Excel Worksheet Functions 0 January 25th 05 03:55 AM


All times are GMT +1. The time now is 07:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"