Forum Discussion
EXcel SUMPRODUCT
Hi,
You do that by replacing this part:
ROW($1:$5)
With this:
ROW($1:$9)
You can also simplify the formula this way:
=SUMPRODUCT(LARGE(E2:Z2,ROW(A1:A9)))
This formula will create an array of the largest nine numbers, then add them.
With regards to the conditional formatting, you have to use this formula in a new conditional formatting rule:
=MATCH(E2,LARGE($E$2:$Z$2,ROW($A$1:$A$9)),0)
I hope you find this solution helpful
Regards
- VicphuketNov 25, 2018Copper Contributor
Hi, thank you for your help, replacing the 5 with 9 works fine. But with the conditional formatting it highlights all of the duplicate numbers, so it appears as if more numbers have been selected.
It needs an additional condition that only allows highlighting of 9 cells
Regards
Vic
- Haytham AmairahNov 25, 2018Silver Contributor
Hi,
The rule highlights only the 9 largest number in the row as the screenshot below:
And this is including the duplicates.
- VicphuketNov 27, 2018Copper Contributor
The SUMPRODUCT works fine but when I input the conditional formatting rule I get the result below