Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Scott
 
Posts: n/a
Default help with round function

i would like to use the round function so that if the 1st
decimal place is .6 it rounds up and <.4 it rounds down,
but does nothing if =.5

can this be done?
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

If you mean greater than or *equal* to .6, try:

=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

HTH
Jason
Atlanta, GA

-----Original Message-----
i would like to use the round function so that if the

1st
decimal place is .6 it rounds up and <.4 it rounds

down,
but does nothing if =.5

can this be done?
.

  #3   Report Post  
Sandy Mann
 
Posts: n/a
Default

=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

You don't actually need the *1 because the addition of the INT and MOD
functions will convert the Boolean.

=IF(MOD(A1,1)=0.5,A1,ROUND(A1,0))

will also work

Regards

Sandy
--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Jason Morin" wrote in message
...
If you mean greater than or *equal* to .6, try:

=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

HTH
Jason
Atlanta, GA

-----Original Message-----
i would like to use the round function so that if the

1st
decimal place is .6 it rounds up and <.4 it rounds

down,
but does nothing if =.5

can this be done?
.



  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

For some reason I have to multiply my boolean values by 1
in order sum them. I haven't figured out why.

Jason

-----Original Message-----
=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)


You don't actually need the *1 because the addition of

the INT and MOD
functions will convert the Boolean.

=IF(MOD(A1,1)=0.5,A1,ROUND(A1,0))

will also work

Regards

Sandy
--
to e-mail direct replace @mailinator.com with

@tiscali.co.uk


"Jason Morin" wrote

in message
...
If you mean greater than or *equal* to .6, try:

=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

HTH
Jason
Atlanta, GA

-----Original Message-----
i would like to use the round function so that if the

1st
decimal place is .6 it rounds up and <.4 it rounds

down,
but does nothing if =.5

can this be done?
.



.

  #5   Report Post  
Myrna Larson
 
Posts: n/a
Default

If you are using the SUM function rather than addition operators, you will
note from Help that SUM ignores True/False values.


On Tue, 8 Feb 2005 15:05:28 -0800, "Jason Morin"
wrote:

For some reason I have to multiply my boolean values by 1
in order sum them. I haven't figured out why.

Jason

-----Original Message-----
=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)


You don't actually need the *1 because the addition of

the INT and MOD
functions will convert the Boolean.

=IF(MOD(A1,1)=0.5,A1,ROUND(A1,0))

will also work

Regards

Sandy
--
to e-mail direct replace @mailinator.com with




"Jason Morin" wrote

in message
...
If you mean greater than or *equal* to .6, try:

=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

HTH
Jason
Atlanta, GA

-----Original Message-----
i would like to use the round function so that if the
1st
decimal place is .6 it rounds up and <.4 it rounds
down,
but does nothing if =.5

can this be done?
.



.




  #6   Report Post  
Jason Morin
 
Posts: n/a
Default

Thanks Myrna, but if you look at my formula, I'm not
using SUM.
-----Original Message-----
If you are using the SUM function rather than addition

operators, you will
note from Help that SUM ignores True/False values.


On Tue, 8 Feb 2005 15:05:28 -0800, "Jason Morin"
wrote:

For some reason I have to multiply my boolean values by

1
in order sum them. I haven't figured out why.

Jason

-----Original Message-----
=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

You don't actually need the *1 because the addition of

the INT and MOD
functions will convert the Boolean.

=IF(MOD(A1,1)=0.5,A1,ROUND(A1,0))

will also work

Regards

Sandy
--
to e-mail direct replace @mailinator.com with




"Jason Morin"

wrote
in message
.. .
If you mean greater than or *equal* to .6, try:

=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

HTH
Jason
Atlanta, GA

-----Original Message-----
i would like to use the round function so that if

the
1st
decimal place is .6 it rounds up and <.4 it rounds
down,
but does nothing if =.5

can this be done?
.



.


.

  #7   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Your criteria are not clear. What do you want .599999999 to return?
What about .499999999? What about .400000001? Do you care that if you
round .54 to .5 but .46 to .4 that you will be introducing bias into
your rounded values?

Jerry

Scott wrote:

i would like to use the round function so that if the 1st
decimal place is .6 it rounds up and <.4 it rounds down,
but does nothing if =.5

can this be done?


  #8   Report Post  
Myrna Larson
 
Posts: n/a
Default

I was responding to this statement you made, not to your formula: "For some
reason I have to multiply my boolean values by 1 in order sum them. I haven't
figured out why.".

I don't know why you said that, since you aren't using SUM.

On Tue, 8 Feb 2005 18:09:29 -0800, "Jason Morin"
wrote:

Thanks Myrna, but if you look at my formula, I'm not
using SUM.
-----Original Message-----
If you are using the SUM function rather than addition

operators, you will
note from Help that SUM ignores True/False values.


On Tue, 8 Feb 2005 15:05:28 -0800, "Jason Morin"
wrote:

For some reason I have to multiply my boolean values by

1
in order sum them. I haven't figured out why.

Jason

-----Original Message-----
=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

You don't actually need the *1 because the addition of
the INT and MOD
functions will convert the Boolean.

=IF(MOD(A1,1)=0.5,A1,ROUND(A1,0))

will also work

Regards

Sandy
--
to e-mail direct replace @mailinator.com with



"Jason Morin"

wrote
in message
. ..
If you mean greater than or *equal* to .6, try:

=IF(MOD(A1,1)=0.5,A1,INT(A1)+(MOD(A1,1)=0.6)*1)

HTH
Jason
Atlanta, GA

-----Original Message-----
i would like to use the round function so that if

the
1st
decimal place is .6 it rounds up and <.4 it rounds
down,
but does nothing if =.5

can this be done?
.



.


.


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 Function Pedro Serra Excel Discussion (Misc queries) 4 January 27th 05 06:13 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
WHATS AN EASY FUNCTION TO USE TO ROUND TO THE NEAREST THOUSAND? Martina Excel Worksheet Functions 4 January 9th 05 01:35 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


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