Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Compare two file/colunms, hide row not does not equal list.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jerry - 07 Jul 2007 22:38 GMT
Excel 2000 -have two files. File "A" has 1 through 4155 records (rows with
three columns) in numerical order. File "B", has a list of almost 200
rows/numbers (one column) from file "A". How can I hide the rows in file "A",
not are listed in file "B"?

Thanks, Jerry
Max - 10 Jul 2007 02:46 GMT
Not sure whether you are still monitoring this post, Jerry.
Anyway, here's some thoughts ventured ..

Conceptually, you should be able to achieve this via setting up a helper col
and then autofiltering on the helper.

Let's start by simplifying the scenario by having both sheets in a single
file. A simple 10 seconds copy n paste of say, sheet: B into a new sheet of
File A where you have a master sheet: A would do it. Rename this new sheet
as: B.  

In File A,

Assume that in your master sheet: A,
you have the key col (unique item#s for eg) listed in A2 down

In sheet: B,
assume the same key col is also col A, with item#s listed in A2 down

In sheet: A,

In an empty col to the right of data, say in col E,

Put in E2:
=IF(A2="","",IF(ISNUMBER(MATCH(A2,B!A:A,0)),"Y","X"))

Copy E2 down to the last expected row of data in the key col A. Col E will
check col A for blank cells & match each item in col A with what's within col
A in sheet: B.

You'd get 3 possible results in col E: blanks: "", "Y", "X". Blanks will be
returned where there's nothing in col A to be compared (this will flag
missing values in-between within col A, if any, and also allows us to extend
the check to beyond the current filled range in col A). "Y" would be returned
for items in A found in B, "X" otherwise.

Now you could just apply autofilter on col E (Select entire col E, click
Data > Filter > Autofilter), and select as desired from the autofilter
droplist in E1. If you want to "hide" rows in A which are not listed in B,
just select: "Y" (as you mentioned in your posting). If you want to "show"
rows in A which are not found in B, just select: "X".
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> Excel 2000 -have two files. File "A" has 1 through 4155 records (rows with
> three columns) in numerical order. File "B", has a list of almost 200
> rows/numbers (one column) from file "A". How can I hide the rows in file "A",
> not are listed in file "B"?
>
> Thanks, Jerry
Jerry - 21 Jul 2007 23:50 GMT
Thanks!!!

> Not sure whether you are still monitoring this post, Jerry.
> Anyway, here's some thoughts ventured ..
[quoted text clipped - 43 lines]
> >
> > Thanks, Jerry
Max - 21 Jul 2007 23:54 GMT
welcome. Thanks for feeding back.
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> Thanks!!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.