LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Adding Round funciton to handful of numbers

Hello Jamie,

Maybe

Sub addround2()
Dim cell As Range
For Each cell In Selection
If Not cell.HasFormula And IsNumeric(cell) Then
cell = "=ROUND(" & cell.Text & ",-2)"
End If
Next cell
End Sub

You have raw data and you do not want to change any formula (or apply
this macro repeatedly), I guess.

Regards,
Bernd
 
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
adding a round function to an existing formula Deb Paiement Excel Worksheet Functions 2 July 10th 08 09:28 PM
round numbers in the millions to numbers in the thousands Little Red Excel Worksheet Functions 2 June 26th 08 08:51 PM
How do you round off numbers 5,518,943 to 5,520,000 laurn Excel Discussion (Misc queries) 1 August 16th 06 03:32 PM
Can you round numbers to display a specific set of numbers, for e. lbfries Excel Discussion (Misc queries) 3 April 20th 05 09:52 PM
Why does Excell round-off figures when adding them? SandiG Excel Discussion (Misc queries) 1 December 9th 04 04:48 PM


All times are GMT +1. The time now is 11:28 AM.

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"