Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Determining repeated cells between two workbooks


Hello.

I have three columns in two separate workbooks. I wish to find out
which cells are different in workbook B given workbook A.

I'm really not sure how to explain it, so I will provide an example

Workbook A
110 6/20 73
110 7/01 93
110 8/04 82
140 6/15 24
140 7/10 11

Workbook B
110 6/20 99
110 7/03 93
110 7/22 11
110 8/04 82
140 6/15 24

First, I look at the first row from Workbook B. The first column shows
110, so I want to first make sure 110 exists in Workbook A. If it does,
then I look at the second column, which is 6/20. I look over at workbook
A, and make sure 6/20 exists in the second column where the first column
is also 110. (if 6/20 exists, but 110 is NOT in column A, that does NOT
count). Then I check out the third column, it shows 99, and try to find
99 in workbook A where column A = 110, and column B = 6/20.
If workbook B shows something different, then I want to highlight that
cell.

So in this example: 99, 7/03, 7/22, 11 from Workbook B will be
highlighted.

Anyone know of any built-in Excel functions or any VBA way to do this?

Thanks in advance!
(if my question is unclear, please let me know and I will try to clear
it up)


--
farful
------------------------------------------------------------------------
farful's Profile: http://www.excelforum.com/member.php...o&userid=36172
View this thread: http://www.excelforum.com/showthread...hreadid=559519

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Determining repeated cells between two workbooks

Assume Sheet1 and Sheet2. In D1 of sheet1

=if(Sumproduct(--(Sheet2!$A$1:$A$100=A1),--(Sheet2!$B$1:$B$100=B1),(--(Sheet2!$C$1:$C$100=C1))=0,"<==Unique","")

then drag fill down the column.

Similar in Sheet2

If you really need the cells highlighted, then use conditional formatting
with such a formula.

--
Regards,
Tom Ogilvy



"farful" wrote in
message ...

Hello.

I have three columns in two separate workbooks. I wish to find out
which cells are different in workbook B given workbook A.

I'm really not sure how to explain it, so I will provide an example

Workbook A
110 6/20 73
110 7/01 93
110 8/04 82
140 6/15 24
140 7/10 11

Workbook B
110 6/20 99
110 7/03 93
110 7/22 11
110 8/04 82
140 6/15 24

First, I look at the first row from Workbook B. The first column shows
110, so I want to first make sure 110 exists in Workbook A. If it does,
then I look at the second column, which is 6/20. I look over at workbook
A, and make sure 6/20 exists in the second column where the first column
is also 110. (if 6/20 exists, but 110 is NOT in column A, that does NOT
count). Then I check out the third column, it shows 99, and try to find
99 in workbook A where column A = 110, and column B = 6/20.
If workbook B shows something different, then I want to highlight that
cell.

So in this example: 99, 7/03, 7/22, 11 from Workbook B will be
highlighted.

Anyone know of any built-in Excel functions or any VBA way to do this?

Thanks in advance!
(if my question is unclear, please let me know and I will try to clear
it up)


--
farful
------------------------------------------------------------------------
farful's Profile:
http://www.excelforum.com/member.php...o&userid=36172
View this thread: http://www.excelforum.com/showthread...hreadid=559519



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
Printing text in a repeated cell/row that is longer than repeated Valerie Dyet Excel Discussion (Misc queries) 1 February 13th 06 03:27 AM
Determining which cells are locked. PCLIVE Excel Worksheet Functions 2 January 18th 06 03:08 PM
Delete repeated Cells Mosqui Excel Worksheet Functions 2 September 13th 05 01:31 AM
Determining if Other Workbooks Are Open Chaplain Doug Excel Programming 6 May 16th 05 08:12 PM
highlighting cells if value is repeated Skills[_4_] Excel Programming 0 October 4th 04 12:32 AM


All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"