RANKX including items excluded in the filter

masplin

Active Member
Joined
May 10, 2010
Messages
413
I'm clearly not understanding RANKX fully so maybe someone can tell me what I'm doing wrong. i have a table with following columns

Match Ref Inv Last Mod Date Advert
2 21/4/13 0
2 25/4/13 2
3 26/5/13 5

I want to rank for each Match Ref by Inv Last Mod Date providing the Advert is not blank or 0. I tried

Code:
RANKX(FILTER(MatchInput,[Advert]<>blank() &&  [Advert]<>0 && [Match Ref]=EARLIER([Match Ref])),[Inv Last  Mod Date],,1)
However this has assigned a rank of 1 to both the first 2 transactions instead of leaving the first one blank. I thought I was filtering the data so I would have Match Ref = 29 and only the 2nd row. I don't understand how a rank of 1 has been assigned to the first row?

Thanks for any advice

Mike
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,214,854
Messages
6,121,941
Members
449,056
Latest member
denissimo

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