PC Review


Reply
Thread Tools Rate Thread

Comparing worksheets with non-identical rows of information

 
 
G. Yamada
Guest
Posts: n/a
 
      25th Jul 2008
Hi,

I am a newcomer when it comes to functions and programming in Excel which
makes this task all the more difficult. I have a worksheet that is updated
continuously with new/added information and information that is deleted.
This is an inventory worksheet with retail items listed in rows and aspects
of its description located in adjacent cells. Basically, I cannot depend on
an item to be located in the same row each time the worksheet is updated
since things are added and deleted.

What I would like to do is have the original (non-updated) worksheet be
compared to the updated worksheet by:

1. Using the info starting from C3 down (the UPC number for the product) in
the original worksheet and search for this number in the same column (C) in
the updated worksheet.

2. Highlight any differences in columns G, H, I, for the row in question
where the identical UPC numbers are found in both worksheets. (Highlighted in
the original worksheet)

This is a very involved task I would assume, so if an answer cannot be
provided, I would certainly appreciate any suggestions regarding reference
material. Thank you for your time

Glenn Yamada

 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      25th Jul 2008
This is a very simple program. Written it plenty of times. Can you let me
know the wroksheets names and the column where the UPC number is located.

I would recommend to do this task the opposite way from the way you
suggested. Go line by line on the updated worksheet and compare to the
original worksheet. This will catch the items that was added to the updated
sheet and not in the original sheet. Because you are requesting to highlight
differences in the updated sheet your way will miss these updated lines
because they don't exist in the original sheet.

"G. Yamada" wrote:

> Hi,
>
> I am a newcomer when it comes to functions and programming in Excel which
> makes this task all the more difficult. I have a worksheet that is updated
> continuously with new/added information and information that is deleted.
> This is an inventory worksheet with retail items listed in rows and aspects
> of its description located in adjacent cells. Basically, I cannot depend on
> an item to be located in the same row each time the worksheet is updated
> since things are added and deleted.
>
> What I would like to do is have the original (non-updated) worksheet be
> compared to the updated worksheet by:
>
> 1. Using the info starting from C3 down (the UPC number for the product) in
> the original worksheet and search for this number in the same column (C) in
> the updated worksheet.
>
> 2. Highlight any differences in columns G, H, I, for the row in question
> where the identical UPC numbers are found in both worksheets. (Highlighted in
> the original worksheet)
>
> This is a very involved task I would assume, so if an answer cannot be
> provided, I would certainly appreciate any suggestions regarding reference
> material. Thank you for your time
>
> Glenn Yamada
>

 
Reply With Quote
 
G. Yamada
Guest
Posts: n/a
 
      25th Jul 2008
Hello,

Thank you for your reply. The updated worksheet name is
"updatedDVDdatabase" and the original worksheet name is "DVDdatabase". The
UPCs are located in column C. Thanks again for your help.

Glenn

"Joel" wrote:

> This is a very simple program. Written it plenty of times. Can you let me
> know the wroksheets names and the column where the UPC number is located.
>
> I would recommend to do this task the opposite way from the way you
> suggested. Go line by line on the updated worksheet and compare to the
> original worksheet. This will catch the items that was added to the updated
> sheet and not in the original sheet. Because you are requesting to highlight
> differences in the updated sheet your way will miss these updated lines
> because they don't exist in the original sheet.
>
> "G. Yamada" wrote:
>
> > Hi,
> >
> > I am a newcomer when it comes to functions and programming in Excel which
> > makes this task all the more difficult. I have a worksheet that is updated
> > continuously with new/added information and information that is deleted.
> > This is an inventory worksheet with retail items listed in rows and aspects
> > of its description located in adjacent cells. Basically, I cannot depend on
> > an item to be located in the same row each time the worksheet is updated
> > since things are added and deleted.
> >
> > What I would like to do is have the original (non-updated) worksheet be
> > compared to the updated worksheet by:
> >
> > 1. Using the info starting from C3 down (the UPC number for the product) in
> > the original worksheet and search for this number in the same column (C) in
> > the updated worksheet.
> >
> > 2. Highlight any differences in columns G, H, I, for the row in question
> > where the identical UPC numbers are found in both worksheets. (Highlighted in
> > the original worksheet)
> >
> > This is a very involved task I would assume, so if an answer cannot be
> > provided, I would certainly appreciate any suggestions regarding reference
> > material. Thank you for your time
> >
> > Glenn Yamada
> >

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      25th Jul 2008
Sub CompareSheets()

With Sheets("updatedDVDdatabase")
RowCount = 3
Do While .Range("C" & RowCount) <> ""
UPC = .Range("C" & RowCount)
With Sheets("DVDdatabase")
Set c = .Columns("C").Find(what:=UPC, _
LookIn:=xlValues, lookat:=xlWhole)
End With
If c Is Nothing Then
.Range("C" & RowCount).Interior.ColorIndex = 3
.Range("G" & RowCount).Interior.ColorIndex = 3
.Range("H" & RowCount).Interior.ColorIndex = 3
.Range("I" & RowCount).Interior.ColorIndex = 3
Else
.Range("C" & RowCount).Interior.ColorIndex = 4
With Sheets("DVDdatabase")
.Range("C" & c.Row).Interior.ColorIndex = 4
End With
For ColCount = Range("G1").Column To _
Range("I1").Column

If .Cells(RowCount, ColCount) = _
Sheets("DVDdatabase").Cells(c.Row, ColCount) Then

.Cells(RowCount, ColCount).Interior.ColorIndex = 4
Sheets("DVDdatabase").Cells(c.Row, ColCount) _
.Interior.ColorIndex = 4
Else
.Cells(RowCount, ColCount).Interior.ColorIndex = 3
Sheets("DVDdatabase").Cells(c.Row, ColCount) _
.Interior.ColorIndex = 3
End If
Next ColCount
End If
RowCount = RowCount + 1
Loop
End With
End Sub


"G. Yamada" wrote:

> Hello,
>
> Thank you for your reply. The updated worksheet name is
> "updatedDVDdatabase" and the original worksheet name is "DVDdatabase". The
> UPCs are located in column C. Thanks again for your help.
>
> Glenn
>
> "Joel" wrote:
>
> > This is a very simple program. Written it plenty of times. Can you let me
> > know the wroksheets names and the column where the UPC number is located.
> >
> > I would recommend to do this task the opposite way from the way you
> > suggested. Go line by line on the updated worksheet and compare to the
> > original worksheet. This will catch the items that was added to the updated
> > sheet and not in the original sheet. Because you are requesting to highlight
> > differences in the updated sheet your way will miss these updated lines
> > because they don't exist in the original sheet.
> >
> > "G. Yamada" wrote:
> >
> > > Hi,
> > >
> > > I am a newcomer when it comes to functions and programming in Excel which
> > > makes this task all the more difficult. I have a worksheet that is updated
> > > continuously with new/added information and information that is deleted.
> > > This is an inventory worksheet with retail items listed in rows and aspects
> > > of its description located in adjacent cells. Basically, I cannot depend on
> > > an item to be located in the same row each time the worksheet is updated
> > > since things are added and deleted.
> > >
> > > What I would like to do is have the original (non-updated) worksheet be
> > > compared to the updated worksheet by:
> > >
> > > 1. Using the info starting from C3 down (the UPC number for the product) in
> > > the original worksheet and search for this number in the same column (C) in
> > > the updated worksheet.
> > >
> > > 2. Highlight any differences in columns G, H, I, for the row in question
> > > where the identical UPC numbers are found in both worksheets. (Highlighted in
> > > the original worksheet)
> > >
> > > This is a very involved task I would assume, so if an answer cannot be
> > > provided, I would certainly appreciate any suggestions regarding reference
> > > material. Thank you for your time
> > >
> > > Glenn Yamada
> > >

 
Reply With Quote
 
G. Yamada
Guest
Posts: n/a
 
      30th Jul 2008
I appreciate the help!
 
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
COMPARING TWO COLUMNS OF INFORMATION, ACROSS TWO WORKSHEETS Susan Microsoft Excel Worksheet Functions 2 5th Jan 2009 11:25 PM
Comparing information on 2 worksheets Lee Microsoft Excel Misc 1 20th Nov 2008 09:57 PM
Re: comparing identical rows in different sheets Brian Madsen Microsoft Excel Programming 2 19th Sep 2004 10:34 AM
comparing identical rows in different sheets Brian Madsen Microsoft Excel Programming 0 19th Sep 2004 09:24 AM
Comparing rows of data in two worksheets Sheena Microsoft Excel Programming 18 19th Jul 2004 01:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:17 AM.