Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default @ Round Formulas

One way:

Select the range of cells you want to convert. The range can include
Text, constants, etc - only the formulae will be converted. Change
the "0" in the cell.Formula line to the number of places you want to
round to.

Public Sub WrapARound()
Dim cell As Range
On Error Resume Next
For Each cell In Selection.SpecialCells(xlCellTypeFormulas)
cell.Formula = "=ROUND(" & Mid(cell.Formula, 2) & ",0)"
Next cell
On Error GoTo 0
End Sub


In article ,
"John M" wrote:

Hello,

I have numerous formulas that I need to convert to
@round. Does anyone know of a fast way to do that? I
tried an "edit/replace" technique but that did not work
since all the formulas are different. Any advice would be
much appreciated.

John

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
How to make a column of formulas all ROUND Cobaum Excel Discussion (Misc queries) 1 May 14th 10 12:47 AM
How to round values from formulas to whole dollars p2andr Excel Discussion (Misc queries) 1 May 1st 08 12:00 AM
Round formulas mstack Excel Worksheet Functions 4 July 3rd 06 05:40 PM
How do I round up or down using formulas? Pricing Queen Excel Worksheet Functions 2 November 29th 04 06:15 PM
@ Round Formulas steve Excel Programming 0 October 28th 03 06:33 PM


All times are GMT +1. The time now is 11:15 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"