Formula miscounting issue

Brown

Board Regular
Joined
Sep 14, 2009
Messages
215
Office Version
  1. 365
Good morning,
I am trying to calculate the wins and losses in this spreadsheet. Thanks to some very helpful people on this forum I was able to get the wins to calculate correctly. I was trying to figure out how to calculate the losses, and it is not working quite right. Can someone assist me with this formula?
As you can see in the screen shot, my formula for I 3 is showing losses but the team has only played one game. Where is my formula coming up short?
Thanks for your time and thoughts.
Have a nice day
Brown
1739812941245.png
 
i dont know what you have in H3 but I3 will always equal 2 in that case. I am assuming in H3 you count winner column. So do that then for losses you can count number of times they appear in B or D then subtract the 2. That way brookwood who played one time and won one time would have 0 losses your equation -(sum(countif(B3:B9,{"teams"})+sum(countif(D3:D9,{"teams"})
 
Upvote 0
If I am understanding this correctly, I think you making it harder than it has to be.

Formula for H3 (and then copy down):
Excel Formula:
=COUNTIF($F$3:$F$9,$G3)

Formula for I3 (and then copy down):
Excel Formula:
=COUNTIF($B$3:$D$9,$G3)-H3
 
Upvote 0
Thank you both. I am sure I was making it harder than it had to be. I just wasnt wrapping my head around it correctly.
Have a great day and thank you so much for the clarification.
Brown
 
Upvote 0
why does it show there is a loss and there is no score? As soon as I build the game schedule each team gets losses.
1739892383037.png

1739892395661.png
 
Upvote 0
You hadn't presented that possibility before.
If you look at what the formula is doing, it is counting how many times that value appears in columns B and D, as that indicates that they are playing a game.
And then it subtracts the number of times that value appears in the Win column.

Why would you have a lone value in column B or D, like you show above?
Why would they appear in there if they are not playing a game?
It doesn't really seem to make sense, they way you have this structured.
 
Upvote 0
You hadn't presented that possibility before.
If you look at what the formula is doing, it is counting how many times that value appears in columns B and D, as that indicates that they are playing a game.
And then it subtracts the number of times that value appears in the Win column.

Why would you have a lone value in column B or D, like you show above?
Why would they appear in there if they are not playing a game?
It doesn't really seem to make sense, they way you have this structured.
That makes sense. So this is the schedule they will play this weekend, and I will have a score keeper simply place the scores in the box at the end of the game. This also helps people know who will be playing at what time on what field.
Is there a simple way to make it show zero losses before we enter a score similar to the zero wins prior to playing?
Thanks
Brown
 
Upvote 0
Is there a simple way to make it show zero losses before we enter a score similar to the zero wins prior to playing?
My formulas should already do that, if you are using them as I have written them.
If you are not seeing a zero, check column I for Custom Formatting or Conditional Formatting that might be hiding those zeroes.
 
Upvote 0

Forum statistics

Threads
1,226,798
Messages
6,193,063
Members
453,773
Latest member
bclever07

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