Blank Cell

jbodel

New Member
Joined
Jun 2, 2014
Messages
41
Office Version
  1. 365
Platform
  1. Windows
I have had a formula in my worksheet for a while that says the following, =if(ISBLANK(AC29),0,2). For some reason this has stopped working. After re-typing the formula it works once, but once you change the value back to blank in AC29, it does not change to 0. I have also tried =if(AC29="",0,2) and that does not work.

Am I doing something silly that I am just not thinking of? Do I have a setting that is causing this to not work anymore?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Does this work?
Excel Formula:
=if(LEN(TRIM(AC29))=0,0,2)
 
Upvote 0
Does this work?
Excel Formula:
=if(LEN(TRIM(AC29))=0,0,2)
Unfortunately it does not. It changes it originally to a 2, but if you delete the content in cell AC29, it stays at a 2.

It's driving me crazy, :) I don't know what happened.
 
Upvote 0
OK, what does this return?
Excel Formula:
=LEN(AC29)

If it returns anything other than 0, it means you actually have SOMETHING in that cell, even though you cannot see it.
It could be an invisible character like a non-breaking space.

Where exactly are these values in AC29 coming from?
Are they downloaded from the web, or extracted from another program?
I often see special invisible characters found in those kinds of data extracts.
 
Upvote 0
or you have somehow switched your worksheet calculations to "manual" rather than auto ... ?

Just a thought. Have a look under "Formulas" / Calculation Options

Rob
 
Upvote 0
Solution
OK, what does this return?
Excel Formula:
=LEN(AC29)

If it returns anything other than 0, it means you actually have SOMETHING in that cell, even though you cannot see it.
It could be an invisible character like a non-breaking space.

Where exactly are these values in AC29 coming from?
Are they downloaded from the web, or extracted from another program?
I often see special invisible characters found in those kinds of data extracts.
The Contents in AC29 are manually entered. So when I first tried your formula and I typed something into AC29 it worked. But when I went back to AC29 and just clicked the delete button and clicked enter it did not change back to 0. I am certain there are no spaces or anything in that cell. Now it is a merged cell AC29-AE29, but I just tried unmerging them and it still does not work.
 
Upvote 0
or you have somehow switched your worksheet calculations to "manual" rather than auto ... ?

Just a thought. Have a look under "Formulas" / Calculation Options

Rob
That was it. I wonder how that got changed. I honestly don't remember changing anything like that, nor (honestly) did I know that even existed.

Thank you both for all your help
 
Upvote 0
You're welcome, thanks for the feedback.

I believe Sometimes it can be changed from an unsuspecting other file that you have opened .. and remain set until you change it back again.

Rgds
Rob
 
Upvote 0

Forum statistics

Threads
1,225,619
Messages
6,186,045
Members
453,335
Latest member
sfd039

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