Return 2 most recent from range.

RLJ

Active Member
Joined
Mar 15, 2011
Messages
417
Office Version
  1. 365
Platform
  1. Windows
I need a formula that will take the most recent and second most recent dates and return the description for that date. I have a simple example of what I need and in F2 I want the Most recent date description and in F3 I want the second most recent date description.

Book1
ABCDEF
1DateColumn 1Column 1DescriptionReturn
212/12/2023Test 1Test 4
312/22/2023Test 2Test 3
41/5/2024Test 3
51/15/2024Test 4
Sheet1


Thank you for your help.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Maybe this:

Book1
ABCDEF
1DateColumn 1Column 1DescriptionReturn
212/12/2023Test 1Test 4
312/22/2023Test 2Test 3
41/5/2024Test 3
51/15/2024Test 4
Sheet4
Cell Formulas
RangeFormula
F2:F3F2=TAKE(CHOOSEROWS(SORT(A2:D5,1,-1),1,2),,-1)
Dynamic array formulas.
 
Upvote 0
Maybe this:

Book1
ABCDEF
1DateColumn 1Column 1DescriptionReturn
212/12/2023Test 1Test 4
312/22/2023Test 2Test 3
41/5/2024Test 3
51/15/2024Test 4
Sheet4
Cell Formulas
RangeFormula
F2:F3F2=TAKE(CHOOSEROWS(SORT(A2:D5,1,-1),1,2),,-1)
Dynamic array formulas.
I don't think this will work since on my dashboard sheet where these descriptions will be displayed are in merged cells and I get the #SPILL! when merging the cells. I think I need 2 separate formulas to make this work for my needs.
 
Upvote 0
I don't think this will work since on my dashboard sheet where these descriptions will be displayed are in merged cells and I get the #SPILL! when merging the cells. I think I need 2 separate formulas to make this work for my needs.
Which cells are merged? I suppose that doesn't really matter.. here are the formulas split up:

Book1
F
1Return
2Test 4
3Test 3
Sheet4
Cell Formulas
RangeFormula
F2F2=TAKE(CHOOSEROWS(SORT(A2:D5,1,-1),1),,-1)
F3F3=TAKE(CHOOSEROWS(SORT(A2:D5,1,-1),2),,-1)
 
Upvote 0
Solution
Which cells are merged? I suppose that doesn't really matter.. here are the formulas split up:

Book1
F
1Return
2Test 4
3Test 3
Sheet4
Cell Formulas
RangeFormula
F2F2=TAKE(CHOOSEROWS(SORT(A2:D5,1,-1),1),,-1)
F3F3=TAKE(CHOOSEROWS(SORT(A2:D5,1,-1),2),,-1)
Spectacular. Thank you. I can't express my gratitude everyone that helps me out enough. I appreciate it so much.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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