Reputation:
I am trying to create a formula from a table where there are several agents in which column A has a time stamp, I need to create a formula to get the average date of column A of each agent, get the oldest date of the column and the most recent date, and from those 3 information generate a score from 1 to 10, 10 being the average being close the the oldest date, and low score means that the average is close to the newest date.
I have a sheet 1 with all the information, and in sheet 2 is where i have a column with the agents name and another value would be the average score.
Any help will be very much appreciated.
Upvotes: 0
Views: 151
Reputation: 1
use:
=ARRAYFORMULA(QUERY({VALUE(Sheet1!A1:A), Sheet1!B1:B},
"select Col2,avg(Col1)
where Col2 is not null
group by Col2
label avg(Col1)'Average'
format avg(Col1) 'mm/dd/yyyy'", 1))
Upvotes: 1