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

#### RockandGrohl

##### Well-known Member
Hi all,

 A C D E R S T 1 Paper Rank Div Rank 1 Div Rank 2 Score Diversity Score 1 Diversity Score 2 2 Andover 1 #REF ! #REF ! 80 80 #REF ! 3 Andover 2 #REF ! #REF ! 64 54 #REF ! 4 Andover 3 #REF ! #REF ! 62 62 #REF !

<tbody>
</tbody>

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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

#### steve the fish

##### Well-known Member
Id imagine theres a reference error cell in either column A, column S or both.

#### RoryA

##### MrExcel MVP, Moderator
I suspect that somewhere in column S you have a #REF ! error.

#### RockandGrohl

##### Well-known Member
Id imagine theres a reference error cell in either column A, column S or both.

Yeah, you're right! - can't believe that slipped through the net!

Thank you.

Replies
3
Views
134
Replies
3
Views
196
Replies
1
Views
281
Replies
3
Views
321
Replies
0
Views
486

1,129,467
Messages
5,636,456
Members
416,919
Latest member
twc2c

### 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.

### Which adblocker are you using?

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

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