Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9843

Extract the Day of the month (dd) from a date in Query()

$
0
0

I have a list of transactions for a month, all include a date (Column B - dd/mm/yyyy) and a £in figure (Column F). I want to create a table that shows the total taken on each day of the month so for example on the April sheet, calculate the sum of all sales on the 1st, 2nd, 3rd

=SUM(QUERY($A$3:$F, "select F where 'TEXT(B,dd)' = 1",0))

=SUM(QUERY($A$3:$F, "select F where 'TEXT(B,dd)' = 2",0))

=SUM(QUERY($A$3:$F, "select F where 'TEXT(B,dd)' = 3",0))

This completes the query successfully but returns no results, despite there being transactions on these days.

Thanks

It would also be ideal if there was a way to input the formula so it can be filled into each row upto 31, without changing the date on each row

sample sheet with relevant data

https://docs.google.com/spreadsheets/d/1nkwh1F3_3_bFdakkijjjRcKMUHJUOJ22QJKOWjzycnM/edit?usp=sharing


Viewing all articles
Browse latest Browse all 9843

Trending Articles