How to Delete "Blank" Cells En Masse So They Are Truly Empty?

chasfh

Board Regular
Joined
Dec 10, 2014
Messages
65
Office Version
  1. 365
Platform
  1. Windows
I have come across a problem in which I want the "then" part of a formula to be completely empty.

Here's an example of what I mean. The actual formula here is not important—just the end part of it is:

=IFNA(XLOOKUP($DI2+(EE$5-1901),$G$4:$AK$4,$G1:$AK1),"")

The very end part of this formula is asking to make the cell "blank" if the cell referred to is NA. I may apply this formula to thousands of cells within an array. Afterwards, to make the worksheet nimble, I will copy/paste values so I still see the number that the formula wrought in the appropriate cells, without having to keep the formula in the cell. Any cells without data in them will be "blank". Or at least look empty.

The problem is, any cell I ask to be made blank is not truly empty, but instead has an apostrophe, quote mark, or caret in the cell (depending on cell alignment).

This is fine as far as dependent calculations on the cell are concerned, but the problem comes when I am trying to sort a column of a few thousand rows that has a few hundred of these "blank" cells in them. The sort function reads these cells as being numerically higher than any cell with an actual number in it, so when sorting Z-A, they end up at the top of the column, which creates an obvious problem.

If I can change the status of the cells en masse from "blank" to empty, that will solve the sort problem, but I have not yet found a simple way to do this en masse. The Find and Replace function (CTRL+H) doesn't help because when I try to find any of these "blank" cells, by pressing the space bar in the Find field, the function returns "We couldn't find anything to replace." Obviously, searching for ', ", or ^ doesn't work. And of course, not pressing the space bar in the Find field doesn't even trigger any recognition by the function that I'm trying to use it.

Does anyone recognize this problem and can help? I know I can just go to a "blank" cell, click delete, and that will empty the cell, but I don't want to have to manually find and select every "blank"cell so I can do that. I would rather select an entire array of cells that has both data and "blank" cells in them, and empty out just the blank cells.
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I'm not sure it is a good idea to remove formulas from you formula rows. You would hve inconsistent formulas throughout a column. It is one of the general excel conventions that columns always have the same formula to insure consistency.
 
Upvote 0
What is causing the problems with the formula result being the double double quote?
(Nevermind, i reread your post... sorting)
 
Upvote 0
I'm not sure it is a good idea to remove formulas from you formula rows. You would hve inconsistent formulas throughout a column. It is one of the general excel conventions that columns always have the same formula to insure consistency.

If you have a solution to my problem, I would sure love to hear it.
 
Upvote 0
are those rows to be discarded? If so, filter for them only and then delete them.
You could use "ZZZ" instead of "" and use conditional formating of ;;; to hide any with that string.
 
Upvote 0
Or have a report page that has your data filtered according to your filter requirements.
 
Upvote 0
are those rows to be discarded? If so, filter for them only and then delete them.
You could use "ZZZ" instead of "" and use conditional formating of ;;; to hide any with that string.
No, the rows are not to be discarded. I also don't want to hide them. I just want them to show up as empty under the person (row) and attribute (column) it is assigned to.

If I put "zzz" or any other text in there, which, I don't know why I would want to, but if I did, it would break both the sorting and the dependent calculations. At least a "blank" cell, which creating sorting problems, creates no problems for dependent calculations.

I'm trying to figure out an elegant way (perhaps in the formula itself?) to return an empty cell as a result if the referral source is NA or itself blank, rather than a "blank" cell that has an alignment character in it.
 
Upvote 0
well, put a mini workbook up and let the forum try to figure out. the link to get the xl2bb add in is below.
 
Upvote 0
I had something, but it failed. so deleted. Sorry. Please post and xl2bb.
 
Upvote 0
The problem is, any cell I ask to be made blank is not truly empty, but instead has an apostrophe, quote mark, or caret in the cell (depending on cell alignment).

Do you have that column formatted? If so, how do you have it formatted?
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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