Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default How to clear 'blank' cells

I have imported a text file from a payroll company that is formatted. Each
employee's name is moved to a new column - the first occurrence of a name is
in H6. The second occurrence of a name is in H18. When I try F5, special,
blank, OK = uparrow to cell above, Ctrl, Enter, Excel cannot find blanks -
even though the cell is "blank" there has to be something in it - I just
can't see it. When I press the Delete key in H7-17, and do the F5 routine,
it works. I've tried the Remove All Spaces macro, to no avail. Column H is
a copy, paste special values from another column that has formulas in 7-17.

Any ideas?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to clear 'blank' cells

If you use =len(a1) (change the address to one of the problem cells), do you see
0?

I've never seen this problem with text files being imported, but I have seen it
with formulas that evaluate to "" and are converted to values.

like: =if(a1=3,"",a1+7)

This leaves the cell looking blank, but it's not.
(Try =isblank() against one of the offending cells.)

And you can see the "detritus" left behind by toggling a setting.

Tools|options|transition tab|check transition navigation keys.

You'll see an apostrophe in the formula bar with that cell selected.

===
I like this way to clean up that type of "blank" cell.

select the range (or the whole sheet)
edit|replace
what: (leave blank)
with: $$$$$ (some unique value--not used!)
Replace all

Then reverse it:
edit|replace
what: $$$$$ (that same value)
with: (leave blank)
Replace all


==
If you're using VBA, you could record a macro when you do those two Edit|Replace
and plop that into your code to clean up that junk.

CaroleO wrote:

I have imported a text file from a payroll company that is formatted. Each
employee's name is moved to a new column - the first occurrence of a name is
in H6. The second occurrence of a name is in H18. When I try F5, special,
blank, OK = uparrow to cell above, Ctrl, Enter, Excel cannot find blanks -
even though the cell is "blank" there has to be something in it - I just
can't see it. When I press the Delete key in H7-17, and do the F5 routine,
it works. I've tried the Remove All Spaces macro, to no avail. Column H is
a copy, paste special values from another column that has formulas in 7-17.

Any ideas?

TIA


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default How to clear 'blank' cells

The $$$ did it, Dave. Thanks so much!

Carole

"Dave Peterson" wrote:

If you use =len(a1) (change the address to one of the problem cells), do you see
0?

I've never seen this problem with text files being imported, but I have seen it
with formulas that evaluate to "" and are converted to values.

like: =if(a1=3,"",a1+7)

This leaves the cell looking blank, but it's not.
(Try =isblank() against one of the offending cells.)

And you can see the "detritus" left behind by toggling a setting.

Tools|options|transition tab|check transition navigation keys.

You'll see an apostrophe in the formula bar with that cell selected.

===
I like this way to clean up that type of "blank" cell.

select the range (or the whole sheet)
edit|replace
what: (leave blank)
with: $$$$$ (some unique value--not used!)
Replace all

Then reverse it:
edit|replace
what: $$$$$ (that same value)
with: (leave blank)
Replace all


==
If you're using VBA, you could record a macro when you do those two Edit|Replace
and plop that into your code to clean up that junk.

CaroleO wrote:

I have imported a text file from a payroll company that is formatted. Each
employee's name is moved to a new column - the first occurrence of a name is
in H6. The second occurrence of a name is in H18. When I try F5, special,
blank, OK = uparrow to cell above, Ctrl, Enter, Excel cannot find blanks -
even though the cell is "blank" there has to be something in it - I just
can't see it. When I press the Delete key in H7-17, and do the F5 routine,
it works. I've tried the Remove All Spaces macro, to no avail. Column H is
a copy, paste special values from another column that has formulas in 7-17.

Any ideas?

TIA


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clear cell borders for blank white page TJAC Excel Discussion (Misc queries) 2 February 21st 07 02:32 PM
Clear cell borders for blank white page john Excel Discussion (Misc queries) 0 February 21st 07 01:53 PM
clear range of cells if another becomes blank bgg Excel Worksheet Functions 3 January 17th 07 11:32 PM
How to clear the word '(blank)' from a cell in a Pivot Table Rob Conder Excel Discussion (Misc queries) 2 November 3rd 06 07:14 AM
How do I clear blank space at the top of a word-wrapped text cell? mirage1210 Excel Discussion (Misc queries) 2 February 11th 05 09:19 PM


All times are GMT +1. The time now is 10:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"