• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Can we combine DateValue and Aggregate function?

Khalil Lakhani

New Member
Hello Everyone!
I have a date column, from which I need to pick the earliest date by using AGGREGATE function. But it doesnt work with the data format. So, I have to convert that date using DATEVALUE and then use aggregate function to get the desired result. Can I use both functions at the same time?

Thanks in advance!!
 

Attachments

  • DateValue & Aggregate.xlsx
    8.8 KB · Views: 10
Hi, Khalil Lakhani!
Dates in column I are text, even the custom format is specified as mm/dd/yyyy (that only applies to numeric/date data).
So you have to either press F2 in each cell and then Enter, hence transforming from text to date, and then use whatever function you want, or you have to use a helper column with Datevalue.
Regards!
 
Try to Change Column I data from Text value to Numeric value by :

Select I2:I15 >> Data >> Text to Columns... >> Next >> Next >> in step 3 of 3, click "Date" and choose "YMD" from the dropdown list >> Finish.

Then, the AGGREGATE formula in K2 will work

Regards
Bosco
 
Back
Top