Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 09-01-2016, 08:10 AM
paulkaye paulkaye is offline Custom rounding up Windows 7 64bit Custom rounding up Office 2007
Advanced Beginner
Custom rounding up
 
Join Date: Nov 2011
Posts: 84
paulkaye is on a distinguished road
Default

Thank you.
I edited the formula to keep zero as zero:
=IF(A1=0,0,IF(MOD(A1,1)<=0.4,INT(A1)+1,IF((MOD(A1, 1)>0.4)*(m od(A1,1)<=0.9),INT(A1)+2,"")))
I've "stored" it in cell B1. Unfortunately I'm getting strange results when I copy-paste it into other cells. Some work, and some do not! I copied the formula into cells to the right of the cells containing the original values. Here is the result:

6.7 #NAME?
6.6 #NAME?
4.1 5
5.2 6
0 0
0 0
9 10
6.9 #NAME?
10.7 #NAME?
6.7 #NAME?
9.4 10
4.2 5
0 0
0 0
7 8
0 0
2.5 #NAME?
14.5 #NAME?
1.7 #NAME?
0 0
7.8 #NAME?
8.2 9
6.6 #NAME?
0 0
0 0
0 0
0 0
9.7 #NAME?
3.2 4
4.6 #NAME?
9.8 #NAME?


Any ideas?!

Last edited by paulkaye; 09-01-2016 at 08:12 AM. Reason: pasted values came out distorted
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom rounding up Excel Seems to be Rounding Twice Rather Than Once melissapete24 Excel 5 08-27-2016 12:51 AM
Custom rounding up Time Calc with rounding. billreed7 Excel 5 07-03-2016 06:43 PM
Rounding to nearest 0.25 Guloluseus Excel 5 10-27-2015 11:28 PM
Rounding values inconsistent required_username Excel 10 06-05-2014 05:35 AM
Custom formatting code - rounding problem venkys4u Excel 1 08-14-2012 07:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft