Hi there
I have the below formula that I use to create a dynamic list of my top 20 accounts by revenue in descending order. The only problem is that the assumption is that the client is only listed once in column E. Does anyone have a solution if the clients are listed multiple times in column E and I want the formula to create the list based on the sum of the values (in column G) for each client? ( basically I want to obtain the same results but realize the client could exist more than once and need to look at sum to sort vs a single value)
{=IF(ISERROR(INDEX('CL Detail'!$E$2:$E$502,MATCH(1,INDEX(('CL Detail'!$G$2:$G$502=LARGE(IF('CL Detail'!$G$2:$G$502=0,-100000000,'CL Detail'!$G$2:$G$502),ROWS(B$8:B9)))*(COUNTIF(B$8:B9,'CL Detail'!$E$2:$E$502)=0),),0))),"",INDEX('CL Detail'!$E$2:$E$502,MATCH(1,INDEX(('CL Detail'!$G$2:$G$502=LARGE(IF('CL Detail'!$G$2:$G$502=0,-100000000,'CL Detail'!$G$2:$G$502),ROWS(B$8:B9)))*(COUNTIF(B$8:B9,'CL Detail'!$E$2:$E$502)=0),),0)))}
I am really hoping be able to achieve this by keeping a formula.
thanks
I have the below formula that I use to create a dynamic list of my top 20 accounts by revenue in descending order. The only problem is that the assumption is that the client is only listed once in column E. Does anyone have a solution if the clients are listed multiple times in column E and I want the formula to create the list based on the sum of the values (in column G) for each client? ( basically I want to obtain the same results but realize the client could exist more than once and need to look at sum to sort vs a single value)
{=IF(ISERROR(INDEX('CL Detail'!$E$2:$E$502,MATCH(1,INDEX(('CL Detail'!$G$2:$G$502=LARGE(IF('CL Detail'!$G$2:$G$502=0,-100000000,'CL Detail'!$G$2:$G$502),ROWS(B$8:B9)))*(COUNTIF(B$8:B9,'CL Detail'!$E$2:$E$502)=0),),0))),"",INDEX('CL Detail'!$E$2:$E$502,MATCH(1,INDEX(('CL Detail'!$G$2:$G$502=LARGE(IF('CL Detail'!$G$2:$G$502=0,-100000000,'CL Detail'!$G$2:$G$502),ROWS(B$8:B9)))*(COUNTIF(B$8:B9,'CL Detail'!$E$2:$E$502)=0),),0)))}
I am really hoping be able to achieve this by keeping a formula.
thanks