I Have a table ( excel ) with two columns ( Time 'hh:mm:ss' , Value ) and i want to get most frequent value for each group of row.
for example i have
Time | Value
4:35:49 | 122
4:35:49 | 122
4:35:50 | 121
4:35:50 | 121
4:35:50 | 111
4:35:51 | 122
4:35:51 | 111
4:35:51 | 111
4:35:51 | 132
4:35:51 | 132
And i want to get most frequent value of each Time
Time | Value
4:35:49 | 122
4:35:50 | 121
4:35:51 | 132
Thanks in advance
UPDATE The first answer of @scott with helper column is the correct one
Would that work? I haven't tried and got inspired here
Here is one way to do this in MS Access:
MS Access doesn't support features such as window functions or CTEs that make this type of query easier in other databases.
You could use a helper column:
First it will need a helper column so in C I put
Then in F2 I put the following Array Formula:
It is an array formula and must be confirmed with Ctrl-Shift-Enter. Then copied down.
I set it up like this: