PC Review


Reply
Thread Tools Rate Thread

creating matching lists between sheets for comparison

 
 
Chris Shaw
Guest
Posts: n/a
 
      27th Oct 2006
Guys,

Hopefully someone can help with this. Basically I have two worksheets
that I wrote some code to compare the values for each item. Only I have
come across a problem when a row may be missing from the data. For
example:

SheetA
Customer1 Name X Y
Customer2 Name S G
Customer3 Name A B

SheetB
Customer1 Name X B
Customer2 NAME S G
Customer3 Name A B

Currently the macro outputs a sheet highlighting where the values between
the sheets in the respective cell does not match...
e.g. IF Customer1Name_ShtA=Customer1Name_ShtB then ShtC.cell.value =
"Error"

BUT I have a problem where there is sometimes a record missing from one
of the reports making the if statement run out of synch. This is a
problem as it means i have to manually go through some massive datasets
adding rows manually until the rows match between the two sheets.

Anyone got any good ideas how i could get excel to do this automatically.
Was thinking of buinding some sort of unique key and running comparisons
etc but this will adjust the sort. This is not necessary and could cause
problems due to the source data and i simply want to add blank rows until
the next row matches correctly. I hope this has been made clear.

Cheers - Chris

Email: take out the obvious sections of the email address.

 
Reply With Quote
 
 
 
 
acampbell012@yahoo.com
Guest
Posts: n/a
 
      27th Oct 2006
Chris,

>From your example, it appears the data is mismatched, but all three

customers are on both sheets. So, I am not sure what you mean by a row
is missing.

Alan

Chris Shaw wrote:
> Guys,
>
> Hopefully someone can help with this. Basically I have two worksheets
> that I wrote some code to compare the values for each item. Only I have
> come across a problem when a row may be missing from the data. For
> example:
>
> SheetA
> Customer1 Name X Y
> Customer2 Name S G
> Customer3 Name A B
>
> SheetB
> Customer1 Name X B
> Customer2 NAME S G
> Customer3 Name A B
>
> Currently the macro outputs a sheet highlighting where the values between
> the sheets in the respective cell does not match...
> e.g. IF Customer1Name_ShtA=Customer1Name_ShtB then ShtC.cell.value =
> "Error"
>
> BUT I have a problem where there is sometimes a record missing from one
> of the reports making the if statement run out of synch. This is a
> problem as it means i have to manually go through some massive datasets
> adding rows manually until the rows match between the two sheets.
>
> Anyone got any good ideas how i could get excel to do this automatically.
> Was thinking of buinding some sort of unique key and running comparisons
> etc but this will adjust the sort. This is not necessary and could cause
> problems due to the source data and i simply want to add blank rows until
> the next row matches correctly. I hope this has been made clear.
>
> Cheers - Chris
>
> Email: take out the obvious sections of the email address.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number Value Comparison and matching =?Utf-8?B?UGF5UGF1bA==?= Microsoft Excel Worksheet Functions 0 13th Nov 2007 06:31 PM
Matching rows in 2 sheets and copying matching rows from sheet 1 t =?Utf-8?B?ZmJhZ2lyb3Y=?= Microsoft Excel Programming 1 8th Apr 2007 03:44 PM
Matching Data Columns for comparison =?Utf-8?B?Sk9ITg==?= Microsoft Excel Misc 0 8th Jan 2007 01:48 AM
RE: Net data from a comparison of 2 lists =?Utf-8?B?VGVldGhsZXNzIG1hbWE=?= Microsoft Excel Misc 0 21st Dec 2006 10:08 PM
Comparison or two sheets Chuck Microsoft Excel Programming 1 15th Apr 2005 06:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:18 AM.