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 blank cells from a column

I have a column of data with blank cells inbetween some of the information. I
would like to list this column of data on a separate worksheet, with the
blank cells removed. Each blank cell in the column, will have data in other
cells in the same row, so the whole row won't be blank.

For example:

Existing worksheet New Worksheet

a a
b
b c
c d

d

Unfortunately I have no experience of writing macros. Can anyone help at all.

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Removing blank cells from a column

You don't need VBA, just AutoFilter:

In an un-used column enter:

=IF(A2="",1,0) and copy down.

The turn on AutoFilter and display and copy only the 0 cells. For
AutoFilter info see:

http://www.contextures.com/xlautofilter01.html
--
Gary's Student


"brenty" wrote:

I have a column of data with blank cells inbetween some of the information. I
would like to list this column of data on a separate worksheet, with the
blank cells removed. Each blank cell in the column, will have data in other
cells in the same row, so the whole row won't be blank.

For example:

Existing worksheet New Worksheet

a a
b
b c
c d

d

Unfortunately I have no experience of writing macros. Can anyone help at all.

Many thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Removing blank cells from a column

One way if you would like it dynamic ..

Assuming source data in Sheet1 in A1 down

In Sheet2,
Put in A1: =IF(Sheet1!A1="","",ROW())
Put in B1:
=IF(ROW()COUNT(A:A),"",INDEX(Sheet1!A:A,SMALL(A:A ,ROW())))
Select A1:B1, copy down to cover the max expected extent of source data in
Sheet1. Hide away col A. Col B will return the required results.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"brenty" wrote:
I have a column of data with blank cells in between some of the information. I
would like to list this column of data on a separate worksheet, with the
blank cells removed. Each blank cell in the column, will have data in other
cells in the same row, so the whole row won't be blank.

For example:

Existing worksheet New Worksheet

a a
b
b c
c d

d

Unfortunately I have no experience of writing macros. Can anyone help at all.

Many thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Removing blank cells from a column

Sub removeblankrows()' To delete rows on the source sheet.Don't save
Columns(1).SpecialCells(xlBlanks).EntireRow.Delete
End Sub

to copydatafilterautofilterfilter out blankscopyrecord a macro if
desired.

--
Don Guillett
SalesAid Software

"brenty" wrote in message
...
I have a column of data with blank cells inbetween some of the information.
I
would like to list this column of data on a separate worksheet, with the
blank cells removed. Each blank cell in the column, will have data in
other
cells in the same row, so the whole row won't be blank.

For example:

Existing worksheet New Worksheet

a a
b
b c
c d

d

Unfortunately I have no experience of writing macros. Can anyone help at
all.

Many thanks



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default Removing blank cells from a column

You can use an Advanced Filter to extract the items in column A to a
different sheet. There are instructions he

http://www.contextures.com/xladvfilter01.html#ExtractWs

Start from the sheet where you want the new list to appear. In the
Advanced Filter dialog box, select column A as the List range, and if
you want each item listed only once, check the box for Unique records only.

brenty wrote:
I have a column of data with blank cells inbetween some of the information. I
would like to list this column of data on a separate worksheet, with the
blank cells removed. Each blank cell in the column, will have data in other
cells in the same row, so the whole row won't be blank.

For example:

Existing worksheet New Worksheet

a a
b
b c
c d

d

Unfortunately I have no experience of writing macros. Can anyone help at all.

Many thanks



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
Finding blank cells scorpiorc Excel Discussion (Misc queries) 10 December 7th 06 06:27 PM
Rank a column but not include some cells Pillar Excel Discussion (Misc queries) 10 October 8th 06 05:33 AM
HELP: Last row of the column containing blank cells between non-blank cells Space Ape Excel Worksheet Functions 2 May 27th 05 12:18 AM
count non blank cells which meet criteria in another column cmarsh5035 Excel Worksheet Functions 2 February 16th 05 04:32 PM
how can i fill blank cells in column with abc while the right col. khurram saddique Excel Discussion (Misc queries) 2 February 12th 05 03:25 PM


All times are GMT +1. The time now is 02:20 AM.

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"