Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Copying non-blank rows only

How could I set set up a table such that, if I copied the whole table to a
new sheet only the rows containing data would be copied, and the remaining
rows would be blank.

Example:

If rows 1 and rows 3 contained cells with data and rows 2 and 4 were empty,
how could I set up a filter (or formula/VB macro etc) such that any data
manually entered into a row would display but if the filter for that row were
set to a "N", for example, the row would not display data?

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Copying non-blank rows only

Try using the =ISBLANK() function and then sort the data by true/false

The isblank will tell you if a cell is blank. This would assume that the
valid rows of data have a value in at least one column. If you can't depend
of there always being a value in a specific column then you the
and(isblank(a1), isblankk(b1), ...) funtion to test multiple values.

Good Luck

--
Stewart Rogers
DataSort Software, L.C.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Copying non-blank rows only

Stewart,

Many thanks for your help - very useful - didn't know there was such a
function!

Best wishes

Tony

"Datasort" wrote:

Try using the =ISBLANK() function and then sort the data by true/false

The isblank will tell you if a cell is blank. This would assume that the
valid rows of data have a value in at least one column. If you can't depend
of there always being a value in a specific column then you the
and(isblank(a1), isblankk(b1), ...) funtion to test multiple values.

Good Luck

--
Stewart Rogers
DataSort Software, L.C.


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
How do I delete blank rows (rows alternate data, blank, data, etc ncochrax Excel Discussion (Misc queries) 2 June 27th 07 04:40 AM
Copying multiple rows to other worksheets (but amount of rows varies) - How? David Smithz Excel Discussion (Misc queries) 1 June 18th 06 04:31 PM
Delete blank row only if 2 consecutive blank rows Amy Excel Programming 2 October 21st 04 05:24 PM
Copying and pasting a worksheet to a blank and removing blank rows Bob Reynolds[_3_] Excel Programming 0 June 24th 04 02:55 PM
Copying non-blank rows to another sheet... Mike[_81_] Excel Programming 1 April 29th 04 07:27 AM


All times are GMT +1. The time now is 03:18 AM.

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"