=Round Formula Problem

sstrachan

New Member
Joined
Mar 22, 2009
Messages
44
Office Version
  1. 365
Platform
  1. Windows
I have a formula that works great to perform a calculation. Some of the values in my table are zero, so i have a ISERROR formula as well to supress the error when dividing by zero. I am trying to use my current formula and now Round the result to the nearest 2 decimal places, and still supress the Errors that appear when dividing by zero. Is this possible?
The original formula I want to modify is:
=IF(ISERROR(X2/$F2)," ",(X2/$F2))

I want to use the ROUND formula with this formula so that the result shows 2 decimal points. Can anyone assist me on modifying my above formula?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Thank You for the quick response. It worked perfectly. I appreciate your assistance.:)
 
Upvote 0
BTW, you don't need ISERROR to avoid #DIV/0!, you just need to check if you are dividing by 0 or not. You also should use "" (empty string) instead of " "(space) to return blank:

=IF($F2,ROUND(X2/$F2,2),"")
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,174
Members
448,870
Latest member
max_pedreira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top