Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 10-13-2014, 10:22 AM
gebobs gebobs is offline Trying to round up a field based on a calculation but getting error messages Windows 7 64bit Trying to round up a field based on a calculation but getting error messages Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

The reason this happens is because of your IF statement in P. If there is no data, the formula returns "". While it may look like a blank cell, Excel doesn't treat it the same and any formula that uses it as an operator will result in an error when it is blank.



There are a few ways to get around this. The easiest is to modify your equation as I mentioned above:

=iferror(((round(m28,0)-round(o28,0))*p28),"")
Reply With Quote
  #17  
Old 10-13-2014, 10:55 AM
bakerrl bakerrl is offline Trying to round up a field based on a calculation but getting error messages Mac OS X Trying to round up a field based on a calculation but getting error messages Office for Mac 2011
Novice
Trying to round up a field based on a calculation but getting error messages
 
Join Date: Sep 2014
Posts: 13
bakerrl is on a distinguished road
Default file v2

Hi. I put in the calculation you provided. Everything works great except for R28. I'm not sure why it's not working. I don't get the issue on any of the other cells. It's a mystery. Do you have any ideas why this would happen? Thanks for your help in advanced.
Reply With Quote
  #18  
Old 10-13-2014, 11:03 AM
gebobs gebobs is offline Trying to round up a field based on a calculation but getting error messages Windows 7 64bit Trying to round up a field based on a calculation but getting error messages Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Sure do. If you expand the formula bar, you will see that you seem to have pasted the equation in there twice.

Just copy the cell below and paste it there. Problem solved.
Reply With Quote
  #19  
Old 10-13-2014, 11:52 AM
bakerrl bakerrl is offline Trying to round up a field based on a calculation but getting error messages Mac OS X Trying to round up a field based on a calculation but getting error messages Office for Mac 2011
Novice
Trying to round up a field based on a calculation but getting error messages
 
Join Date: Sep 2014
Posts: 13
bakerrl is on a distinguished road
Default

You are too smart! Thank you so much. This works perfect now. I appreciate your help.
Reply With Quote
  #20  
Old 10-14-2014, 05:44 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Trying to round up a field based on a calculation but getting error messages Windows 7 64bit Trying to round up a field based on a calculation but getting error messages Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Gebobs' solution is the way to go or use =IF(M28,0.56,0) in col P and hide the 0 if needed. Also beware of merged cells ( col P and Q) they are nothing but trouble.
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating new field in pivot table based off existing field laceymarie1987 Excel 0 06-26-2014 12:13 PM
Trying to round up a field based on a calculation but getting error messages Form field calculation returning 2x correct result Jschueller Word 1 08-20-2013 01:51 PM
Trying to round up a field based on a calculation but getting error messages Rules based due date calculation dlowrey Excel Programming 3 05-12-2013 08:30 PM
Prevent Field Calculation with Dates from introducing line break? ztag Word 1 01-13-2012 04:13 PM
Trying to round up a field based on a calculation but getting error messages Mail Merge Calculation Error Lsbutler2000 Mail Merge 1 06-22-2007 06:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:28 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