Formula issues getting blank rather than zero

Detectiveclem

Active Member
Joined
May 31, 2014
Messages
320
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
What am I doing wrong

I am using this formula in cell E7 successfully =IF(D7-C7<0, 1+D7-C7, D7-C7).

But when cell C7 has no data I do NOT want ‘0’ to appear in E7. I have tried various formulas including this one =IF(C7=””,””,D7-C7<0, 1+D7-C7, D7-C7) but it doesn’t work.

Can someone please help me rectify the formula so that cell E7 remains blank until data is entered in C7.

Thank you
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
try this

=IF(C7="","",IF(D7-C7<0, 1+D7-C7, D7-C7))

if i understand correctly

dave
 
Upvote 0
Thank you Squidd and Peter, both formulas work perfectly.

However I now get an ERROR in another of my formulas =SUM(E7+H7+K7) after I have copied your formula into E7,H7 & K7. Can you assist further? Thank you Paul
 
Upvote 0
Hi again Squidd, this solves the ERROR however it returns a zero into the cell and I want it to remain blank. I can not use the option of not displaying zeros as a default as other cells need to show when an actual zero '0' has been entered. How can I tweak your format to achieve this? Thanks again. Paul
 
Upvote 0
Hi Fluff, thank you but as you'll see from my other posts I am trying to achieve a blank cell rather than having zeros.
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,925
Members
449,056
Latest member
denissimo

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