rounding

G

Guest

I'm trying to round resources down if they are less than .5, up if greater
than a .5, and also equal to 1 if less than .5. For example 1.2 = 1, & 1.6 =
2, .4 = 1. My formula is = round(AB23/AB36,0), but less than .5 = 0
 
B

Bob Phillips

=MAX(1,ROUND(AB23/AB36,0))

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
G

Guest

Maybe this?:

=MAX(1,ROUND(AB23/AB36,0))


Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP
 
G

Guest

My zeros are returning as 1 and i have too many resources. I want zeros to
return as zeros, and any value to return with at least one.
 
G

Guest

"round resources down" :
<<<My formula is = round(AB23/AB36,0), but less than .5 = 0>>>

i assume u need a whole number result :
i assume a Non-negative result of AB23/AB36 "resources"

=+IF(AB23/AB36>=0.5,ROUND(CEILING(AB23/AB36,0.4999),0),0)

happy holidays
 
G

Guest

from your first need you write
" but less than .5 = 0"
is this change already? 0.4<0.5 then 0.
 
G

Guest

i am confused again, i am poor in reading english, sorry....

if AB23/AB36=0.1, and you like result as 1.
maybe this is possible.
=+IF(AB23/AB36>0,max(1,ROUND(CEILING(AB23/AB36,0.4999),0)),0)
 
G

Guest

Try this:

=MAX(1,ROUND(AB23/AB36,0))*(AB23>0)


Does that help?
***********
Regards,
Ron

XL2002, WinXP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top