Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Show matching data in several worksheets

If I have a workbook with 7 sheets in it, e.g.
violet,indigo,blue,green,yellow,orange and red.
And data is in the A column of each sheet.
E.g. violet
1
2
3
4

blue
3
green
2
3

On an 8th sheet, I'd like some sort of table that will show when there is
matching data on the different sheets, something like this:

sheet names violet blue green
violet match in blue match in green

blue match in violet match in green
green match in violet match in blue

Thanks,

Steve


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Show matching data in several worksheets

One way which should deliver it ..
In the 8th sheet,
you have sheetnames listed in A2 down, eg: violet
and listed in B1 across, eg: blue, green
In B2, normal ENTER to confirm:
=IF($A2=B$1,"",IF(SUM(INDEX(COUNTIF(INDIRECT("'"&$ A2&"'!A2:A1000"),INDIRECT("'"&B$1&"'!A2:A1900")),) ),"match in "&B$1,""))
Copy B2 across/fill down to populate. Modify the ranges to suit. Success?
hit the YES below
--
Max
Singapore
---
"Steve" wrote:
If I have a workbook with 7 sheets in it, e.g.
violet,indigo,blue,green,yellow,orange and red.
And data is in the A column of each sheet.
E.g. violet
1
2
3
4

blue
3
green
2
3

On an 8th sheet, I'd like some sort of table that will show when there is
matching data on the different sheets, something like this:

sheet names violet blue green
violet match in blue match in green

blue match in violet match in green
green match in violet match in blue


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Show matching data in several worksheets

In B2, normal ENTER to confirm:
=IF($A2=B$1,"",IF(SUM(INDEX(COUNTIF(INDIRECT("'"&$ A2&"'!A2:A1000"),INDIRECT("'"&B$1&"'!A2:A1900")),) ),"match in "&B$1,""))


I had meant the expression above to display identical ranges in both sheets
being compared, but inadvertently left it as 1900 in one, and 1000 in the
other. Possibly because I was testing to see whether it works with
non-identical ranges. As a first precaution, do make the ranges identical
when you try it out over there.
--
Max
Singapore
---
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Show matching data in several worksheets

Thank you. I didn't verify all my data, but what I did check seems to be
working.

One more question: It has to be an exact match for the formula to work ,
doesn't it ? Meaning if "Excel" is on one sheet, and "Excel files" is on
another, it won't produce a match, will it ?

Thanks again,

Steve


"Max" wrote:

In B2, normal ENTER to confirm:
=IF($A2=B$1,"",IF(SUM(INDEX(COUNTIF(INDIRECT("'"&$ A2&"'!A2:A1000"),INDIRECT("'"&B$1&"'!A2:A1900")),) ),"match in "&B$1,""))


I had meant the expression above to display identical ranges in both sheets
being compared, but inadvertently left it as 1900 in one, and 1000 in the
other. Possibly because I was testing to see whether it works with
non-identical ranges. As a first precaution, do make the ranges identical
when you try it out over there.
--
Max
Singapore
---

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Show matching data in several worksheets

Yes, it uses an exact match

"Steve" wrote in message
...
Thank you. I didn't verify all my data, but what I did check seems to be
working.

One more question: It has to be an exact match for the formula to work ,
doesn't it ? Meaning if "Excel" is on one sheet, and "Excel files" is on
another, it won't produce a match, will it ?

Thanks again,

Steve


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
matching data in 2 worksheets tabylee via OfficeKB.com Excel Worksheet Functions 3 January 6th 10 05:30 PM
matching data on two separate worksheets jodi Excel Discussion (Misc queries) 1 September 17th 07 03:16 AM
matching and pasting data between worksheets TyCGibbs Excel Discussion (Misc queries) 1 September 11th 07 08:37 PM
matching data to merge two worksheets Gabrielle Excel Discussion (Misc queries) 1 February 23rd 06 05:28 AM
Matching/merging data from two worksheets rg3 Excel Worksheet Functions 2 February 8th 06 08:02 PM


All times are GMT +1. The time now is 01:44 PM.

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"