lookup for bottom 3 entries

DDT123

New Member
Joined
Aug 9, 2011
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Greetings All, I'm needing a little help please. I have a spreadsheet which is needing to be a 'rolling 30 day' report of agents. On the raw data tab, column A lists dates, and column B lists agent's names. Column A will have 40+ days of values but I'm needing only the most recent 30 days of values. For example, if cell F1="Jane Doe", find the bottom most date for Jane Doe in column B, and output the date listed next to her in column A. Then the next row would list the 2nd bottom date for Jane Doe, and so on.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Found it! This formula helped =IFERROR(LARGE(IF(B:B=$C$3,A:A),1),"-")
 
Upvote 0
Book6
ABCDEFGHI
1DateNameJane Doe7/7/20217/12/20217/19/2021
26/15/2021
36/16/2021
46/17/2021
56/18/2021
66/19/2021
76/20/2021Jane Doe
86/21/2021
96/22/2021
106/23/2021
116/24/2021
126/25/2021
136/26/2021Jane Doe
146/27/2021
156/28/2021
166/29/2021
176/30/2021
187/1/2021Jane Doe
197/2/2021
207/3/2021
217/4/2021
227/5/2021
237/6/2021
247/7/2021Jane Doe
257/8/2021
267/9/2021
277/10/2021
287/11/2021
297/12/2021Jane Doe
307/13/2021
317/14/2021
327/15/2021
337/16/2021
347/17/2021
357/18/2021
367/19/2021Jane Doe
377/20/2021
387/21/2021
397/22/2021
407/23/2021
417/24/2021Jane Doe
427/25/2021
437/26/2021
447/27/2021
457/28/2021
467/29/2021
477/30/2021
487/31/2021
498/1/2021
508/2/2021
518/3/2021Jane Doe
528/4/2021
538/5/2021
548/6/2021
558/7/2021
568/8/2021
578/9/2021
588/10/2021
598/11/2021
608/12/2021
618/13/2021
628/14/2021
638/15/2021
648/16/2021
658/17/2021
668/18/2021
678/19/2021
688/20/2021
698/21/2021
708/22/2021
718/23/2021
728/24/2021
738/25/2021
748/26/2021
758/27/2021
768/28/2021
778/29/2021
788/30/2021
798/31/2021
809/1/2021Jane Doe
819/2/2021
Sheet2
Cell Formulas
RangeFormula
G1G1=SMALL(IF(($B$2:$B$81=$F$1) * ($A$2:$A$81>=TODAY()-30), $A$2:$A$81), 1)
H1H1=SMALL(IF(($B$2:$B$81=$F$1) * ($A$2:$A$81>=TODAY()-30), $A$2:$A$81), 2)
I1I1=SMALL(IF(($B$2:$B$81=$F$1) * ($A$2:$A$81>=TODAY()-30), $A$2:$A$81), 3)
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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