Identifying row numbers where the date is the same

Red over White

Board Regular
Joined
Jul 16, 2011
Messages
123
Office Version
  1. 365
Platform
  1. MacOS
I am trying to identify the rows where a particular date is shown. Whilst I can do this when the date is unique in the sequence, the sequence contains dates which appear more than once. I am looking for a formula so that when the date appears more than once, each of the respective row numbers will appear for that date.

I attach my workings to date. The dates in column E are chronlogically the dates in column B. You can that in column F if the date in column E is the same, the same row number appears. What I am trying to achieve is shown in column G.

Any help would be appreciated.

Thanks

Chronological dates.xlsx
BCDEFG
1Random datesSmall 'k'Chron datesRow noWant it to be
2(and so on)
307/10/21108/04/211515
414/05/21208/04/211529
517/09/21309/04/215252
605/04/22426/04/213232
707/07/21504/05/216666
802/02/22606/05/216363
928/01/22707/05/212323
1006/08/21814/05/2122
11914/05/21219
121014/05/21272
1321/09/211125/05/2143
1404/06/211227/05/2141
151301/06/2121
1601/03/221404/06/2112
1708/04/211507/06/2149
1807/10/211610/06/2178
1914/05/211714/06/2147
201818/06/2160
211921/06/2156
2229/10/212002/07/2173
2301/06/212107/07/215
2406/10/212208/07/2124
2507/05/212316/07/2165
2608/07/212423/07/2139
2707/10/212502/08/2183
2813/01/222606/08/218
2908/04/212706/08/218
302813/08/2144
312908/09/2148
3222/01/223008/09/2148
3317/09/213113/09/2142
3426/04/213215/09/2146
3520/09/213317/09/213
363417/09/213
373520/09/2133
3808/10/213620/09/2133
3904/01/223720/09/2133
403821/09/2111
4123/07/213923/09/2162
4220/09/214006/10/2122
4327/05/214107/10/211
4413/09/214207/10/211
4525/05/214307/10/211
4613/08/214408/10/2136
4701/04/224527/10/2168
4815/09/214629/10/2120
4914/06/214701/11/2167
5008/09/214801/11/2167
5107/06/214905/11/2174
525005/11/2174
535119/11/2171
5409/04/215225/11/2153
5525/11/215326/11/2172
565401/12/2180
575520/12/2158
5821/06/215604/01/2237
5920/09/215707/01/2264
6020/12/215813/01/2226
6129/03/225922/01/2230
6218/06/216028/01/227
6310/02/226101/02/2282
6423/09/216202/02/226
6506/05/216304/02/2284
6607/01/226410/02/2261
6716/07/216501/03/2214
6804/05/216622/03/2281
6901/11/216729/03/2259
7027/10/216801/04/2245
71
7214/05/21
7319/11/21
7426/11/21
7502/07/21
7605/11/21
77
78
79
8010/06/21
8108/09/21
8201/12/21
8322/03/22
8401/02/22
8502/08/21
8604/02/22
8706/08/21
8805/11/21
89
9001/11/21
2022
Cell Formulas
RangeFormula
E3:E70E3=IFERROR(SMALL(B$3:B$151,D3),"")
F3:F70F3=MATCH(E3,B$3:B$151,0)
D4:D70D4=D3+1
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I think your highlighted numbers are wrong, but try
+Fluff 1.xlsm
BCDEFG
1Random datesSmall 'k'Chron datesRow noWant it to be
2(and so on)
307/10/2021108/04/20211515
414/05/2021208/04/20212729
517/09/2021309/04/20215252
605/04/2022426/04/20213232
707/07/2021504/05/20216666
802/02/2022606/05/20216363
928/01/2022707/05/20212323
1006/08/2021814/05/202122
11914/05/20211719
121014/05/20217072
1321/09/20211125/05/202143
1404/06/20211227/05/202141
151301/06/202121
1601/03/20221404/06/202112
1708/04/20211507/06/202149
1807/10/20211610/06/202178
1914/05/20211714/06/202147
201818/06/202160
211921/06/202156
2229/10/20212002/07/202173
2301/06/20212107/07/20215
2406/10/20212208/07/202124
2507/05/20212316/07/202165
2608/07/20212423/07/202139
2707/10/20212502/08/202183
2813/01/20222606/08/20218
2908/04/20212706/08/202185
302813/08/202144
312908/09/202148
3222/01/20223008/09/202179
3317/09/20213113/09/202142
3426/04/20213215/09/202146
3520/09/20213317/09/20213
363417/09/202131
373520/09/202133
3808/10/20213620/09/202140
3904/01/20223720/09/202157
403821/09/202111
4123/07/20213923/09/202162
4220/09/20214006/10/202122
4327/05/20214107/10/20211
4413/09/20214207/10/202116
4525/05/20214307/10/202125
4613/08/20214408/10/202136
4701/04/20224527/10/202168
4815/09/20214629/10/202120
4914/06/20214701/11/202167
5008/09/20214801/11/202188
5107/06/20214905/11/202174
525005/11/202186
535119/11/202171
5409/04/20215225/11/202153
5525/11/20215326/11/202172
565401/12/202180
575520/12/202158
5821/06/20215604/01/202237
5920/09/20215707/01/202264
6020/12/20215813/01/202226
6129/03/20225922/01/202230
6218/06/20216028/01/20227
6310/02/20226101/02/202282
6423/09/20216202/02/20226
6506/05/20216304/02/202284
6607/01/20226410/02/202261
6716/07/20216501/03/202214
6804/05/20216622/03/202281
6901/11/20216729/03/202259
7027/10/20216801/04/202245
71
7214/05/2021
7319/11/2021
7426/11/2021
7502/07/2021
7605/11/2021
77
78
79
8010/06/2021
8108/09/2021
8201/12/2021
8322/03/2022
8401/02/2022
8502/08/2021
8604/02/2022
8706/08/2021
8805/11/2021
89
9001/11/2021
Lists
Cell Formulas
RangeFormula
E3:E70E3=IFERROR(SMALL(B$3:B$151,D3),"")
F3:F70F3=AGGREGATE(15,6,(ROW($B$3:$B$100)-ROW($B$3)+1)/($B$3:$B$100=E3),COUNTIFS(E$3:E3,E3))
D4:D70D4=D3+1
 
Upvote 0
Solution
Fluff, thanks again for helping me out.

The formula works for but are out by 2. I have not used aggregate before and would like to learn a bit more about this function to see if I can fix the issue myself. Are you ok if I try tomorrow and come back back and let you know how I got on?

Chronological dates.xlsx
BCDEFG
1Random datesSmall 'k'Chron datesRow noWant it to be
2(and so on)
307/10/21108/04/211515
414/05/21208/04/212729
517/09/21309/04/215252
605/04/22426/04/213232
707/07/21504/05/216666
802/02/22606/05/216363
928/01/22707/05/212323
1006/08/21814/05/2122
11914/05/211719
121014/05/217072
1321/09/211125/05/2143
1404/06/211227/05/2141
151301/06/2121
1601/03/221404/06/2112
1708/04/211507/06/2149
1807/10/211610/06/2178
1914/05/211714/06/2147
201818/06/2160
211921/06/2156
2229/10/212002/07/2173
2301/06/212107/07/215
2406/10/212208/07/2124
2507/05/212316/07/2165
2608/07/212423/07/2139
2707/10/212502/08/2183
2813/01/222606/08/218
2908/04/212706/08/2185
302813/08/2144
312908/09/2148
3222/01/223008/09/2179
3317/09/213113/09/2142
3426/04/213215/09/2146
3520/09/213317/09/213
363417/09/2131
373520/09/2133
3808/10/213620/09/2140
3904/01/223720/09/2157
403821/09/2111
4123/07/213923/09/2162
4220/09/214006/10/2122
4327/05/214107/10/211
4413/09/214207/10/2116
4525/05/214307/10/2125
4613/08/214408/10/2136
4701/04/224527/10/2168
4815/09/214629/10/2120
4914/06/214701/11/2167
5008/09/214801/11/2188
5107/06/214905/11/2174
525005/11/2186
535119/11/2171
5409/04/215225/11/2153
5525/11/215326/11/2172
565401/12/2180
575520/12/2158
5821/06/215604/01/2237
5920/09/215707/01/2264
6020/12/215813/01/2226
6129/03/225922/01/2230
6218/06/216028/01/227
6310/02/226101/02/2282
6423/09/216202/02/226
6506/05/216304/02/2284
6607/01/226410/02/2261
6716/07/216501/03/2214
6804/05/216622/03/2281
6901/11/216729/03/2259
7027/10/216801/04/2245
71
7214/05/21
7319/11/21
7426/11/21
7502/07/21
7605/11/21
77
78
79
8010/06/21
8108/09/21
8201/12/21
8322/03/22
8401/02/22
8502/08/21
8604/02/22
8706/08/21
8805/11/21
89
9001/11/21
2022
Cell Formulas
RangeFormula
E3:E70E3=IFERROR(SMALL(B$3:B$151,D3),"")
F3:F70F3=AGGREGATE(15,6,(ROW($B$3:$B$150)-ROW($B$3)+1)/($B$3:$B$150=E3),COUNTIFS(E$3:E3,E3))
D4:D70D4=D3+1
 
Upvote 0
How do you get both 2 & 19 for 14/5/21?
Surely it should be 2 & 17 or 4 & 19
 
Upvote 0
Fluff

The figures you quote come from the aggregate formula =AGGREGATE(15,6,(ROW($B$3:$B$150)-ROW($B$3)+1)/($B$3:$B$150=E3),COUNTIFS(E$3:E3,E3)). I suspect the constant discrepancy of 2 has something to do with the two lines at the top which don't have any dates in them (column B) and suffixing the formula with +2 which correct the issue. I will still have a look at the AGGREGATE function in more detail to tomorrow.
 
Upvote 0
You are saying that the 8th should return 15 & 29 which makes no sense.
It should either be 17 & 29 the actual row number, or 15 & 27 their position in the list.
 
Upvote 0

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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