Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default rounding to the nearest 100

I will be very grateful for the code to round a number to the nearest 100

Many thanks
--
with kind regards

Spike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default rounding to the nearest 100

I neglected to say i will be grateful for the code for both negative numbers
and positive numbers, i have used the floor or ceiling function to date on
positives but does not appear to work on negatives
--
with kind regards

Spike


"Spike" wrote:

I will be very grateful for the code to round a number to the nearest 100

Many thanks
--
with kind regards

Spike

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default rounding to the nearest 100

Hi Spike,

Why not just use the Round() function? If in VBA, you can access it from
Application.Worksheetfunctions.

HTH

--
Regards,
Zack Barresse, aka firefytr
MsgBox "fire" & "fytr" & Chr(64) & "vba" & "express" & Chr(46) & "com"



"Spike" wrote in message
...
I will be very grateful for the code to round a number to the nearest 100

Many thanks
--
with kind regards

Spike


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default rounding to the nearest 100

Thanks, i think i tried this initially, anyway using floor getting what is
required
--
with kind regards

Spike


"Zack Barresse" wrote:

Hi Spike,

Why not just use the Round() function? If in VBA, you can access it from
Application.Worksheetfunctions.

HTH

--
Regards,
Zack Barresse, aka firefytr
MsgBox "fire" & "fytr" & Chr(64) & "vba" & "express" & Chr(46) & "com"



"Spike" wrote in message
...
I will be very grateful for the code to round a number to the nearest 100

Many thanks
--
with kind regards

Spike


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 to nearest 500 Heather Excel Discussion (Misc queries) 9 April 3rd 23 10:41 AM
Rounding Up or Down to nearest $10 jeffc4442 Excel Discussion (Misc queries) 3 December 8th 08 06:00 PM
rounding to nearest 100 rdwngr23 Excel Worksheet Functions 2 December 17th 07 11:21 PM
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
Rounding to Nearest 250 Scott G Excel Worksheet Functions 6 February 21st 06 04:12 PM


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