Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
UT UT is offline
external usenet poster
 
Posts: 39
Default Remove Blank and Non Data Rows

Hi,

In a worksheet, on sheet 2 I have survey data imported from sheet 1.
However there are some rows with "0" value and blanks in between the rows of
data. I want to display only the non blank or non zero cells.

Example of My Sheet 2:

ROW COLUMN B
1 This is my first online course
2 0
3 <blank
4 Enjoyed the Course

Would like the data to appear like this:

ROW COLUMN B
1 This is my first online course
2 Enjoyed the Course

I tried the formula below on sheet 2 but it gave me "too few arguments for
this function" error message.

=IF(ROW()SUMPRODUCT(--(Sheet1!AR$9:AR$5000<0)),"",INDEX(Sheet1!AR$9:AR$ 5000,SMALL((Sheet1!AR$9:AR$5000<0)*SUMPRODUCT(--ISBLANK(Sheet1!AR$9:AR$5000))+ROW())))

What other function can I use to address this problem?
Thanks for the help.
UT


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Remove Blank and Non Data Rows

You could add headers in row 1 and then apply data|filter|autfilter.

Filter to show the blanks and delete the visible rows.
filter to show 0's and delete those rows
remove the filter (data|filter|autofilter again)
and remove the header.

UT wrote:

Hi,

In a worksheet, on sheet 2 I have survey data imported from sheet 1.
However there are some rows with "0" value and blanks in between the rows of
data. I want to display only the non blank or non zero cells.

Example of My Sheet 2:

ROW COLUMN B
1 This is my first online course
2 0
3 <blank
4 Enjoyed the Course

Would like the data to appear like this:

ROW COLUMN B
1 This is my first online course
2 Enjoyed the Course

I tried the formula below on sheet 2 but it gave me "too few arguments for
this function" error message.

=IF(ROW()SUMPRODUCT(--(Sheet1!AR$9:AR$5000<0)),"",INDEX(Sheet1!AR$9:AR$ 5000,SMALL((Sheet1!AR$9:AR$5000<0)*SUMPRODUCT(--ISBLANK(Sheet1!AR$9:AR$5000))+ROW())))

What other function can I use to address this problem?
Thanks for the help.
UT


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Remove Blank and Non Data Rows

Unless you have a special need for that format, I would recommend that you
re-structure your data to place all information about a single entry on the
same ROW, rather than in the same COLUMN. This will make further processing
much easier.

Vaya con Dios,
Chuck, CABGx3



"UT" wrote:

Hi,

In a worksheet, on sheet 2 I have survey data imported from sheet 1.
However there are some rows with "0" value and blanks in between the rows of
data. I want to display only the non blank or non zero cells.

Example of My Sheet 2:

ROW COLUMN B
1 This is my first online course
2 0
3 <blank
4 Enjoyed the Course

Would like the data to appear like this:

ROW COLUMN B
1 This is my first online course
2 Enjoyed the Course

I tried the formula below on sheet 2 but it gave me "too few arguments for
this function" error message.

=IF(ROW()SUMPRODUCT(--(Sheet1!AR$9:AR$5000<0)),"",INDEX(Sheet1!AR$9:AR$ 5000,SMALL((Sheet1!AR$9:AR$5000<0)*SUMPRODUCT(--ISBLANK(Sheet1!AR$9:AR$5000))+ROW())))

What other function can I use to address this problem?
Thanks for the help.
UT


  #4   Report Post  
Posted to microsoft.public.excel.misc
UT UT is offline
external usenet poster
 
Posts: 39
Default Remove Blank and Non Data Rows

Since there's lot of data and other columns and it's a continuing survey the
data has to be in one column.

Sorting in descending order solves the problem in a way. But as the new data
comes in I don't think the sheet will preserve the sort order. Every time
sheet 1 is refreshed (sheet 1 is connected to sql server database), sheet 2
will lose the sorting.

So I am still looking for better solution.

Thanks

"CLR" wrote:

Unless you have a special need for that format, I would recommend that you
re-structure your data to place all information about a single entry on the
same ROW, rather than in the same COLUMN. This will make further processing
much easier.

Vaya con Dios,
Chuck, CABGx3



"UT" wrote:

Hi,

In a worksheet, on sheet 2 I have survey data imported from sheet 1.
However there are some rows with "0" value and blanks in between the rows of
data. I want to display only the non blank or non zero cells.

Example of My Sheet 2:

ROW COLUMN B
1 This is my first online course
2 0
3 <blank
4 Enjoyed the Course

Would like the data to appear like this:

ROW COLUMN B
1 This is my first online course
2 Enjoyed the Course

I tried the formula below on sheet 2 but it gave me "too few arguments for
this function" error message.

=IF(ROW()SUMPRODUCT(--(Sheet1!AR$9:AR$5000<0)),"",INDEX(Sheet1!AR$9:AR$ 5000,SMALL((Sheet1!AR$9:AR$5000<0)*SUMPRODUCT(--ISBLANK(Sheet1!AR$9:AR$5000))+ROW())))

What other function can I use to address this problem?
Thanks for the help.
UT


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
formula to remove blank rows Bryan Excel Discussion (Misc queries) 1 January 25th 06 03:52 PM
Im trying to remove blank rows in an Excel spreadsheet Printout riponalong Excel Worksheet Functions 2 January 5th 06 05:58 AM
How do I remove numerous blank rows from Excel spreadsheet? JP6262AMY Excel Discussion (Misc queries) 4 August 15th 05 10:39 PM
remove or hide blank rows Erik Beijlen via OfficeKB.com Excel Discussion (Misc queries) 1 February 1st 05 01:17 PM
How do I remove blank rows in Excel? m28leics Excel Discussion (Misc queries) 2 November 29th 04 11:56 PM


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