Getting calculations to skip empty cells

Ralexn123

New Member
Joined
Feb 1, 2016
Messages
3
Hello,
I've been through a number of different forums and found similar questions but I haven't been able to find a solution that I can replicate.

I have inserted a formula to calculate the difference between two values. If the difference is greater than 5% then it returns a value "Reprice", if the difference is less than 5% then it returns a value of "No Action". My formula is working fine, however, I am trying to tidy it up a bit because not every cell referenced will have a value. So in the cases where there is a blank cell I would like the formula to skip that row instead of returning "#DIV/0!". The formula I am currently using is:

=IF((ABS((F3-E3)/F3)>0.05), "Reprice", "No Action")

It should be noted that the empty cells will be found in columns E and F.

Any help would be greatly appreciated.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to the Board!

Try:
Code:
[COLOR=#333333]=IF(F3=0,"",IF((ABS((F3-E3)/F3)>0.05), "Reprice", "No Action"))[/COLOR]
 
Upvote 0
Thank you so much for the prompt reply Joe, that worked like a charm. I was not aware you could use a string of IF statements, I was trying to use the AND function to no avail. Thank you once again.
 
Upvote 0
You are welcome!

Yes, in most versions of Excel, you can string up to 7 levels (not that you usually want to nest quite that many, as that can get quite messy and difficult to maintain/support).
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,405
Members
449,448
Latest member
Andrew Slatter

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