Calculate average by date with unusual date column format

my8950

Board Regular
Joined
May 1, 2009
Messages
162
I am trying to make a worksheet that will calculate the averages or a sample taken every 5 minutes constantly. The date column increments in minutes, but comes out with the date attached as well.
A sample is below, this is only a few lines:2019-05-21T00:03:40
2019-05-21T08:28:40
2019-05-21T15:33:40

Is there a way I can specify to only take the date? My goal is to take all the sample per day to create one average.
I am using a formula to calculate the averages - =AVERAGEIF($A1:$A10000,G1,$C1).

The overall output file may contain 14 days or so of data, I'm only after making an average of each days information.
This is just a small part of a larger "idea" I have to my semester project.

Thank you...
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
G'day my8950,

You can use the LEFT function to either extract the date component into a helper column
=LEFT(A1,10) (If your longform date is in A1)

or

directly into a formula (providing the formula recognises this as a date) such as
=MONTH(LEFT(A1,10)) OR
=IF(DAY(LEFT(A1,10))=21, etc etc etc.

cheers

shane
 
Upvote 0
Thanks for that information...I will give it a try when I am back working on the macro, should be interesting!
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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