CountIF with an OR function?

thenapolitan

Board Regular
Joined
Sep 5, 2014
Messages
52
Hey All,

I'm in a little bit of a dilemma trying to calculate some things. What I'm trying to do is calculate the count of "Ties" when the teams below have the same score. The 24 records below show randomized (okay not-so-randomized, but consider it to be constantly changing) data where I calculate a count of wins, losses and ties per team.

The logic for the top line of Count of Wins is: =COUNTIF($E$48:$E$71,B34) (then dragged down)
The logic for the top line of Count of Losses is: =COUNTIF($D$48:$D$71,B34) (then dragged down)

I've got the count of wins and losses taken care of in the formulas above, but I can't for the life of me figure out how to get the count of "Tie" when the games are tied.

Anyone have any clever ideas? The team name could be listed under team 1 or team 2 and then the winner could also be listed under team 1 or team 2. I have my macro exporting "Tie" to the winner and loser columns when the score is tied and I would like to use that to count.


Team NameCount of WinsCount of LossesCount of Ties
Kalir Farms022
NiColoy022
NiCoForm022
www.yourcakery.com202
Sanz Electric202
Erb Financial220
Jay R. Gelb & Company Inc.220
Susan Bracker DDS022
Miniature Railways022
Rochester Home Equity, Inc.202
Veramark202
Apartment Finder Renters Guide202


Record NumberTeam 1Team 2Overall LoserOverall Winner
1Kalir FarmsApartment Finder Renters GuideTieTie
2NiColoyVeramarkTieTie
3NiCoFormRochester Home Equity, Inc.TieTie
4www.yourcakery.comMiniature RailwaysTieTie
5Sanz ElectricSusan Bracker DDSTieTie
6Erb FinancialJay R. Gelb & Company Inc.Erb FinancialJay R. Gelb & Company Inc.
7Jay R. Gelb & Company Inc.Erb FinancialJay R. Gelb & Company Inc.Erb Financial
8Susan Bracker DDSSanz ElectricSusan Bracker DDSSanz Electric
9Miniature Railwayswww.yourcakery.comMiniature Railwayswww.yourcakery.com
10Rochester Home Equity, Inc.NiCoFormNiCoFormRochester Home Equity, Inc.
11VeramarkNiColoyNiColoyVeramark
12Apartment Finder Renters GuideKalir FarmsKalir FarmsApartment Finder Renters Guide
13Apartment Finder Renters GuideKalir FarmsTieTie
14VeramarkNiColoyTieTie
15Rochester Home Equity, Inc.NiCoFormTieTie
16Miniature Railwayswww.yourcakery.comTieTie
17Susan Bracker DDSSanz ElectricTieTie
18Erb FinancialJay R. Gelb & Company Inc.Erb FinancialJay R. Gelb & Company Inc.
19Jay R. Gelb & Company Inc.Erb FinancialJay R. Gelb & Company Inc.Erb Financial
20Susan Bracker DDSSanz ElectricSusan Bracker DDSSanz Electric
21Miniature Railwayswww.yourcakery.comMiniature Railwayswww.yourcakery.com
22Rochester Home Equity, Inc.NiCoFormNiCoFormRochester Home Equity, Inc.
23VeramarkNiColoyNiColoyVeramark
24Apartment Finder Renters GuideKalir FarmsKalir FarmsApartment Finder Renters Guide

<tbody>
</tbody>
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try:
=COUNTIFS($B$48:$B$71,B34,$D$48:$D$71,"Tie")+COUNTIFS($C$48:$C$71,B34,$D$48:$D$71,"Tie")
 
Upvote 0

Forum statistics

Threads
1,203,326
Messages
6,054,745
Members
444,748
Latest member
knowak87

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top