Solved

Excel checking if teams have appeared in previous yeas

Posted on 2013-01-22
2
216 Views
Last Modified: 2013-01-22
Hi all,
I wanted to check if the teams this year have played in all the five previous years. I've attached a spreadsheet to show you what I've done. What I'm doing isn't working which is why I'm asking for help. I've used the function below.

=SUMPRODUCT(--('7-8'!$D$2:$D$307=B2),--('8-9'!$D$2:$D$307=B2),--('9-10'!$D$2:$D$307=B2),--('10-11'!$D$2:$D$307=B2),--('11-12'!$D$2:$D$307=B2))

B2 would be the team names cell.

The thing is that I had it working only for the bottom 3 teams at one stage but I know there are more teams that qualify.

Any help gratefully received.

Regards to all.
Dave
Team-count-over-the-previous-5-y.xls
0
Comment
Question by:Irazor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 250 total points
ID: 38807500
You can use:

=COUNTIF('7-8'!$D$2:$D$307,B2)+COUNTIF('8-9'!$D$2:$D$307,B2)+COUNTIF('9-10'!$D$2:$D$307,B2)+COUNTIF('10-11'!$D$2:$D$307,B2)+COUNTIF('11-12'!$D$2:$D$307,B2)

This counts the number of time the name appears in all the sheets.

If you want to simply count if they appear at least once in any sheet, then you can add >0 to each countif

e.g

=(COUNTIF('7-8'!$D$2:$D$307,B2)>0)+(COUNTIF('8-9'!$D$2:$D$307,B2)>0)+(COUNTIF('9-10'!$D$2:$D$307,B2)>0)+(COUNTIF('10-11'!$D$2:$D$307,B2)>0)+(COUNTIF('11-12'!$D$2:$D$307,B2)>0)

This will tell you how many of the 5 sheets the name appears in.
0
 

Author Closing Comment

by:Irazor
ID: 38807515
Excellent this is exactly what I wanted. Thanks NB_VC.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question