#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default rounding

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default rounding

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

--

HTH

Bob Phillips

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

"egarcia" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default rounding

Maybe this?:

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


Is that something you can work with?

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

XL2002, WinXP


"egarcia" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default rounding

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.

"Ron Coderre" wrote:

Maybe this?:

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


Is that something you can work with?

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

XL2002, WinXP


"egarcia" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default rounding

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

"egarcia" wrote:

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.

"Ron Coderre" wrote:

Maybe this?:

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


Is that something you can work with?

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

XL2002, WinXP


"egarcia" wrote:

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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default rounding

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/AB360,max(1,ROUND(CEILING(AB23/AB36,0.4999),0)),0)


"egarcia" wrote:

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.

"Ron Coderre" wrote:

Maybe this?:

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


Is that something you can work with?

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

XL2002, WinXP


"egarcia" wrote:

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

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default rounding

Try this:

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


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

XL2002, WinXP


"egarcia" wrote:

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.

"Ron Coderre" wrote:

Maybe this?:

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


Is that something you can work with?

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

XL2002, WinXP


"egarcia" wrote:

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

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default rounding

"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

"egarcia" wrote:

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

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
How do I correct rounding errors in Excel formulas? C. Van Dam Excel Worksheet Functions 1 August 29th 06 04:37 AM
Significant number rounding based on key cell Slashman Excel Worksheet Functions 2 August 27th 06 11:04 PM
Problems: rounding & formatting Text/# combinations nastech Excel Discussion (Misc queries) 1 July 5th 06 06:51 PM
Rounding to the Nearest Eighth L.sean9 Excel Discussion (Misc queries) 4 June 23rd 06 12:00 AM
Banker's Rounding - need help! Somecallmejosh Excel Discussion (Misc queries) 3 January 20th 05 09:53 PM


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