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 / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

Read Input file and highlight matches in excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Argus Rogue - 17 May 2008 05:04 GMT
Hello All,

I was wondering if it was possible to read a text input file and compare
that list to see if it exists in excel.  If it does, can we highlight the
entire row.  This way, I can delete the un-lighted rows.  The row that we
want to compare or match is in Column A.

Example:

Text Input file:
---------------
OR-MyTestfile
OR-StateofUnion
OR-WhereAreYouFrom

Excel Spreadsheet
--------------------
       A                                    B                C
D
1    OR-MyTestFile                FileName    Location    Size
2    OR-YourNameIs             FirstName    EastWing    10mb
3    OR-StateofUnion             WhichState    City            Zipcode
4    OR-HowOldAreYou        Age            DOD            Year
5    OR-WhereAreYouFrom    Born          Date              Time

With the above example, the following ENTIRE ROW if possible, would be
highlighted (1,3,5)

Side note:
The Input text file is created by manually extracting those names from
muttilple sources.

End Results:
Only keep those rows that are highlighted

Any and all  help in this matter is greatly appreciated.
Dave Peterson - 17 May 2008 13:06 GMT
If you can get your data into two different worksheets of the same workbook, you
could add some headers and use a formula to mark the matches.

Say Sheet2 is the text input file version and Sheet1 contains your data.

Insert a new column B:
Add a header in B1
In B2:
=isnumber(match(a2,sheet2!a:a,0))
and drag down

You'll see True or false for each line.

Apply data|filter|autofilter to column B.
Show the lines you want to delete (False)
Delete the visible rows
remove the autofilter.

Chip Pearson has lots of techniques to work with duplicates:
http://www.cpearson.com/excel/Duplicates.aspx

> Hello All,
>
[quoted text clipped - 32 lines]
>
> Any and all  help in this matter is greatly appreciated.

Signature

Dave Peterson

 
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.