Show next date in RANK if same value found

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,602
Office Version
  1. 365
Platform
  1. Windows
Hi all

In cells P27:P31 I have the formula

Excel Formula:
=XLOOKUP(P21,$R$3:$R$33,$Q$3:$Q$33)

This will return the data for the RANK value held through cells P21:P25

NDA.v8.xlsm
PQRS
301-Aug-20018
402-Aug-20018
503-Aug-201657
604-Aug-207013
705-Aug-207013
806-Aug-207013
907-Aug-204706
1008-Aug-201408
1109-Aug-20018
1210-Aug-20018
1311-Aug-20018
1412-Aug-204754
1513-Aug-204754
1614-Aug-2021752
1715-Aug-20018
1816-Aug-20018
1917-Aug-20018
20Rank18-Aug-20018
21£26,27519-Aug-207013
22£2,17520-Aug-201408
23£1,12521-Aug-207013
24£47522-Aug-20018
25£47523-Aug-20018
2624-Aug-201408
27Thu 2725-Aug-201408
28Fri 1426-Aug-2011253
29Wed 2627-Aug-20262751
30Wed 1228-Aug-201408
31Wed 1229-Aug-20018
3230-Aug-20018
3331-Aug-20018
Workings
Cell Formulas
RangeFormula
P21:P25P21=INDEX(SORT($R$3:$T$33,2),SEQUENCE(5)*1)
P27:P31P27=XLOOKUP(P21,$R$3:$R$33,$Q$3:$Q$33)
S3:S33S3=IF(ISNA(R3),"",COUNTIF($R$3:$R$33,">"&R3)+1)
Dynamic array formulas.


As you can see there is a day where the RANK day is more than one day (WED12)

Is there a way to change the formula through P27:P31 so that if a duplicate value is found, it will show the both?

So results through cells P27:P31 should read ..(without values)

Thu 27 (£26,275)
Fri 14 (£2,175)
Wed 26 (£1,125)
Wed 12 ( £475)
Thr 13 (£475)

Thanks in advance for any help
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,215,503
Messages
6,125,179
Members
449,212
Latest member
kenmaldonado

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