i am trying to compare two work sheets. the master one being “A.xls” and the worksheet in file “B.xls” being anything but sequential. and contains lines which are not required.
what i would like to do is compare the two files and delete any rows which do not match any of the cells in the column in file “A.xls”
any one any ideas on where to start or pointers to an example on the web which might help
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
comparing two worksheets (officexp 2002)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » comparing two worksheets (officexp 2002)
- This topic has 6 replies, 3 voices, and was last updated 21 years, 6 months ago.
AuthorTopicWSalexanderd
AskWoody LoungerDecember 14, 2003 at 6:20 pm #397958Viewing 1 reply threadAuthorReplies-
notbrl
AskWoody LoungerDecember 14, 2003 at 7:08 pm #757315John Walkenbach has a utility that contains a worksheet/workbook comparison tool.
-
WSalexanderd
AskWoody LoungerDecember 15, 2003 at 7:48 pm #757781thank you for your quick response, unfortunately this is not what i am looking for. see xls file attached.
i am using sheet 2 as a master and would like to be able to delete all rows in sheet 1 which don’t appear in sheet 2 whilst i have found an example of comparing 2 sheets i am having trouble in getting to the stage of creating a single column of figures which dose not reference the position in sheet 2 -
macropod
AskWoody_MVPDecember 15, 2003 at 8:23 pm #757792Hi alexander,
In sheet 1 you could put the following formula in cell D5:
=IF(COUNTIF(A$5:A$714,Sheet2!A3)=0,”!”,””)
and copy all the way down. This puts a ‘!’ in any cell in column D for which the corresponding value isn’t found on sheet 2. Now select column D and do a PasteSpecial|Values, to ‘harden’ the results. Then all you need to do is to sort sheet 1 on column D, select all rows with the ‘!’ and delete them.Cheers
Cheers,
Paul Edstein
[Fmr MS MVP - Word] -
macropod
AskWoody_MVPDecember 15, 2003 at 8:23 pm #757793Hi alexander,
In sheet 1 you could put the following formula in cell D5:
=IF(COUNTIF(A$5:A$714,Sheet2!A3)=0,”!”,””)
and copy all the way down. This puts a ‘!’ in any cell in column D for which the corresponding value isn’t found on sheet 2. Now select column D and do a PasteSpecial|Values, to ‘harden’ the results. Then all you need to do is to sort sheet 1 on column D, select all rows with the ‘!’ and delete them.Cheers
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
-
-
-
WSalexanderd
AskWoody LoungerDecember 15, 2003 at 7:48 pm #757782thank you for your quick response, unfortunately this is not what i am looking for. see xls file attached.
i am using sheet 2 as a master and would like to be able to delete all rows in sheet 1 which don’t appear in sheet 2 whilst i have found an example of comparing 2 sheets i am having trouble in getting to the stage of creating a single column of figures which dose not reference the position in sheet 2
notbrl
AskWoody LoungerDecember 14, 2003 at 7:08 pm #757316John Walkenbach has a utility that contains a worksheet/workbook comparison tool.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Is it Local or is it Microsoft Account?
by
RetiredGeek
34 minutes ago -
Does Your State Reveal Who’s Been Hacked?
by
Nibbled To Death By Ducks
10 hours, 20 minutes ago -
A one-year extension to Windows 10 โ almost free!
by
Susan Bradley
9 minutes ago -
Windows Configuration Update (KB5062324) โ June 2025
by
Alex5723
10 hours, 16 minutes ago -
A federal judge sides with Anthropic in lawsuit over training AI
by
Alex5723
15 hours, 13 minutes ago -
Name of MS Word Formatting Feature
by
John Baum
4 hours ago -
InControl Failure?
by
Casey H
2 hours, 23 minutes ago -
Microsoft : Free 1 year support for Windows 10 after EOL
by
Alex5723
4 hours, 5 minutes ago -
MS-DEFCON 3: Businesses must tread carefully
by
Susan Bradley
5 hours, 29 minutes ago -
McLaren Health Care says data breach impacts 743,000 patients
by
Nibbled To Death By Ducks
1 day, 14 hours ago -
WhatsApp banned on House staffers’ devices
by
Alex5723
1 day, 9 hours ago -
Is your device eligible?
by
Susan Bradley
1 day, 17 hours ago -
Windows 11 Insider Preview build 26200.5661 released to DEV
by
joep517
1 day, 23 hours ago -
Windows 11 Insider Preview build 26120.4452 (24H2) released to BETA
by
joep517
1 day, 23 hours ago -
Hello Windows…My Problem is Windows Hello…
by
rdleib
2 days ago -
New Canon Printer Wants Data Sent
by
Win7and10
2 days ago -
I set up passkeys for my Microsoft account
by
Lance Whitney
1 hour, 11 minutes ago -
AI is for everyone
by
Peter Deegan
2 days ago -
Terabyte update 2025
by
Will Fastie
1 day, 18 hours ago -
Migrating from Windows 10 to Windows 11
by
Susan Bradley
1 hour, 50 minutes ago -
Lost sound after the upgrade to 24H2?
by
Susan Bradley
18 hours, 52 minutes ago -
How to move 10GB of data in C:\ProgramData\Package Cache ?
by
Alex5723
1 day, 3 hours ago -
Plugged in 24-7
by
CWBillow
2 days, 9 hours ago -
Netflix, Apple, BofA websites hijacked with fake help-desk numbers
by
Nibbled To Death By Ducks
3 days, 12 hours ago -
Have Copilot there but not taking over the screen in Word
by
CWBillow
3 days, 10 hours ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
5 days, 4 hours ago -
Are Macs immune?
by
Susan Bradley
1 day, 19 hours ago -
HP Envy and the Function keys
by
CWBillow
4 days, 11 hours ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
2 days, 5 hours ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
5 days, 15 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.