Getting the Earliest Date on a Selection with Today() as Reference

bye

New Member
Joined
Oct 30, 2011
Messages
4
Hi Excel Gurus,

May I ask for your help, please?
I am currently using MS Excel 2007 and aiming to add a formula in a spreadsheet (I am not an VBA expert, I'd prefer to use formula instead of VBA coding but if there's no choice, I'd like to know it also).

I need to get the earliest date record based on a specific column (for example column B with different date records) and also based on today's date (because the value needs to be updated monthly).
For example, in the list there are dates ranging the whole year round (which contains records from January to December). When you try to run the formula today, 31 Oct. 2011, it will display the earliest date of October 2011 based on the list. But if ever I'll be running the formula tomorrow, 1 November 2011, the result will be different; it will be the earliest date record of November 2011.

Is it possible to use the Min() function as a reference to the Today() function from a selection?

Thanks for your time,
- bye
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi Excel Gurus,

May I ask for your help, please?
I am currently using MS Excel 2007 and aiming to add a formula in a spreadsheet (I am not an VBA expert, I'd prefer to use formula instead of VBA coding but if there's no choice, I'd like to know it also).

I need to get the earliest date record based on a specific column (for example column B with different date records) and also based on today's date (because the value needs to be updated monthly).
For example, in the list there are dates ranging the whole year round (which contains records from January to December). When you try to run the formula today, 31 Oct. 2011, it will display the earliest date of October 2011 based on the list. But if ever I'll be running the formula tomorrow, 1 November 2011, the result will be different; it will be the earliest date record of November 2011.

Is it possible to use the Min() function as a reference to the Today() function from a selection?

Thanks for your time,
- bye
If you want the earliest date from the B-range falling in the month/year of today's date...

Control+shif+enter, not just enter:

=MIN(IF(B3:B15-DAY(B3:B15)+1=TODAY()-DAY(TODAY())+1,B3:B15))

Adjust the range to suit.
 
Upvote 0
" earliest date record based on a specific column (for example column B with different date records) and also based on today's date (because the value needs to be updated monthly)"

Perhaps you mean that the earliest of the month specified by today's month



see the sheet with data in column A, today's date in C1 and the formula in F1.

the formula is
=MIN(IF(MONTH(A1:A37)=MONTH(C1),A1:A37))
invoke this formula with control shift enter
you will get the date as number format it as date

Excel Workbook
ABCDEF
11/1/201110/31/20118-Oct-11
21/11/2011
31/21/2011
41/31/2011
52/10/2011
62/20/2011
73/2/2011
83/12/2011
93/22/2011
104/1/2011
114/11/2011
124/21/2011
135/1/2011
145/11/2011
155/21/2011
165/31/2011
176/10/2011
186/20/2011
196/30/2011
207/10/2011
217/20/2011
227/30/2011
238/9/2011
248/19/2011
258/29/2011
269/8/2011
279/18/2011
289/28/2011
2910/8/2011
3010/18/2011
3110/28/2011
3211/7/2011
3311/17/2011
3411/27/2011
3512/7/2011
3612/17/2011
3712/27/2011
Sheet1
 
Upvote 0
Re: Getting the Earliest Date on a Selection with Today() as Reference - SOLVED

Good morning, Aladin and Venkat,

I really appreciate both of your help.
Venkat, your suggestion works like magic! I've used used your advice.

Thanks so much for both of you,
- bye
 
Upvote 0
Re: Getting the Earliest Date on a Selection with Today() as Reference - ADDITIONAL

Hi again, Aladin and Venkat,

Kindly excuse me for not mentioning this on my first post.

What if the date range selection contains different years?

Cheers,
- bye
 
Upvote 0
Re: Getting the Earliest Date on a Selection with Today() as Reference - ADDITIONAL

Hi again, Aladin and Venkat,

Kindly excuse me for not mentioning this on my first post.

What if the date range selection contains different years?

Cheers,
- bye

See my post...
 
Upvote 0
Re: Getting the Earliest Date on a Selection with Today() as Reference - SOLVED 2

Hi Aladin,

My apologies for that.
You're solution is correct.

Thanks and also for replying promptly,
- bye
 
Upvote 0
Re: Getting the Earliest Date on a Selection with Today() as Reference - SOLVED 2

Hi Aladin,

My apologies for that.
You're solution is correct.

Thanks and also for replying promptly,
- bye

You are welcome. Thanks for providing us feedback.
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

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