PC Review


Reply
Thread Tools Rate Thread

Compare two Ecxel Sheet

 
 
compare xl
Guest
Posts: n/a
 
      13th Jul 2009
Hi,

I would like to have a macro that will compare the contents of two excels
and return the difference in terms of red colors in the target excel.

Thanks in advance,
Santanu
 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      13th Jul 2009
Hi

We need some more information.

Do your want to compare two sheets in same workbook or maybe multiple sheets
in two workbooks?

How are your data layout, ie which columns and rows needs to be compared. Do
you want to compare cell by cell or row by row.

Shall only a single cell be highligheted, or maybe the entire column.

Regards,
Per

"compare xl" <compare (E-Mail Removed)> skrev i meddelelsen
news:3076DFC5-23A2-47C7-AB12-(E-Mail Removed)...
> Hi,
>
> I would like to have a macro that will compare the contents of two excels
> and return the difference in terms of red colors in the target excel.
>
> Thanks in advance,
> Santanu


 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      13th Jul 2009
More information would be helpful. This MAY do what you want:
Sub Compare2Shts()
For Each Cell In Worksheets("Sheet1").UsedRange
If Cell.Value <> Worksheets("Sheet2").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next

For Each Cell In Worksheets("Sheet2").UsedRange
If Cell.Value <> Worksheets("Sheet1").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next
End Sub

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Per Jessen" wrote:

> Hi
>
> We need some more information.
>
> Do your want to compare two sheets in same workbook or maybe multiple sheets
> in two workbooks?
>
> How are your data layout, ie which columns and rows needs to be compared. Do
> you want to compare cell by cell or row by row.
>
> Shall only a single cell be highligheted, or maybe the entire column.
>
> Regards,
> Per
>
> "compare xl" <compare (E-Mail Removed)> skrev i meddelelsen
> news:3076DFC5-23A2-47C7-AB12-(E-Mail Removed)...
> > Hi,
> >
> > I would like to have a macro that will compare the contents of two excels
> > and return the difference in terms of red colors in the target excel.
> >
> > Thanks in advance,
> > Santanu

>
>

 
Reply With Quote
 
compare xl
Guest
Posts: n/a
 
      14th Jul 2009
Hi Jessen,

I have two excel sheets. I would like the macro to compare all the
worksheets in the XL files cell wise and written the difference in the latter
file.

Let me know if you need more details.

Thanks
Santanu

"Per Jessen" wrote:

> Hi
>
> We need some more information.
>
> Do your want to compare two sheets in same workbook or maybe multiple sheets
> in two workbooks?
>
> How are your data layout, ie which columns and rows needs to be compared. Do
> you want to compare cell by cell or row by row.
>
> Shall only a single cell be highligheted, or maybe the entire column.
>
> Regards,
> Per
>
> "compare xl" <compare (E-Mail Removed)> skrev i meddelelsen
> news:3076DFC5-23A2-47C7-AB12-(E-Mail Removed)...
> > Hi,
> >
> > I would like to have a macro that will compare the contents of two excels
> > and return the difference in terms of red colors in the target excel.
> >
> > Thanks in advance,
> > Santanu

>
>

 
Reply With Quote
 
MC Saravanan
Guest
Posts: n/a
 
      5th Aug 2009
Hello Sir,

It's really working for my process, can u help me more on this.
Let me explain the 2 scenario,

1--> If any row or column got inserted ?
2--> Same for delete ?

So, on the above scenario's the code should highlight in different colour.

This will reduce atleast 1 hc in my process.

Thanks for the understanding


Best Regards,

MC Saravanan
+91-98409-22085
mc-(E-Mail Removed)
saravanan-(E-Mail Removed)

"ryguy7272" wrote:

> More information would be helpful. This MAY do what you want:
> Sub Compare2Shts()
> For Each Cell In Worksheets("Sheet1").UsedRange
> If Cell.Value <> Worksheets("Sheet2").Range(Cell.Address) Then
> Cell.Interior.ColorIndex = 3
> End If
> Next
>
> For Each Cell In Worksheets("Sheet2").UsedRange
> If Cell.Value <> Worksheets("Sheet1").Range(Cell.Address) Then
> Cell.Interior.ColorIndex = 3
> End If
> Next
> End Sub
>
> --
> Ryan---
> If this information was helpful, please indicate this by clicking ''Yes''.
>
>
> "Per Jessen" wrote:
>
> > Hi
> >
> > We need some more information.
> >
> > Do your want to compare two sheets in same workbook or maybe multiple sheets
> > in two workbooks?
> >
> > How are your data layout, ie which columns and rows needs to be compared. Do
> > you want to compare cell by cell or row by row.
> >
> > Shall only a single cell be highligheted, or maybe the entire column.
> >
> > Regards,
> > Per
> >
> > "compare xl" <compare (E-Mail Removed)> skrev i meddelelsen
> > news:3076DFC5-23A2-47C7-AB12-(E-Mail Removed)...
> > > Hi,
> > >
> > > I would like to have a macro that will compare the contents of two excels
> > > and return the difference in terms of red colors in the target excel.
> > >
> > > Thanks in advance,
> > > Santanu

> >
> >

 
Reply With Quote
 
MC Saravanan
Guest
Posts: n/a
 
      5th Aug 2009
Hello Sir,

It's really working for my process, can u help me more on this.
Let me explain the 2 scenario,

1--> If any row or column got inserted ?
2--> Same for delete ?

So, on the above scenario's the code should highlight in different colour.

This will reduce atleast 1 hc in my process.

Thanks for the understanding


Best Regards,

MC Saravanan
+91-98409-22085
mc-(E-Mail Removed)
saravanan-(E-Mail Removed)


"ryguy7272" wrote:

> More information would be helpful. This MAY do what you want:
> Sub Compare2Shts()
> For Each Cell In Worksheets("Sheet1").UsedRange
> If Cell.Value <> Worksheets("Sheet2").Range(Cell.Address) Then
> Cell.Interior.ColorIndex = 3
> End If
> Next
>
> For Each Cell In Worksheets("Sheet2").UsedRange
> If Cell.Value <> Worksheets("Sheet1").Range(Cell.Address) Then
> Cell.Interior.ColorIndex = 3
> End If
> Next
> End Sub
>
> --
> Ryan---
> If this information was helpful, please indicate this by clicking ''Yes''.
>
>
> "Per Jessen" wrote:
>
> > Hi
> >
> > We need some more information.
> >
> > Do your want to compare two sheets in same workbook or maybe multiple sheets
> > in two workbooks?
> >
> > How are your data layout, ie which columns and rows needs to be compared. Do
> > you want to compare cell by cell or row by row.
> >
> > Shall only a single cell be highligheted, or maybe the entire column.
> >
> > Regards,
> > Per
> >
> > "compare xl" <compare (E-Mail Removed)> skrev i meddelelsen
> > news:3076DFC5-23A2-47C7-AB12-(E-Mail Removed)...
> > > Hi,
> > >
> > > I would like to have a macro that will compare the contents of two excels
> > > and return the difference in terms of red colors in the target excel.
> > >
> > > Thanks in advance,
> > > Santanu

> >
> >

 
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
Compare sheet utility that can compare formula too Adam2046 Microsoft Excel Discussion 3 27th Apr 2010 09:26 AM
compare value of cell in one sheet to range of another sheet Matthew Dyer Microsoft Excel Programming 3 12th Mar 2010 03:41 AM
Re: Compare Two Sheet Roger Govier Microsoft Excel Misc 1 30th Nov 2008 04:31 PM
Help me, compare 2 sheet and extract the match data into the new sheet. sweetnet Microsoft Excel Misc 1 22nd Feb 2006 07:49 PM
Compare Sheet Cell to Sheet Column =?Utf-8?B?QnJlbmRh?= Microsoft Excel Worksheet Functions 2 4th Jan 2006 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:41 PM.