Solved

Excell Question

Posted on 1999-01-11
6
156 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
6 Comments
 

Expert Comment

by:westone
Comment Utility
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
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 3

Expert Comment

by:rosefire
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup 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.

Join & Write a Comment

This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now