Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Craig
 
Posts: n/a
Default cntrl + down arrow and null values in cells

Cntrl+ down arrow is taking me to the next blank cell. The problem is that many
cells in a column appear blank, but they actually have something in them.
These data are being copied from other sheets, and there are no blank spaces
in the cells. I've tried using paste special - values, but this also does not
work.

So my question: What could be in these cells that stops excel from seeing
them as blank? A colleague is also having this happen to him with data
exported from Access. Maybe excel sees a null value or something and
considers that different from blank?

I'm dealing with very large spreadsheets, and I want to be able to quickly
verify if there is data in all columns. I want to use cntrl plus arrow down
for this, but I can't as long as excel views these null cells as containing
values.
thank you,
craig
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default cntrl + down arrow and null values in cells

If you have a formula that evaluates to "" (like =if(a10,"error","")) and it's
converted to values then this cell isn't really empty!

You can see this by (temporarily) toggling this setting:

Tools|options|transition tab|check Transition navigation keys.
You'll see an apostrophe in the formula bar.
(toggle that setting back!)



One way of cleaning up this detritus:

Select the range to fix
edit|replace
what: (leave blank)
with: $$$$$ (my unique string)
replace all

then one more time
edit|replace
what: $$$$$
with: (leave blank)
replace all


Craig wrote:

Cntrl+ down arrow is taking me to the next blank cell. The problem is that many
cells in a column appear blank, but they actually have something in them.
These data are being copied from other sheets, and there are no blank spaces
in the cells. I've tried using paste special - values, but this also does not
work.

So my question: What could be in these cells that stops excel from seeing
them as blank? A colleague is also having this happen to him with data
exported from Access. Maybe excel sees a null value or something and
considers that different from blank?

I'm dealing with very large spreadsheets, and I want to be able to quickly
verify if there is data in all columns. I want to use cntrl plus arrow down
for this, but I can't as long as excel views these null cells as containing
values.
thank you,
craig


--

Dave Peterson
  #3   Report Post  
PeterAtherton
 
Posts: n/a
Default cntrl + down arrow and null values in cells



"Dave Peterson" wrote:

If you have a formula that evaluates to "" (like =if(a10,"error","")) and it's
converted to values then this cell isn't really empty!

You can see this by (temporarily) toggling this setting:

Tools|options|transition tab|check Transition navigation keys.
You'll see an apostrophe in the formula bar.
(toggle that setting back!)



One way of cleaning up this detritus:

Select the range to fix
edit|replace
what: (leave blank)
with: $$$$$ (my unique string)
replace all

then one more time
edit|replace
what: $$$$$
with: (leave blank)
replace all



Dave Peterson


Assuming that there are no formulas you might have non printing characters.
If Daves method is too involved you could try this macro.

Sub clearNonBlanks()
Dim c
For Each c In Selection
'get rid of blanks
c.Value = Trim(c)
If IsDate(c) Then
c = c
End If
'ensure date values are correct
If IsNumeric(c) And _
Not IsDate(c) Then
c = c * 1
End If
If Asc(c) < 32 Then
c.Delete
End If
Next
End Sub

Copy sub into a VB Module, (ALT + F8, INsert Module) Select the all the
cells in the sheet and run the macro

Regards
Peter
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
Selecing cntrl + arrow key to move to next populated cell Craig Excel Discussion (Misc queries) 2 October 25th 05 08:55 PM


All times are GMT +1. The time now is 11:29 PM.

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

About Us

"It's about Microsoft Excel"