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

Hi,

How can I round a number with increment of 0.5 ? For e.g. 0.1 will be equal
to 0.5, 1.1 will be equal to 1.5, 1.5 will be equal to 2.0 etc.

Thanks.

Gian
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Round function

On Mon, 23 Jan 2006 07:38:04 -0800, "Gian"
wrote:

Hi,

How can I round a number with increment of 0.5 ? For e.g. 0.1 will be equal
to 0.5, 1.1 will be equal to 1.5, 1.5 will be equal to 2.0 etc.

Thanks.

Gian


Normal rounding up to 0.5 would leave 1.5=1.5.

So to do what you describe, you could add a very small amount to your values.
This will also cause 2.0--2.5

=CEILING(A8+(10^-10),0.5)


--ron
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Round function

=CEILING(A1,0.5)

But 1.5 stays as 1.5, it has already hit it's ceiling.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Gian" wrote in message
...
Hi,

How can I round a number with increment of 0.5 ? For e.g. 0.1 will be

equal
to 0.5, 1.1 will be equal to 1.5, 1.5 will be equal to 2.0 etc.

Thanks.

Gian



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Round function

Thanks guys.

"Bob Phillips" wrote:

=CEILING(A1,0.5)

But 1.5 stays as 1.5, it has already hit it's ceiling.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Gian" wrote in message
...
Hi,

How can I round a number with increment of 0.5 ? For e.g. 0.1 will be

equal
to 0.5, 1.1 will be equal to 1.5, 1.5 will be equal to 2.0 etc.

Thanks.

Gian




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Round function

Gian:

Am I missing something or can't you just use the following formula:

=INT(A1*2+1)/2

--
HTHs Martin


"Gian" wrote:

Hi,

How can I round a number with increment of 0.5 ? For e.g. 0.1 will be equal
to 0.5, 1.1 will be equal to 1.5, 1.5 will be equal to 2.0 etc.

Thanks.

Gian

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
Round up function shifty Excel Discussion (Misc queries) 3 December 31st 07 11:59 AM
Round Len Function Help [email protected] Excel Worksheet Functions 16 August 25th 06 04:27 AM
how do i set up round function run superman Excel Worksheet Functions 1 October 6th 05 08:13 PM
The ROUND function Louise Excel Worksheet Functions 3 June 23rd 05 02:45 PM
help with round function Scott Excel Worksheet Functions 7 February 9th 05 07:23 PM


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