Sumproduct formula for Ranking is returning #REF! Next to a SumProduct that is working perfectly.

RockandGrohl

Well-known Member
Joined
Aug 1, 2018
Messages
801
Office Version
  1. 365
Platform
  1. Windows
Hi all,

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]R[/TD]
[TD]S[/TD]
[TD]T[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Paper[/TD]
[TD]Rank[/TD]
[TD]Div Rank 1[/TD]
[TD]Div Rank 2[/TD]
[TD]Score[/TD]
[TD]Diversity Score 1[/TD]
[TD]Diversity Score 2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Andover[/TD]
[TD]1[/TD]
[TD]#REF ![/TD]
[TD]#REF ![/TD]
[TD]80[/TD]
[TD]80[/TD]
[TD]#REF ![/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Andover[/TD]
[TD]2[/TD]
[TD]#REF ![/TD]
[TD]#REF ![/TD]
[TD]64[/TD]
[TD]54[/TD]
[TD]#REF ![/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Andover[/TD]
[TD]3[/TD]
[TD]#REF ![/TD]
[TD]#REF ![/TD]
[TD]62[/TD]
[TD]62[/TD]
[TD]#REF ![/TD]
[/TR]
</tbody>[/TABLE]


In Column C, the formula is:

=SUMPRODUCT((A4=$A:$A)*(R4<$R:$R))+1

(Previously I had this as $A$4:$A$5128 which also worked)

So this formula goes all the way down and correctly ranks column R which is the score (gotten from a Sum) Column R contains a live formula and this ranks correctly


In column D, the formula is:

=SUMPRODUCT((A4=$A:$A)*(S4<$S:$S))+1

Even if I give the cells an absolute range to look at, I keep getting a #REF ! result.



Column S has a small formula that looks at the rank and determines something, don't worry about that, however, it seems the SUMPRODUCT formula in Column D is having a hard time displaying a ranking result from the scores in Column S.


The weird part is if I copy column S's score into a whole new sheet and put the formula in for another column, it calculates perfectly and gives a correct rank.

Any ideas why I'm getting the #REF ! error? Thank you.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Id imagine theres a reference error cell in either column A, column S or both.
 
Upvote 0
I suspect that somewhere in column S you have a #REF ! error.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top