Display date from a range within last 6 months

jwatson15

New Member
Joined
Mar 25, 2015
Messages
36
Hi all,

Been trying various different formulas but I'm unable to work a formula for what I need.

What I would like to do is from a range of given dates, display the oldest date within the last 6 months.
So for example..

C4 - 21/03/2023
C5 - 15/04/2023
C6 - 02/09/2023
C7 - 12/10/2023
C8 - 02/01/2024

So from the above range of dates, in Cell D11, display the oldest date that is within the last 6 months of TODAYs date.
So the answer would be 02/09/2023 and I would like that to populate in D11.

Hopefully that makes sense, appreciate any help on this.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about:

varios 10ene2024.xlsm
C
421/03/2023
515/04/2023
602/09/2023
712/10/2023
802/01/2024
9
10
1102/09/2023
Hoja3
Cell Formulas
RangeFormula
C11C11=SMALL(IF(C4:C8>=TODAY()-180,C4:C8),1)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
DanteAmor,

There are certain dates in which that formula may not work properly.
Minor modification that should work a little better:
Replace:
Excel Formula:
TODAY()-180
with
Excel Formula:
EDATE(TODAY(),-6)

Otherwise, if the current date was 31/12/2024, it wouldn't see the following dates as being within the last 6 months:
01/07/2024
02/07/2024
03/07/2024


(note: dates represented in dd/mm/yyyy format)
 
Upvote 0
Solution
You are welcome.
Glad we were able to help!
 
Upvote 0
@jwatson15
Please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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