Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ted Metro
 
Posts: n/a
Default Filtering assistance

I have a spreadsheet that I want to autofilter, but the design of the
spreadsheet is preventing me from picking up all of the data. I downloaded
some data out of Oracle and it's set up like this

A B C
D
Customer Name Project Name 2004 2005
Customer XYZ Project 1 100
200
Project 2 0
150
Project 3 280
0
Customer ABC Project 1 240
100
Project 2 0
120
and so on...

So when I filter column A and make a selection I only see Project 1, and
none of the other projects under that customer. Is there any way to get all
of the projects under a customer, or is there an easy way to get excel to
populate those cells in column A? For example using the above data, get
cells A3 and A4 to read Customer XYZ, and get A6 to read Customer ABC?

Ted


  #2   Report Post  
Alan Beban
 
Posts: n/a
Default

One way, if your data is as orderly as your posting suggests, is to run
the following code snippet with the relevant sheet active:

For Each iCell In Range("A1:A12")
If iCell.Value = "" Then iCell.Value = iCell(0).Value
Next iCell

Substitute the relevant ending cell for A12. Running the code will
insert in all the blank cells in the range the preceding company name.

Alan Beban

Ted Metro wrote:
I have a spreadsheet that I want to autofilter, but the design of the
spreadsheet is preventing me from picking up all of the data. I downloaded
some data out of Oracle and it's set up like this

A B C
D
Customer Name Project Name 2004 2005
Customer XYZ Project 1 100
200
Project 2 0
150
Project 3 280
0
Customer ABC Project 1 240
100
Project 2 0
120
and so on...

So when I filter column A and make a selection I only see Project 1, and
none of the other projects under that customer. Is there any way to get all
of the projects under a customer, or is there an easy way to get excel to
populate those cells in column A? For example using the above data, get
cells A3 and A4 to read Customer XYZ, and get A6 to read Customer ABC?

Ted


  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

Ted Metro wrote...
I have a spreadsheet that I want to autofilter, but the design of the
spreadsheet is preventing me from picking up all of the data. I

downloaded
....
So when I filter column A and make a selection I only see Project 1,

and
none of the other projects under that customer. Is there any way to

get all
of the projects under a customer, or is there an easy way to get excel

to
populate those cells in column A? For example using the above data,

get
cells A3 and A4 to read Customer XYZ, and get A6 to read Customer ABC?


If you want to keep the format (mostly) and want to avoid VBA, you
could insert a column immediately to the left of the table, enter
anything in the topmost cell (row of field names), and enter the
following formula in the cell below that (I'll assume this cell is A2)

A2:
=IF(TRIM(B2)<"",B2,A1)

and fill A2 down as needed. Then select the augmented table including
the inserted col A, and autofilter on col A.

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
filtering for unique records KG Excel Discussion (Misc queries) 7 August 13th 05 06:07 PM
Sorting and filtering dsbiloxi Excel Worksheet Functions 7 March 10th 05 11:55 PM
Filtering a protected WS in a shared workbook - Excel 2000 Phuong Nguyen Excel Discussion (Misc queries) 3 February 18th 05 10:28 PM
avanced filtering for latest date Joop Excel Discussion (Misc queries) 2 February 15th 05 07:31 AM
Using Filtering KellyB Excel Discussion (Misc queries) 2 December 6th 04 09:27 PM


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