Small Function

Tikey

Board Regular
Joined
Jan 30, 2014
Messages
148
Office Version
  1. 2021
Platform
  1. Windows
Hi

I have a column with hundreds of dates over several years. I wish to be able to find the earliest date within a particular year, the data is on a different sheet to where I am trying to do this, in this case you will see it is on a sheet called Records.

=smallif(Records!$F:$F,">=1994-1-1",Records!$F:$F,"<1995-1-1")

The above returns a Name error.

Can anyone help ?

Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Just sort the dates first. Or use VBA.

Or give us a sample how it looks.
 
Last edited by a moderator:
Upvote 0
If your version of Excel has the AGGREGATE function....
this regular formula returns the smallest Col_F date, on the Records tab, that is within 1994:
Code:
=AGGREGATE(15,6,Records!$F:$F/(YEAR(Records!$F:$F)=1994),1)

Is that something you can work with?
 
  • Like
Reactions: PCL
Upvote 0
If your version of Excel has the AGGREGATE function....
this regular formula returns the smallest Col_F date, on the Records tab, that is within 1994:
Code:
=AGGREGATE(15,6,Records!$F:$F/(YEAR(Records!$F:$F)=1994),1)

Is that something you can work with?


Ron

That works fine and easily adjusted for the latest date as well.

Thanks very much for your help.

Dave
 
Upvote 0

Forum statistics

Threads
1,216,203
Messages
6,129,490
Members
449,512
Latest member
Wabd

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