Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ANDRIP
 
Posts: n/a
Default FILTER ONE MULTIPLE SHEETS

Hello people,
here is my problem:

Suppose i have two worksheets (FIRST, SECOND) with 5 columns each (col. A is
for COLOR1 and col. B is for COLOR2)
FIRST worksheet will have about 1000 records. In SECOND worksheet I want to
have only records which has either in col. A or col. B (for example) the word
'RED'
Is that possible for EXCEL? And if I enter a new record in FIRST worksheet
which has the word RED will it be added to SECOND worksheet?

I hope my problem is clear, if not I will repeat it, thanks everyone
  #2   Report Post  
Max
 
Posts: n/a
Default

Here's one play to try out ..

Assume the sample data below is
in sheet: First, cols A to E,
data from row2 down

Color1 Color2 Rec1 Rec2 Rec3
Yellow Pink Data1 Data11 Data111
Red Green Data2 Data12 Data112
Orange Red Data3 Data13 Data113
Black White Data4 Data14 Data114
Red Red Data5 Data15 Data115
Black White Data6 Data16 Data116
Black Blue Data7 Data17 Data117
etc

In an empty col to the right, say col G?

Put in G2:
=IF(OR(TRIM(A2)="Red",TRIM(B2)="Red"),ROW(),"")

Copy G2 down to say G2000, to cover the max expected data range in cols A to
E (can copy down ahead of expected data input)

In sheet: Second
-----------------
Paste the same headers from First into A1:E1, viz.:
Color1 Color2 Rec1 Rec2 Rec3

Put in A2:

=IF(ISERROR(SMALL(First!$G:$G,ROWS($A$1:A1))),"",I NDEX(First!A:A,MATCH(SMALL
(First!$G:$G,ROWS($A$1:A1)),First!$G:$G,0)))

Copy A2 across to E2, fill down to E2000
(cover the same range as in sheet: First)

For the sample data above, you'll get:

Color1 Color2 Rec1 Rec2 Rec3
Red Green Data2 Data12 Data112
Orange Red Data3 Data13 Data113
Red Red Data5 Data15 Data115
(rest are blank [""] rows)

And the table in Second will update automatically depending on what's
entered for the colors in First's cols A and/or B
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"ANDRIP" wrote in message
...
Hello people,
here is my problem:

Suppose i have two worksheets (FIRST, SECOND) with 5 columns each (col. A

is
for COLOR1 and col. B is for COLOR2)
FIRST worksheet will have about 1000 records. In SECOND worksheet I want

to
have only records which has either in col. A or col. B (for example) the

word
'RED'
Is that possible for EXCEL? And if I enter a new record in FIRST worksheet
which has the word RED will it be added to SECOND worksheet?

I hope my problem is clear, if not I will repeat it, thanks everyone



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
Copying multiple sheets from one book 2 another and undertake spec Pank Mehta Excel Discussion (Misc queries) 14 March 16th 05 04:41 PM
Can I unhide multiple sheets at once? Brockli Excel Discussion (Misc queries) 1 February 24th 05 07:46 PM
Multiple sheets selected twa14 Excel Discussion (Misc queries) 2 December 21st 04 11:15 AM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM
CountIF across multiple sheets in a workbook Al Excel Worksheet Functions 1 October 29th 04 01:15 PM


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