Hi Guys,
I have tried for ages to get this to work but it just doesn't want to
what i have is the following
A B C D E F G H
1 1 1 1 4 5 6
2 1 1 2 4 5 6
3 1 2 2 4 5 6
4 2 2 2 4 5 6
What i need to do is work out the average of cells E, F and G if cells A,B and C have 1 in them, if it has the number 2 i want this to not add it nor average this so it completely ignores any column with 2 in it and doesn't add that cell to the amount the finial number needs to be divided by,
For line 1 it would do the following 4 + 5 + 6 = 15 / 3 = 5
For line 2 it would do the following 4 + 5 = 9 / 2 = 4.5
For line 3 it would do the following 4 = 4 / 1 = 4
For line 4 it would do the following 0 = 0 / 0 = 0
but here is the problem, i have around 900 lines of this data and cannot go adding it all up as its not all the same numbers, and most have decimal places too, and even worst then that, they are not next to each other, there is about 20 spaces between A, B and C and same for E, F, G i have just simplified it here to explain what i see and how i need to do this.
I cannot move the cells to put them next to each other as this is how the report runs and data gets lost and mixed up, i have tried one simple formula to many 'IF' statements.
What i think i need to do is do 3 if statements?
Bookmarks