Is there a Formula that return blank cell ?

mrchonginhk

Well-known Member
Joined
Dec 3, 2004
Messages
679
I have a forumla in cell B1: =if(A1="A","Yes","").
Then I copy cell B1 as value to another cell say C1, I found Excel does not treat that cell as completely blank.

There are many cells like this. Instead of deleting the cells manually, is there way to modify my forumla or any quick fix around ?
 

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
does not treat that cell as completely blank.

Not sure what you mean by this. What are you trying to do ?
If you want to refer to the new cell value you only need to have a formula like you already use eg. =IF(B1="", ....
 
Upvote 0
Actually this sheet will be used by IT to upload to another software.
That software detected that cell is not blank and thus error comes up.

Actually you can see it is not blank as well.

Copy a cell that has formula =""
paste as value to cell C1.
Then type something in B1 that is long enough to go through the length to C1. Then you will see a difference. Real blank cell should not block the text you key in in cell B1. But now it does.

Help !!
 
Upvote 0
Is there a better formula then ="" ?? so that when we copy that cell as value to another sheet, the corresponding cell is really blank cell ?

=NULL ??
 
Upvote 0
Must really take our hats off to IT people, they way they keep us programmers in work !

Try something like this :-
Code:
Sub test()
    Dim MyRange As Range
    Application.Calculation = xlCalculationManual
    Set MyRange = ActiveSheet.Range("A1:Z100")
    For Each c In MyRange.Cells
        If c.Value = "" Then
            c.ClearContents
        End If
    Next
    Application.Calculation = xlCalculationAutomatic
    MsgBox ("Done")
End Sub
 
Upvote 0

Forum statistics

Threads
1,225,137
Messages
6,183,076
Members
453,146
Latest member
Lacey D

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