Jazz Jones
New Member
- Joined
- Mar 13, 2017
- Messages
- 13
- Office Version
- 365
- Platform
- Windows
Within a sports league, we have a list of player names in columns D and J. I used a countif function to total up the number of matches each player has appeared in, based on how many times their name shows up in these columns and that's fine
However, I've realised that the 'Player of the Match' is also named in these columns (The "POM" name cells are in B and H) and that's throwing my count of as it means their name is used again.
Is there a way that I can run a COUNTIF that excludes anything if the cell two columns before contains 'POM'? Or excludes a name if it is in bold? Example screenshot below for reference (col K just an indicator of the formula in there, but it is working ok). So in the example, Player 5 would be showing as having played two games (correctly), but Players 2 and 6 will also count twice, even though they've only played once each.
Excel Formula:
=COUNTIF(Data!D:J,[@[Player Name]])
Is there a way that I can run a COUNTIF that excludes anything if the cell two columns before contains 'POM'? Or excludes a name if it is in bold? Example screenshot below for reference (col K just an indicator of the formula in there, but it is working ok). So in the example, Player 5 would be showing as having played two games (correctly), but Players 2 and 6 will also count twice, even though they've only played once each.