Solved

Excell Question

Posted on 1999-01-11
6
162 Views
Last Modified: 2011-04-14
I have 2 separate workbooks in Excell 97 format.
The first one has a list of values in the A Column.  For simplicity, let's say there are 50 different values.
In worksheet 2, I have a sub-list of about 10 values.  These 10 values can all be found in the first spreadsheet.

The small list are values that I need to delete out of the first list.  How can I compare these two lists, and find which values are present in both lists?  Is there a Union function or something that will do it?  
0
Comment
Question by:TISS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:westone
ID: 1014959
One possible solution:
Run a macro w/ a nested loop that compares each value in the big list to each value in the small list. When a match is found, the current cell in the big list ="", then exit the exit the nested loop and proceed to the next value in the big list.
0
 

Author Comment

by:TISS
ID: 1014960
That's one solution I thought of too, but I counldn't figure out how to code a macro to look at the value in another workbook.  
If it were too lists on the same workbook sheet, I'd be fine.

Any ideas on this?  
0
 
LVL 3

Expert Comment

by:rosefire
ID: 1014961
Can you use the DGET() database function to extract the fields that match?  Check Excel help on this function.  DGET() extracts the single values that match fields with a pattern you name.  Really, what you want to do amounts to database manipulation and excel is not the best tool, but it sounds like you may be stuck with it.

RoseFire
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 3

Expert Comment

by:rosefire
ID: 1014962
If you want to do this only once, you can cut and paste the small database into the larger sheet too.  This will be messy if you are trying to automate this process, however.

RoseFire
0
 

Accepted Solution

by:
Urandrial earned 40 total points
ID: 1014963
Here's what i do as a one off.

1.  In coumn B say of the small list enter a -1
2.  In column B of the large list enter a 1
3.  Copy small list to bottom of large list
4.  Highlight columns A and B.  Select Data...Sort..Column A...ascending
5.  In column C row 2 enter '=B1+B2'
6.  Drag the bottom right corner of this cell to the bottom of the combined list (thus      copying the formula for all othe other cells.
7.  Copy column C..paste special...values into column D
8.  Delete data from column C
9.  Highlight columns A and D.  Select Data...Sort...Column D...Ascending.
10.  Delete all rows with a value of 0.

This will delete all of the values in the large list that where contained in the short list.

I hope this helps.

Urandrial.
0
 

Author Comment

by:TISS
ID: 1014964
Thanks.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
A clone is a duplicate copy. Sheep have been cloned and maybe someday even people will be cloned, but disk cloning (performed by the hard drive cloning software) is a vital tool used to manage and protect data. Let’s look at what hard drive cloning …
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question