LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Compare row contents to baseline data

I have a source data spreadsheet consisting of 68 columns and about 10000+
rows. The unique identifier is in Column Q (not my design!). I'll call this
sheet (Source). Headers are in row 1.

I receive updates to the data in the form of a spreadsheet containing a
subset of Source with the columns in a defined format that matches Source,
and I need to perform a number of validation and comparison checks before
accepting these updates (lets call this sheet Update).

I would like to take the ID (say in Q2) from Update and check if it exists
in Source. If it does, I would then like to compare the entire row from
Update to see if it matches the corresponding row in Source. If there is a
mismatch, I would like the cell in Update to be shaded and a log (eg on a new
worksheet) detailing the ID, the Source value, the Update value and the
header row value.

I'm thinking that loading the row into an array would be the most efficient
and doing a loop to check each row in the Update sheet. However, I'm having
trouble getting started and would appreciate some pointers in the right
direction.

Thanks for your help. Please ask if you need anything clarified.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare Contents of 2 listboxes LaDdIe Excel Programming 4 January 7th 09 08:58 PM
Compare row contents Dylan Excel Programming 7 July 14th 08 09:05 PM
compare the contents of one range of cells with the contents of a. Dozy123 Excel Discussion (Misc queries) 1 January 24th 07 10:14 AM
compare cell contents guy Excel Worksheet Functions 2 December 23rd 05 08:38 PM
How to compare the contents of two rows is the same? OKLover Excel Programming 5 July 3rd 05 04:23 PM


All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"