A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Show matching data in several worksheets



 
 
Thread Tools Display Modes
  #1  
Old April 25th, 2010, 08:28 PM posted to microsoft.public.excel.worksheet.functions
Steve
external usenet poster
 
Posts: 2,662
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  
Old April 26th, 2010, 12:13 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
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  
Old April 26th, 2010, 02:31 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
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  
Old April 26th, 2010, 01:17 PM posted to microsoft.public.excel.worksheet.functions
Steve
external usenet poster
 
Posts: 2,662
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  
Old April 26th, 2010, 05:16 PM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:55 AM.


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