#1   Report Post  
Posted to microsoft.public.excel.misc
YK YK is offline
external usenet poster
 
Posts: 8
Default Conditional Rounding

How do I include $x.89 value in the below formula to add $0.05 with the $x.09
& $x.59 value?

Thanks!

"Bob Phillips" wrote:

=INT((10*A1)+1)/10-0.01+(MOD(INT(A1*10)-(INT(A1)*10),5)=0)*0.05

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"yk" wrote in message
...
Thanks to all for your help. It works great. One more question, how do I
append to the formula to add $0.05 to only those values that results in
$x.09, $x.59 rather than rounding to the nearest $x.10?

"Toppers" wrote:

another ....

=IF(ISNA(MATCH(ROUND(MOD(INT((10*$A$1)+1)/10-0.01,1),2),{0.09,0.59},0)),INT((10*$A$1)+1)/10-0.01,INT((10*$A$1)+1)/10)

"yk" wrote:

If I currenlty have a formula =INT((10*A1)+1)/10-0.01 to round up to
the
nearest $x.x9. However, if the results are $x.09, $x.59, how do I
append to
the formula to round up only $x.09and $x.59 to the nearest $x.10?

Thanks.




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
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
Rounding Grant Excel Worksheet Functions 3 March 1st 07 09:55 PM
conditional rounding egarcia Excel Worksheet Functions 2 November 28th 06 05:17 PM
Conditional Rounding Annie Excel Worksheet Functions 4 March 29th 06 08:42 PM
Rounding Alex Martinez Excel Worksheet Functions 1 May 13th 05 06:07 AM


All times are GMT +1. The time now is 05:22 PM.

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"