Hi
I am trying to record the number of times a someone gets a yellow or red card from a results worksheet for my local club. The results worksheet has column headings of the following:
Columns A-G (Match details), Column H (Player 1 name), Column I (Number of Goals scored), Column J (Yellow or Red), Column K (Player 2 name), Column I (Number of Goals scored), Column J (Yellow or Red) and so on for all 14 players.
In a seperate worksheet I am recording the stats with the following column headings:
Column A (Player Name), Column B (Appearances), Column C (Sub Appearances), Column D (Goals), Column E (Yellows), Column F (Reds)
I have got formulas for playter name, appearances, sub appearances and goals but unable to record the yellow or reds.
I am trying to construct a formula that searches for the player name throughout the results worksheet, takes an offset of 2 columns to the right (as that is the cell that will either be blank, Yellow or Red. It then needs to counts whether that cell's value is Yellow and count the occurences for that player. I then need to repeat this for Red.
I'm stumped as this formula has to do a 2 layer count ifs and is counting occurences of text being in a cell rather than counting numbers.
Does anyone have any idea how I can tackle this?
Thanks
I am trying to record the number of times a someone gets a yellow or red card from a results worksheet for my local club. The results worksheet has column headings of the following:
Columns A-G (Match details), Column H (Player 1 name), Column I (Number of Goals scored), Column J (Yellow or Red), Column K (Player 2 name), Column I (Number of Goals scored), Column J (Yellow or Red) and so on for all 14 players.
In a seperate worksheet I am recording the stats with the following column headings:
Column A (Player Name), Column B (Appearances), Column C (Sub Appearances), Column D (Goals), Column E (Yellows), Column F (Reds)
I have got formulas for playter name, appearances, sub appearances and goals but unable to record the yellow or reds.
I am trying to construct a formula that searches for the player name throughout the results worksheet, takes an offset of 2 columns to the right (as that is the cell that will either be blank, Yellow or Red. It then needs to counts whether that cell's value is Yellow and count the occurences for that player. I then need to repeat this for Red.
I'm stumped as this formula has to do a 2 layer count ifs and is counting occurences of text being in a cell rather than counting numbers.
Does anyone have any idea how I can tackle this?
Thanks