LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 304
Default Round then round?

Is there VB code equivalent to this?
Here is part of my code.

Range("T13").Select
ActiveCell.FormulaR1C1 = "1.25"

Set r = Range("K11:Q500")
Set r = r.Offset(1, 0).Resize(r.Rows.Count - 1)

On Error Resume Next
Set r1 = r.SpecialCells(xlVisible)
On Error GoTo 0
If Not r1 Is Nothing Then
Range("T13").Copy
r1.PasteSpecial Paste:=xlValues, Operation:=xlMultiply, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False

"Rick Rothstein (MVP - VB)" wrote:

All functions can be nested... a function just returns a value which can
then be used by the function it is embedded in (the only thing you have to
watch out for is that the parent function's argument position is compatible
with the return type of the embedded function; for example, if the parent
function's argument is expecting a simple value, you can't place an
array-generating function call there, and vice-versa).

Rick


"pgarcia" wrote in message
...
Thanks, I didn't know you could nest "round".

"John C" wrote:

Assuming A1 is your value of 5.55556, and B1=1.09
C1: =ROUND(ROUND(A1,2)*B1,2)

or, if the 1.09 is static, you could hardcode it in like so:
=ROUND(ROUND(A1,2)*1.09,2)
--
John C


"pgarcia" wrote:

Hello all,
Cell A1= 5.5556, I need to round that number (5.56) then multiply by
1.09
and round again. I'm looking for just one formula to do all three.
Thanks





 
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
Round 1.45 down to 1.25 and 1.57 down to 1.50 joker007 Excel Worksheet Functions 2 October 3rd 07 01:25 AM
Round up down or anywhere Joel Excel Discussion (Misc queries) 0 February 15th 07 02:55 PM
@ROUND steph44haf Excel Worksheet Functions 4 October 23rd 06 02:06 PM
Round up to 100? Fred Holmes Excel Worksheet Functions 1 February 21st 05 02:40 PM
How do I ROUND() round off decimals of a column dataset? Højrup Excel Worksheet Functions 2 January 12th 05 10:50 AM


All times are GMT +1. The time now is 06:59 PM.

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

About Us

"It's about Microsoft Excel"