On Worksheet 2 I have 100 columns. In row 1 are names, some of which are repeated. In row 4 is a one letter code, either an "L" or an "R". Rows 5 through 5000 are data in each of the cells in each column. In row 5001 is an average of the data in each column. What I would like to do is sum all of the avarages that correspond to the same name, and same code letter into a cell, say A1 on wortksheet 1.
For example, on worksheet 2, in row 1, column A is the name "John". John also appears in row 1, columns E, F, and G. In the corresponding cells in row 4 are an "R", "L", "R", and "R", respectively. What I would like to do is add all of the averages in row 5001 where the entries in the corresponding cells in rows 1 and 5 are John and "R". In my example, cells A5001, F5001 and G5001 would be sumed at Worksheet 1, cell A1. Any ideas?
Thanks in advance.
For example, on worksheet 2, in row 1, column A is the name "John". John also appears in row 1, columns E, F, and G. In the corresponding cells in row 4 are an "R", "L", "R", and "R", respectively. What I would like to do is add all of the averages in row 5001 where the entries in the corresponding cells in rows 1 and 5 are John and "R". In my example, cells A5001, F5001 and G5001 would be sumed at Worksheet 1, cell A1. Any ideas?
Thanks in advance.