WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

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

 
   Home -> Office -> New Users RSS
Next:  Excel 2003 crash - exception error  
Author Message
Jerry

External


Since: Apr 22, 2006
Posts: 108



(Msg. 1) Posted: Sat Jul 07, 2007 2:38 pm
Post subject: Compare two file/colunms, hide row not does not equal list.
Archived from groups: microsoft>public>excel>newusers (more info?)

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
Back to top
Login to vote
Max

External


Since: Mar 17, 2004
Posts: 2612



(Msg. 2) Posted: Mon Jul 09, 2007 6:46 pm
Post subject: Re: Compare two file/colunms, hide row not does not equal list. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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".
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jerry" wrote:
> 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
Back to top
Login to vote
Jerry

External


Since: Apr 22, 2006
Posts: 108



(Msg. 3) Posted: Sat Jul 21, 2007 3:50 pm
Post subject: Re: Compare two file/colunms, hide row not does not equal list. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks!!!

"Max" wrote:

> 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".
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> xdemechanik
> ---
> "Jerry" wrote:
> > 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
Back to top
Login to vote
Max

External


Since: Sep 08, 2003
Posts: 1645



(Msg. 4) Posted: Sun Jul 22, 2007 6:54 am
Post subject: Re: Compare two file/colunms, hide row not does not equal list. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

welcome. Thanks for feeding back.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jerry" <Jerry.RemoveThis@discussions.microsoft.com> wrote in message
news:5F6348FC-7B61-420F-9EB1-5DF7289BA862@microsoft.com...
> Thanks!!!
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> New Users All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support