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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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