Hi Guys,
I need to create a formula that uses several columns BUT only adds the highest value columns (number of columns will be dynamic).
e.g.
B1=7
C1=2
D1=3
X1=4
Y1=5
Z1=6
Normally: A1= B1+C1+D1+X1+Y1+Z1
I need: A1= max values (n) added together
n=number of columns (or number of values) to add together so it is dynamic.
if n=2:
A1=B1+Z1
if n=3:
A1=B1+Z1+Y1
if n=4:
A1=B1+Z1+Y1+X1
So i need a dynamic formula which can find the max values within a range of columns depending on the n value, which specifies how many of the max columns are added together.
I know it sounds weird & complicated but i'm hoping there is a formula of some sorts that i can insert into the cells which calculates this value for me.
If your wondering what the use of this is, it is for calculating the BEST OF marks for exam questions (6 questions, answer 5 and you will be awarded highest 3 marks). There are several exams with variances on this scenario & i need a formula that can cover this.
Any ides?
Regards,
Shuja
Bookmarks