Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Removing blanks from a spreadsheet

I created a huge data analysis file that consists of 50 by 214 cells.
According to my formula's, it will only show data if a lot of demands are
met. In reality, this means, about 15 to 20 of them have data, and the others
are blank.

I now want to quickly remove all the blanks. However, Go ToSpecialblanks,
doesn't work, because for some reason, Excel doesn't consider my blanks to be
blank, even after I copied the values to another worksheet, and am certain
that these cells are actually blank and empty.

Soooo, do any of you experts know a solution for this problem? Or another
way to quickly gather these appx. 20 cells that do have data in them in one
column? Without blanks? I'd hate to do that manually.

Thank you in advance. I'll be in bed really soon, cause it is terribly late
in Europe, but I'll be back first thing in the morning to check your ideas,
and provide feedback or add info I forgot to post right away...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Removing blanks from a spreadsheet


U¿ytkownik "Niels Jonker" <Niels napisa³ w
wiadomo¶ci ...
I created a huge data analysis file that consists of 50 by 214 cells.
According to my formula's, it will only show data if a lot of demands are
met. In reality, this means, about 15 to 20 of them have data, and the

others
are blank.

I now want to quickly remove all the blanks. However, Go

ToSpecialblanks,
doesn't work, because for some reason, Excel doesn't consider my blanks to

be
blank, even after I copied the values to another worksheet, and am certain
that these cells are actually blank and empty.

Soooo, do any of you experts know a solution for this problem? Or another
way to quickly gather these appx. 20 cells that do have data in them in

one
column? Without blanks? I'd hate to do that manually.

Thank you in advance. I'll be in bed really soon, cause it is terribly

late
in Europe, but I'll be back first thing in the morning to check your

ideas,
and provide feedback or add info I forgot to post right away...


try
Sub test()
Dim act As Worksheet

Set act = ActiveSheet
Sheets.Add After:=Sheets(act.Index)
ActiveSheet.Name = "formulas"
Row = 2
For Each cell In act.Range("a1").SpecialCells(xlCellTypeFormulas, 23)
If cell.Value < "" Then
cell.Copy
Sheets("formulas").Range("a" & Row).PasteSpecial xlPasteValues
Row = Row + 1
End If
Next
End Sub

run it when your sheet is active
mcg





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Removing blanks from a spreadsheet

Brilliant, thank you very much.

I could have never thought of the line "For each cell etc..."

Niels



"Gazeta" wrote:


U¿ytkownik "Niels Jonker" <Niels napisa³ w
wiadomo¶ci ...
I created a huge data analysis file that consists of 50 by 214 cells.
According to my formula's, it will only show data if a lot of demands are
met. In reality, this means, about 15 to 20 of them have data, and the

others
are blank.

I now want to quickly remove all the blanks. However, Go

ToSpecialblanks,
doesn't work, because for some reason, Excel doesn't consider my blanks to

be
blank, even after I copied the values to another worksheet, and am certain
that these cells are actually blank and empty.

Soooo, do any of you experts know a solution for this problem? Or another
way to quickly gather these appx. 20 cells that do have data in them in

one
column? Without blanks? I'd hate to do that manually.

Thank you in advance. I'll be in bed really soon, cause it is terribly

late
in Europe, but I'll be back first thing in the morning to check your

ideas,
and provide feedback or add info I forgot to post right away...


try
Sub test()
Dim act As Worksheet

Set act = ActiveSheet
Sheets.Add After:=Sheets(act.Index)
ActiveSheet.Name = "formulas"
Row = 2
For Each cell In act.Range("a1").SpecialCells(xlCellTypeFormulas, 23)
If cell.Value < "" Then
cell.Copy
Sheets("formulas").Range("a" & Row).PasteSpecial xlPasteValues
Row = Row + 1
End If
Next
End Sub

run it when your sheet is active
mcg






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
Spreadsheet shortcuts not working brt Setting up and Configuration of Excel 2 April 26th 06 01:57 PM
Spreadsheet Security Lee Meadowcroft Excel Discussion (Misc queries) 0 April 6th 06 09:40 PM
CountIF Function On Linked Spreadsheet Josh in Indy Excel Discussion (Misc queries) 0 April 5th 06 05:09 PM
Removing non text characters from spreadsheet Katie59 Excel Discussion (Misc queries) 3 March 23rd 06 05:16 PM
Spreadsheet merging problems Sam B Excel Worksheet Functions 0 September 19th 05 08:05 PM


All times are GMT +1. The time now is 08:32 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"