How to calculate IF-formulas correct with cell value = blank or 0

kit99

Active Member
Joined
Mar 17, 2015
Messages
352
This is (part of) my formula:
Code:
=IF(data1!J310>data1!J311,"J")

But if a cell included in the formula have cell value = blank (or even "0") , it won't calculate the difference between cells correct (I'm trying to show development in turnaround up/down) .
Is there a way to change this formula to calculate correct on cell value = blank or "0"?

And by the way; when I try to paste the complete formula into the thread message, with all my 4 statements, part of the formula disappear, even when it's wrapped in code-tags. What is that all about?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
When you paste your formula put spaces either side of any < or > signs, the forum doesn't like it otherwise!
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

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