|
Brought to you by:
Welcome to the Google Sheets Tips newsletter #365, your Monday morning espresso, in spreadsheet form! Fall is beautiful on the Eastern seaboard of the US right now. The colors near me are peaking in an explosion of reds, oranges, purples, and yellows: ➜ NewsI. II. ➜ Sheets Tip #365: Weeks in Pivot TablesIf you work with pivot tables a lot, you definitely want to be using the date grouping option. We featured this in tip 319 last year. It lets you group dates by days, months, quarters, or years. Weirdly though, the feature does not have a week grouping option. I think it's possibly to do with the fact that some start their weeks on Sunday whilst some others start theirs on Monday. So how can we fix this in a pivot table? Since we can't do it directly in the pivot table, we need to add a column to our original data that calculates the week number of a given date. If you start your weeks on a Sunday, use this WEEKNUM formula: =WEEKNUM(A1) For a Monday start, use this one: =WEEKNUM(A1,2) The extra argument "2" tells the formula to consider Monday as the first day of the week. Our data looks like this with the additional column of week numbers (counting from the start of the year): Back in our pivot table, we can use this new Weeknum column as our Rows setting: The week numbers are counting up from the 1st week of the year. If you want a different week number (e.g. we want to show 1, 2, 3, 4 etc. instead of 36, 37, 38 etc.) subtract a fixed number from your WEEKNUM formula, e.g. =WEEKNUM(A1,2) - 35 Have a great week! Cheers, |
Get better at working with Google Sheets! Join 50,000 readers to get an actionable tip in your inbox every Monday.
Brought to you by: Hi Reader, Welcome (back) to the Google Sheets Tips newsletter, issue #392, your Monday morning espresso, in spreadsheet form! Greetings from the East Coast of the US, where we've been under an Extreme Heat Warning for the past few days, with temperatures at a sweltering 100°F (feels like 114°F with humidity 🥵.) This follows on from the heat wave in the UK a week ago (where I was visiting family) and another in Germany the week before that (where my wife and I traveled for...
Hi Reader, Welcome to the Google Sheets Tips newsletter #391, your Monday morning espresso, in spreadsheet form! (Sorry there was no newsletter last week. I was sick!) This week we're looking at a cool use case for Google Sheets that most folks have no idea about. Creating QR codes! With a few simple formulas you can create QR codes in your Sheets that you could use to track inventory, accept invitations, or even print out to use at an event. First, a housekeeping announcement: after today,...
Hi Reader, Welcome to the Google Sheets Tips newsletter #390, your Monday Tuesday* morning espresso, in spreadsheet form! * public holiday in the US yesterday. Speaking of coffee, I usually work from my local coffee shop twice a week. It makes for a nice change of scenery from home. And everytime I order the same thing: a regular cappuccino, no frills, no syrups, no fancy milks. I think it says a lot about my personality and stage in life. As a working parent, neck deep in the world of AI,...