Hello everyone....
I need to find the highest decimal (column G) among those with the same customer code (if there're more than 1 that have the same customer code in column A. If there's only one like MC05, then no need to return anything) then return it as complete code (column B).
I found a similar problem in another forum and tried using index function but it didn't work out for me.
Does anyone have any suggestion how to fix it?
Thank you in advance.
I need to find the highest decimal (column G) among those with the same customer code (if there're more than 1 that have the same customer code in column A. If there's only one like MC05, then no need to return anything) then return it as complete code (column B).
I found a similar problem in another forum and tried using index function but it didn't work out for me.
Does anyone have any suggestion how to fix it?
Thank you in advance.
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D24 | D2 | =ROUNDDOWN(C2*10%,0) |
E2:E24 | E2 | =D2+C2 |
F2:F24 | F2 | =C2*10% |
G2:G24 | G2 | =F2-TRUNC(D2) |
H2:H24 | H2 | =INDEX($A$2:$A$24,MATCH(MAXIFS(G:G,A:A,A2),$G$2:$G$24,0)) |
A2:A10 | A2 | =LEFT(B2,4) |
A11:A24 | A11 | =LEFT(B11,3) |