Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 116
Default I want to compare old and new datasheets and highlight changes


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default I want to compare old and new datasheets and highlight changes


Helpful posting advice here... http://www.cpearson.com/excel/newposte.htm

--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins - use XL Companion to compare data)



"Barry"

wrote in message

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default I want to compare old and new datasheets and highlight changes

Sometimes less is more, sometimes more is more. When posting questions to
this DG, more is more and more is better. I can only assume what you want;
this may or may not help:


Sub Compare2Shts()
For Each Cell In Worksheets("CompareSheet#1").UsedRange
If Cell.Value < Worksheets("CompareSheet#2").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next

For Each Cell In Worksheets("CompareSheet#2").UsedRange
If Cell.Value < Worksheets("CompareSheet#1").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next
End Sub


Regards,
Ryan--

--
RyGuy


"Jim Cone" wrote:


Helpful posting advice here... http://www.cpearson.com/excel/newposte.htm

--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins - use XL Companion to compare data)



"Barry"

wrote in message


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 116
Default I want to compare old and new datasheets and highlight changes

Hi Jim & Ryan,
Ryan your reply read like it could be what I am looking for but being new to
VBA I amnot sure what to put in place of sheet1 or sheet2.

More info,

I have an Access 2007 database that once a week the main table get exported
to an Excel 2007 table (only one spreadsheet)
..
The data in the access table gets changed duing each weekly cyle and the
data in the previous weeks export stays the same.

I need to compare the two tables without making any changes to the data and
find out where the changes have been made, (create a new table with the
change highlighted) this are very large table and to do this manually is very
error prone.

Barry

"ryguy7272" wrote:

Sometimes less is more, sometimes more is more. When posting questions to
this DG, more is more and more is better. I can only assume what you want;
this may or may not help:


Sub Compare2Shts()
For Each Cell In Worksheets("CompareSheet#1").UsedRange
If Cell.Value < Worksheets("CompareSheet#2").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next

For Each Cell In Worksheets("CompareSheet#2").UsedRange
If Cell.Value < Worksheets("CompareSheet#1").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next
End Sub


Regards,
Ryan--

--
RyGuy


"Jim Cone" wrote:


Helpful posting advice here... http://www.cpearson.com/excel/newposte.htm

--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins - use XL Companion to compare data)



"Barry"

wrote in message


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default I want to compare old and new datasheets and highlight changes

If the data is non-sensitive, send me the file and I will set up a tool for
you to use going forward. Or, try to put some very basic data in a workbook,
that is somewhat similar to your workbook, send it to me, and I will take
care of the task and send it back to you.

Regards,




--
RyGuy


"Barry" wrote:

Hi Jim & Ryan,
Ryan your reply read like it could be what I am looking for but being new to
VBA I amnot sure what to put in place of sheet1 or sheet2.

More info,

I have an Access 2007 database that once a week the main table get exported
to an Excel 2007 table (only one spreadsheet)
.
The data in the access table gets changed duing each weekly cyle and the
data in the previous weeks export stays the same.

I need to compare the two tables without making any changes to the data and
find out where the changes have been made, (create a new table with the
change highlighted) this are very large table and to do this manually is very
error prone.

Barry

"ryguy7272" wrote:

Sometimes less is more, sometimes more is more. When posting questions to
this DG, more is more and more is better. I can only assume what you want;
this may or may not help:


Sub Compare2Shts()
For Each Cell In Worksheets("CompareSheet#1").UsedRange
If Cell.Value < Worksheets("CompareSheet#2").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next

For Each Cell In Worksheets("CompareSheet#2").UsedRange
If Cell.Value < Worksheets("CompareSheet#1").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next
End Sub


Regards,
Ryan--

--
RyGuy


"Jim Cone" wrote:


Helpful posting advice here...
http://www.cpearson.com/excel/newposte.htm

--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins - use XL Companion to compare data)



"Barry"

wrote in message


Reply
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 and Highlight Rows Lisab New Users to Excel 12 December 6th 07 03:26 PM
Compare two Cells and highlight third cell Timmy Excel Worksheet Functions 3 November 21st 07 08:38 PM
Compare lists and highlight matches srain001 Excel Discussion (Misc queries) 3 March 2nd 07 06:23 PM
Compare lists and highlight matches srain001 Excel Discussion (Misc queries) 2 March 1st 07 02:01 PM
compare two columns within a worksheet, then highlight duplicates Beth Excel Worksheet Functions 1 September 20th 06 03:47 PM


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

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"