I need help getting to show the result of a dropdown. If you look at C22, there's a dropdown for a specific date. I'm currently working on row 24 and have applied the formulas I think should work. I got it to show the coins from May 25, but cannot get the Duration, Days, MTD Coins and MTD Hours for May 25 to show.
Here's what should happen. Selecting the date in C22 should display "Laugene's" coins, Duration, Days, MTD Coins and MTD Hours.
Issues encountered (Row 24):
- Duration, Days, MTD Coins and MTD Hours are not showing.
- Total Duration and Days are not summing up on Col BN and BM
Any thoughts or suggestions?
Best Answer
The
query()
function has a limitation that prevents the summing of date, time and duration values. The workaround is to usevalue()
to convert such datetime values to pure numbers before aggregation. The result will be a dateserial number. You can format the result cell as a datetime to show the values in a readable format.To get the names, coins and durations for the date selected in
B22:D22
, clear the rangeA23:C25
and put this formula in cellA23
:To get days, MTD coins and MTD hours, put these formulas in
D24:F24
and fill them down:See query() and filter().
See this answer for an explanation of how date and time values work in spreadsheets.