Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Aaron
 
Posts: n/a
Default How do I filter out lines in a range?

I have a long list of data imported to excel (around 4400 rows). The data is
financial, so there is heading row giving general supplier details, and then
subsequent rows giving specific invoice details for the supplier. Not every
supplier has invoice details so I want to remove from the list the suppliers
that don't have invoice details. As in:
Supplier Code Invoice number Description Total
ABC Limited ABC-1
Invoice 1234 Items $100
Invoice 1235 Items $100
XYZ Co. XYZ-1
PQR Co. PQR-1

so I would want to remove the lines for XYZ and PQR.

Many thanks

Aaron
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default How do I filter out lines in a range?

Use the Auto-Filter feature - Click on the InvoiceNumber Column,
Filter - Custom, Non-Blanks...


"Aaron" wrote:

I have a long list of data imported to excel (around 4400 rows). The data is
financial, so there is heading row giving general supplier details, and then
subsequent rows giving specific invoice details for the supplier. Not every
supplier has invoice details so I want to remove from the list the suppliers
that don't have invoice details. As in:
Supplier Code Invoice number Description Total
ABC Limited ABC-1
Invoice 1234 Items $100
Invoice 1235 Items $100
XYZ Co. XYZ-1
PQR Co. PQR-1

so I would want to remove the lines for XYZ and PQR.

Many thanks

Aaron

  #3   Report Post  
Posted to microsoft.public.excel.misc
Aaron
 
Posts: n/a
Default How do I filter out lines in a range?

Thanks, but this won't work because I need to keep the ABC line, and
filtering it like that will remove that line as well.

"Jim May" wrote:

Use the Auto-Filter feature - Click on the InvoiceNumber Column,
Filter - Custom, Non-Blanks...


"Aaron" wrote:

I have a long list of data imported to excel (around 4400 rows). The data is
financial, so there is heading row giving general supplier details, and then
subsequent rows giving specific invoice details for the supplier. Not every
supplier has invoice details so I want to remove from the list the suppliers
that don't have invoice details. As in:
Supplier Code Invoice number Description Total
ABC Limited ABC-1
Invoice 1234 Items $100
Invoice 1235 Items $100
XYZ Co. XYZ-1
PQR Co. PQR-1

so I would want to remove the lines for XYZ and PQR.

Many thanks

Aaron

  #4   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default How do I filter out lines in a range?

You could "replicate" the Code fields which are presently "blank" as follows,
so the Auto-filter suggested would work - Showing you the Code value versus
the Suppler value (they appear to be interchangable, )
Select or Highlight B2 down to the last record, say B110 (B2:B100)
Click on the Edit menu, Goto.. click on the Special.. button - from the
resulting window click next to Blanks; And Ok out
This will return you to the Screen where the first blank cell will be the
activecell --
at this point simply press the Up Arrow key once which should move up to
cell B2,
then press down on the CONTROL key and at the same time press the ENTER key.
This will populate all the blank rows with the value from the cell above.
Now try your Auto-filter again..



"Aaron" wrote:

Thanks, but this won't work because I need to keep the ABC line, and
filtering it like that will remove that line as well.

"Jim May" wrote:

Use the Auto-Filter feature - Click on the InvoiceNumber Column,
Filter - Custom, Non-Blanks...


"Aaron" wrote:

I have a long list of data imported to excel (around 4400 rows). The data is
financial, so there is heading row giving general supplier details, and then
subsequent rows giving specific invoice details for the supplier. Not every
supplier has invoice details so I want to remove from the list the suppliers
that don't have invoice details. As in:
Supplier Code Invoice number Description Total
ABC Limited ABC-1
Invoice 1234 Items $100
Invoice 1235 Items $100
XYZ Co. XYZ-1
PQR Co. PQR-1

so I would want to remove the lines for XYZ and PQR.

Many thanks

Aaron

  #5   Report Post  
Posted to microsoft.public.excel.misc
Aaron
 
Posts: n/a
Default How do I filter out lines in a range?

Thanks again Jim - this idea has promise however it doesn't seem to work all
the way through... after selecting the range (which is C2:C4355) and doing
the goto special, it comes back to the sheet with all the blank cells
selected and cell C2 already as the active cell. Pressing any of the arrow
keys simply deselects all the blank cells, and pressing control and enter
before, after or while pressing any of the arrow keys doesn't do anything.
Any idea what I'm missing?

"Jim May" wrote:

You could "replicate" the Code fields which are presently "blank" as follows,
so the Auto-filter suggested would work - Showing you the Code value versus
the Suppler value (they appear to be interchangable, )
Select or Highlight B2 down to the last record, say B110 (B2:B100)
Click on the Edit menu, Goto.. click on the Special.. button - from the
resulting window click next to Blanks; And Ok out
This will return you to the Screen where the first blank cell will be the
activecell --
at this point simply press the Up Arrow key once which should move up to
cell B2,
then press down on the CONTROL key and at the same time press the ENTER key.
This will populate all the blank rows with the value from the cell above.
Now try your Auto-filter again..



"Aaron" wrote:

Thanks, but this won't work because I need to keep the ABC line, and
filtering it like that will remove that line as well.

"Jim May" wrote:

Use the Auto-Filter feature - Click on the InvoiceNumber Column,
Filter - Custom, Non-Blanks...


"Aaron" wrote:

I have a long list of data imported to excel (around 4400 rows). The data is
financial, so there is heading row giving general supplier details, and then
subsequent rows giving specific invoice details for the supplier. Not every
supplier has invoice details so I want to remove from the list the suppliers
that don't have invoice details. As in:
Supplier Code Invoice number Description Total
ABC Limited ABC-1
Invoice 1234 Items $100
Invoice 1235 Items $100
XYZ Co. XYZ-1
PQR Co. PQR-1

so I would want to remove the lines for XYZ and PQR.

Many thanks

Aaron



  #6   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default How do I filter out lines in a range?

My response had to do with the Column 2 (B:B) which I assumed to be your
"Code" column, not the Invoice Number column.

"Aaron" wrote:

Thanks again Jim - this idea has promise however it doesn't seem to work all
the way through... after selecting the range (which is C2:C4355) and doing
the goto special, it comes back to the sheet with all the blank cells
selected and cell C2 already as the active cell. Pressing any of the arrow
keys simply deselects all the blank cells, and pressing control and enter
before, after or while pressing any of the arrow keys doesn't do anything.
Any idea what I'm missing?

"Jim May" wrote:

You could "replicate" the Code fields which are presently "blank" as follows,
so the Auto-filter suggested would work - Showing you the Code value versus
the Suppler value (they appear to be interchangable, )
Select or Highlight B2 down to the last record, say B110 (B2:B100)
Click on the Edit menu, Goto.. click on the Special.. button - from the
resulting window click next to Blanks; And Ok out
This will return you to the Screen where the first blank cell will be the
activecell --
at this point simply press the Up Arrow key once which should move up to
cell B2,
then press down on the CONTROL key and at the same time press the ENTER key.
This will populate all the blank rows with the value from the cell above.
Now try your Auto-filter again..



"Aaron" wrote:

Thanks, but this won't work because I need to keep the ABC line, and
filtering it like that will remove that line as well.

"Jim May" wrote:

Use the Auto-Filter feature - Click on the InvoiceNumber Column,
Filter - Custom, Non-Blanks...


"Aaron" wrote:

I have a long list of data imported to excel (around 4400 rows). The data is
financial, so there is heading row giving general supplier details, and then
subsequent rows giving specific invoice details for the supplier. Not every
supplier has invoice details so I want to remove from the list the suppliers
that don't have invoice details. As in:
Supplier Code Invoice number Description Total
ABC Limited ABC-1
Invoice 1234 Items $100
Invoice 1235 Items $100
XYZ Co. XYZ-1
PQR Co. PQR-1

so I would want to remove the lines for XYZ and PQR.

Many thanks

Aaron

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 Do an Exclude Filter based on a Named Range? Dawg House Inc Excel Worksheet Functions 8 April 11th 06 02:49 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Filter By Date Range AcesUp Excel Discussion (Misc queries) 3 August 23rd 05 09:13 PM
Macro to copy range of formulas to equal data lines lh Excel Worksheet Functions 2 August 15th 05 04:37 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


All times are GMT +1. The time now is 03:53 PM.

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"