Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
lots of questions
 
Posts: n/a
Default round function in excel 2000

can whole numbers be "rounded" in excel, either with
the "round" function or thru vba?

I have some calculations that I wish to display the
results as follows:

if results = o-24 then round down to 0
if results = 25-49 then round up to 50
  #2   Report Post  
Max
 
Posts: n/a
Default

One try ..

Assuming the numbers are integers in col A, in A1 down

Put in B1:
=IF(AND(A1=0,A1<=24),0,IF(AND(A1=25,A1<=49),50,A 1))
Copy down

The above also assumes that any numbers *outside* the range: 0 - 49
are to be left intact (you didn't specify this)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"lots of questions" wrote in message
...
can whole numbers be "rounded" in excel, either with
the "round" function or thru vba?

I have some calculations that I wish to display the
results as follows:

if results = o-24 then round down to 0
if results = 25-49 then round up to 50



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 3 Mar 2005 17:17:12 -0800, "lots of questions"
wrote:

can whole numbers be "rounded" in excel, either with
the "round" function or thru vba?

I have some calculations that I wish to display the
results as follows:

if results = o-24 then round down to 0
if results = 25-49 then round up to 50


If I understand you correctly, you wish to round your number to the nearest 50.

With your number in A1:

=ROUND(A1/50,0)*50

or:

=ROUND(your_formula/50,0)*50




--ron
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
Excel 2000 to Excel 2003.... is it worh it? ste mac Excel Discussion (Misc queries) 7 February 22nd 05 11:31 AM
Excel XP Pivot Table in Excel 2000 bsantona Excel Discussion (Misc queries) 0 January 20th 05 06:37 PM
other systems detecting excel 4.0 if excel 2000 is installed Tristan_Flynn Setting up and Configuration of Excel 0 January 18th 05 06:55 PM
Excel 2000 running on Windows XP SP2 does not properly open CSV fi Oscar Excel Discussion (Misc queries) 1 December 20th 04 10:10 PM
Writing many lines on a same Excel 2000 cell freeposte Excel Discussion (Misc queries) 2 December 8th 04 02:45 PM


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