Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Comparing Updated files
Each day I receive an updated Excel file. The file is large and only minor
differences occur each day. How can I see the differences quickly or automatically? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Comparing Updated files
Bob,
How are any differences to be indentified? One way: =IF(COUNTIF(Range1, A2)=0,"new record","old record") "Range1" is a column in the "old" sheet which is compared to column A to the "new" sheet. Put formula in a "helper" column and copy down. "Bob" wrote: Each day I receive an updated Excel file. The file is large and only minor differences occur each day. How can I see the differences quickly or automatically? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Comparing Updated files
Assume we have two files, new.xls and old.xls.
Each has a sheet named s1. Open both files and run: Sub checkdif() Set wbo = Workbooks("old.xls") Set wbn = Workbooks("new.xls") Set so = wbo.Sheets("s1") Set sn = wbn.Sheets("s1") For Each r In sn.UsedRange vn = r.Value vo = so.Range(r.Address).Value If vo < vn Then r.Interior.ColorIndex = 6 End If Next End Sub The macro will hi-light in yellow all the cells in new.xls that are different than old.xls -- Gary''s Student - gsnu200733 "Bob" wrote: Each day I receive an updated Excel file. The file is large and only minor differences occur each day. How can I see the differences quickly or automatically? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Comparing Updated files
Does this not assume (which may correct!) that the files sizes (row and/or
columns) are the same? "Gary''s Student" wrote: Assume we have two files, new.xls and old.xls. Each has a sheet named s1. Open both files and run: Sub checkdif() Set wbo = Workbooks("old.xls") Set wbn = Workbooks("new.xls") Set so = wbo.Sheets("s1") Set sn = wbn.Sheets("s1") For Each r In sn.UsedRange vn = r.Value vo = so.Range(r.Address).Value If vo < vn Then r.Interior.ColorIndex = 6 End If Next End Sub The macro will hi-light in yellow all the cells in new.xls that are different than old.xls -- Gary''s Student - gsnu200733 "Bob" wrote: Each day I receive an updated Excel file. The file is large and only minor differences occur each day. How can I see the differences quickly or automatically? |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Comparing Updated files
Absolutely !! The structure must be the same ! If rows/columns are
added/deleted there will be a huge pile of mis-matches -- Gary''s Student - gsnu200733 "Toppers" wrote: Does this not assume (which may correct!) that the files sizes (row and/or columns) are the same? "Gary''s Student" wrote: Assume we have two files, new.xls and old.xls. Each has a sheet named s1. Open both files and run: Sub checkdif() Set wbo = Workbooks("old.xls") Set wbn = Workbooks("new.xls") Set so = wbo.Sheets("s1") Set sn = wbn.Sheets("s1") For Each r In sn.UsedRange vn = r.Value vo = so.Range(r.Address).Value If vo < vn Then r.Interior.ColorIndex = 6 End If Next End Sub The macro will hi-light in yellow all the cells in new.xls that are different than old.xls -- Gary''s Student - gsnu200733 "Bob" wrote: Each day I receive an updated Excel file. The file is large and only minor differences occur each day. How can I see the differences quickly or automatically? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I set excel files to be accessible by everyone and updated | Excel Discussion (Misc queries) | |||
Excel 2007: save updated files to F:\ | Excel Discussion (Misc queries) | |||
Updating or merging files, same file, they were updated independan | Excel Discussion (Misc queries) | |||
Comparing value in two different files | Excel Discussion (Misc queries) | |||
Excel updated with links in between destination files! | Links and Linking in Excel |