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

How to show Day of Week in Order by Day of Week in Google Sheets

$
0
0

I have the following formula that displays a total by Day of Week (weekday) from a date in J and amount in K

ExampleJ contains 1/1/2020 ... until 9/29/2020K contains numeric value 123 ... 1999

=Query(ArrayFormula({{unique(text(J2:J,"DDDD"))}, {sumif(text(J2:J,"DDDD"), unique(text(J2:J,"DDDD")),K2:K)}}),"Select * where Col2<0")

All the values are correct, they just are not in the order of days, ieSunday Monday Tuesday Wednesday ... Saturday

Instead, I have the data showing like this

Friday    1,220.00Monday    1,234.00Tuesday   1,999.00Thursday  1,555.00Saturday  1,666.00Wednesday 1,777.00

What I would want is

Monday    1,234.00Tuesday   1,999.00Wednesday 1,777.00Thursday  1,555.00Friday    1,220.00Saturday  1,666.00

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>