Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

HELP ME!!!  Condensing multiple cells with text and too many blank

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jose - 17 May 2008 15:26 GMT
I have several hudred columns of text cells interspersed with blank cells.  
Instead of manually deleting each blank cell, I would like to do this with a
formula, or a macro, although I am not good with macros.

I would appreciate any help I can get.

Thanks for your time.

Signature

I need so much help, but right now, some Excel help will suffice!!

FSt1 - 17 May 2008 15:49 GMT
hi
can you sort it??? excel's sort moves blanks to the bottom.

regards
FSt1

> I have several hudred columns of text cells interspersed with blank cells.  
> Instead of manually deleting each blank cell, I would like to do this with a
[quoted text clipped - 3 lines]
>
> Thanks for your time.
Jose - 17 May 2008 16:05 GMT
Hi,

I can't sort the data because it's in a specific order and what I need to do
is to condense it so that the text in each of the cells that has text to
follow each other in a consecutive order.

Thanks
Signature

I need so much help, but right now, some Excel help will suffice!!

> hi
> can you sort it??? excel's sort moves blanks to the bottom.
[quoted text clipped - 9 lines]
> >
> > Thanks for your time.
Tim879 - 17 May 2008 16:40 GMT
This code will delete the blank cells (same as you selecting the cell
and deleting to the left). See comment in code below to move cell up
instead

Sub delete_blanks()
For myCol = 1 To Selection.Columns.Count
   For myRow = 1 To Selection.Rows.Count
       If Selection.Cells(myRow, myCol).Value = "" Then
           Selection.Cells(myRow, myCol).Delete Shift:=xlToLeft
'change this to xlUp if you want to move cells up when you delete
       End If
   Next
Next

End Sub

> Hi,
>
[quoted text clipped - 22 lines]
> > > --
> > > I need so much help, but right now, some Excel help will suffice!!
Gord Dibben - 17 May 2008 17:14 GMT
F5>Special>Blanks>OK

Edit>Delete>Shift cells up?

Gord Dibben  MS Excel MVP

>I have several hudred columns of text cells interspersed with blank cells.  
>Instead of manually deleting each blank cell, I would like to do this with a
[quoted text clipped - 3 lines]
>
>Thanks for your time.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.