I have used the =COUNTIF(range,A1) formula and it works great. I then
copied this for B1, C1, D1 etc etc for occurances of different words
for the same range of cells. I then want to try more with the
spreadsheet I have and hit another stumbling block. Basically what I
am trying to do is this:
1. Produce a spreadsheet of football results, players played, goals
scored, red/yellow cards, man of the match.
2. From this spreadsheet set up functions that will show statistics
for that team. It should be made easy so that all I have to do is
input the players who played, who scored etc etc, and then the
functions would tally up the statistics automatically.
So far I have created the spreadsheet like this:
Columns A-D - Game information (date, venue, opposition, result)
Column E - Player 1 name
Column F - Player 1 Goals scored
Colmun G - Player 1 Man of the Match
Column H - Player 1 rating
Column E-H are then repeats of columns E-F but for player 2 and so on.
It is straight forward with the formula =COUNTIF(range,A1) to highligh
appearances because it is the pure occurance of a word. The problem I
get is when I am trying to count goals scored, MOM and player rating
for each specific player:
I need a formula that will find the occurance of a word (the player's
name) and then for that word (player); add up all the MOMs, goals
scored and player ratings for that player. Because the colums are set
out in a consistent way the formula will only need to reference 1, 2
or 3 cells to the right of the word occurance. Someway the formula
needs to tell Excel to follow this pattern:
1. Find a specifc word (this word is referenced in a cell as per the
orginal COUNTIF formula)
2. Look 1 cell to the right of that word and add whatever is in that
cell
3. Keep counting for each occurance of that word.
A modification of that formula would be to look 2 cells to the right
and then 3 cells to the right.
I understand this is a big ask but any help will be very gratefully
received.