PC Review


Reply
Thread Tools Rate Thread

Copying non-blank rows only

 
 
=?Utf-8?B?WmFreW50aG9z?=
Guest
Posts: n/a
 
      29th Mar 2007
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGF0YXNvcnQ=?=
Guest
Posts: n/a
 
      30th Mar 2007
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 With Quote
 
=?Utf-8?B?WmFreW50aG9z?=
Guest
Posts: n/a
 
      2nd Apr 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
insert rows and copying cells in column b,c, and d into new rows gbpg Microsoft Excel Programming 3 31st Dec 2009 01:05 AM
Copying the filtered data to clipboard is copying non-visible rows =?Utf-8?B?U2VldGhhUmFtYW4=?= Microsoft Excel Crashes 10 12th Jul 2006 09:39 PM
Copying multiple rows to other worksheets (but amount of rows varies) - How? David Smithz Microsoft Excel Misc 1 18th Jun 2006 04:31 PM
Copying and pasting a worksheet to a blank and removing blank rows Bob Reynolds Microsoft Excel Programming 0 24th Jun 2004 02:55 PM
Copying non-blank rows to another sheet... =?Utf-8?B?TWlrZQ==?= Microsoft Excel Programming 1 29th Apr 2004 07:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 AM.