Day of the week and week number in Google Sheets: WEEKDAY, WEEKNUM and ISOWEEKNUM
WEEKDAY returns the day of the week of a date as a number, TEXT returns it as a name, and WEEKNUM and ISOWEEKNUM return the week of the year. This guide works every formula on one question a CEO asks, which week did revenue dip, with the type argument of each function, combinations with IF, COUNTIF, INDEX and VLOOKUP, and the errors you can meet.
To get the day of the week from a date in Google Sheets, use =WEEKDAY(A1). It returns a number from 1 (Sunday) to 7 (Saturday). For the name of the day instead of a number, use =TEXT(A1, “dddd”), which returns “Monday”, “Tuesday” and so on. For the week of the year, use =WEEKNUM(A1), or =ISOWEEKNUM(A1) for ISO weeks.
| You want | Formula | Result for a Wednesday |
|---|---|---|
| Day of the week as a number, week starting Sunday | =WEEKDAY(A1) |
4 |
| Day of the week as a number, week starting Monday | =WEEKDAY(A1, 2) |
3 |
| Name of the day | =TEXT(A1, "dddd") |
Wednesday |
| Short name of the day | =TEXT(A1, "ddd") |
Wed |
| Week of the year | =WEEKNUM(A1) |
1 to 54 |
| ISO week of the year | =ISOWEEKNUM(A1) |
1 to 53 |
This guide works every formula on one question, the one a CEO asks when the month looks soft: which week did revenue dip? The answer is one column of weekly revenue, and one formula fills it. Getting there shows why the first weekly table you build is often not the answer: on the orders below, the same question names three different weeks, depending on how the weeks are counted and which orders are let in.
Reading to get this done?
The question and the sheet
Most stores can export their orders to a sheet. The export used here has twenty orders, one per row, from row 2 to row 21:
| Column | Holds |
|---|---|
| A | Order date |
| B | Order ID |
| C | Revenue |
| D | Status: Paid or Refunded |
| E | Day of the week, =TEXT(A2, "ddd") |
| F | ISO week, =ISOWEEKNUM(A2) |
| G | Week of: the Monday the order’s week starts on, =A2 - WEEKDAY(A2, 2) + 1 |
The period is six weeks, from Monday, December 1, 2025 to Sunday, January 11, 2026, so it crosses New Year. The export was pulled from the Sunday before, so it starts with one November order. One order, on December 18, was refunded.

The finished answer sits in the block on the right:
| Week of (Monday) | ISO week | Revenue kept, refunds excluded | vs prior week |
|---|---|---|---|
| Dec 1, 2025 | 49 | $2,140 | |
| Dec 8 | 50 | $2,310 | +8% |
| Dec 15 | 51 | $1,260 | −45% |
| Dec 22 | 52 | $2,480 | +97% |
| Dec 29 | 1 | $2,050 | −17% |
| Jan 5, 2026 | 2 | $2,570 | +25% |
| Six weeks | $12,810 |
Revenue dipped in the week of December 15: $1,260, 41% below the six-week average of $2,135. Every number in the block is one formula, a SUMIFS over the “Week of” column:
=SUMIFS($C$2:$C$21, $G$2:$G$21, I4, $D$2:$D$21, "<>Refunded")
The rest of this guide builds that block from the simplest formula up: what day an order fell on, which week it belongs to, and why the week it belongs to depends on who is counting.
WEEKDAY, WEEKNUM and ISOWEEKNUM: syntax and examples
WEEKDAY, WEEKNUM and ISOWEEKNUM: syntax and examples
The three functions answer three smaller questions. WEEKDAY answers “what day of the week was this order?”, WEEKNUM answers “which week of the year?”, and ISOWEEKNUM answers the same with the international rule for where a week and a year begin.
WEEKDAY
WEEKDAY returns a number representing the day of the week of a date. By default 1 is Sunday, 2 is Monday and so on up to 7 for Saturday.
Syntax of WEEKDAY
The syntax of the WEEKDAY function in Google Sheets is:
=WEEKDAY(date, [type])
Let’s break it down:
- date: The date for which you want to find the day of the week. This can be a date entered directly, a cell reference, or a formula that returns a date.
- type (optional): Specifies the numbering system for days of the week.
Google Sheets accepts three types:
- 1 (default): Numbers the days from Sunday = 1 to Saturday = 7.
- 2: Numbers the days from Monday = 1 to Sunday = 7.
- 3: Numbers the days from Monday = 0 to Sunday = 6.
Example of WEEKDAY
To find the day of the week of the order in row 9, placed on December 16, 2025:
=WEEKDAY(A9, 1)
The result is 3: with type 1, the count starts from Sunday = 1, so 3 is Tuesday. The number is what you need for calculations and conditions. To convert the date to the day of the week as a word, a label a person will read, =TEXT(A9, "dddd") returns the name of the day directly: “Tuesday”. The same two formulas tell you the weekday of any date, a birthday or a contract start as much as an order.
WEEKNUM
WEEKNUM returns the week of the year a date falls in, as a number from 1 to 53 (54 in a rare leap year such as 2028). Week 1 is the week that contains January 1.
Syntax of WEEKNUM
The syntax of the WEEKNUM function is as follows:
=WEEKNUM(date, [type])
Let’s explain:
- date: The date for which you want to find the week number.
- type (optional): Specifies the day on which the week starts.
The type values:
- 1 (default): the week starts on Sunday.
- 2: the week starts on Monday.
- 11 to 17: the week starts on Monday (11), Tuesday (12), Wednesday (13), Thursday (14), Friday (15), Saturday (16) or Sunday (17).
- 21: ISO 8601 numbering: the week starts on Monday, and week 1 is the week that contains the first Thursday of the year. This is the same result as ISOWEEKNUM.
With every type except 21, January 1 is always in week 1, so the first week of a year can be shorter than seven days, and so can the last one.
Example of WEEKNUM
To find the week of the year of the same December 16 order:
=WEEKNUM(A9, 1)
The result is 51. With type 1, weeks begin on Sunday, so the Sunday orders in this export start a new week, while a Monday-based report counts them as the end of the old one. On December 14 that difference already moves $710 from one week to the next.
ISOWEEKNUM
ISOWEEKNUM returns the ISO 8601 week number of a date. In this system every week starts on Monday and has seven days, and week 1 is the week that contains the first Thursday of the year. As a consequence, January 1 can belong to the last week of the previous year, and December 31 to week 1 of the next.
ISO weeks are the standard in most of Europe and in international reporting. =WEEKNUM(date, 21) returns the same number; pick one of the two and use it throughout a sheet.
Syntax of ISOWEEKNUM
=ISOWEEKNUM(date)
- date: The date to evaluate: a cell with a date, or a formula that returns one.
Example of ISOWEEKNUM
To find the ISO week of the order in row 15, placed on Tuesday, December 30, 2025:
=ISOWEEKNUM(A15)
The function returns 1: the date falls in the first ISO week of 2026, because that week, December 29 to January 4, contains the first Thursday of 2026. =WEEKNUM(A15) returns 53 for the same order. Both are correct, and a weekly report that mixes them puts the same order in two different weeks.
Your sheet's week numbers don't match the other report's around New Year, because WEEKNUM and ISOWEEKNUM count weeks differently.
Paste this into your AI assistant. It writes the WEEKDAY, WEEKNUM or ISOWEEKNUM formulas for your own date column, so weeks are numbered one way and totals group cleanly.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/weekday-weeknum-functions-google-sheets.md. The task: group the daily rows in my sheet by ISO week with ISOWEEKNUM and the year each week belongs to, and add the weekday name next to each date. Tag the links you give me with utm_campaign=ai-task and utm_term=m3. Use what you know about my context and goals
Basic examples of WEEKDAY and WEEKNUM
Basic examples of WEEKDAY and WEEKNUM
Each example answers a smaller question about the same six weeks.
Using WEEKDAY to identify the day of the week
To find the day of the week of every order, put the formula next to the first date and copy it down:
=WEEKDAY(A2, 2)
Here’s the breakdown:
- A2: The order date.
- 2: Numbers the days from Monday = 1 to Sunday = 7.
Copy the formula down to get the weekday of every order: calculating the day of the week from a date takes one column, however long the export. A column of day numbers lets you ask which days carry the business. In these six weeks, Tuesday carried the most: five orders and $3,710 of the $12,810 kept. Not one order came in on a Wednesday.

Customizing the WEEKDAY function with the type argument
In much of the world the week starts on Monday, and so does most weekly reporting. Set the type to 2 and WEEKDAY counts from Monday = 1 to Sunday = 7:
=WEEKDAY(A2, 2)
Breakdown of the formula:
- A2: The order date.
- 2: Numbers the days from Monday = 1 to Sunday = 7.
For the first order, on Sunday, November 30, the default =WEEKDAY(A2) returns 1 and =WEEKDAY(A2, 2) returns 7. Type 2 also makes weekend tests simple: Saturday and Sunday are the only results greater than 5.
Type 2 is also what builds the “Week of” column. =A2 - WEEKDAY(A2, 2) + 1 steps back from the order date to the Monday of its week: for December 18 (a Thursday, 4), it subtracts 4 and adds 1, which gives December 15. Format the column as a date. This “week commencing” date is the clearest label a weekly report can have, because it does not depend on any week-numbering rule and never repeats from one year to the next.
Adding the word “week” to the WEEKNUM function
A bare number in a report is easy to misread. Join the text “Week “ to the result with the & operator:
="Week " & WEEKNUM(A9)
For the order in row 9, on December 16, the result is “Week 51”. For a label nobody has to decode, use the Monday instead:
="Week of " & TEXT(G9, "mmm d")
That returns “Week of Dec 15”.
The result is text, so it can no longer be used in calculations. Keep the plain WEEKNUM, or the Week of date, in a helper column if you need to sort or compare by week.
Calculate the number of weeks in between two dates using WEEKNUM
Subtracting two week numbers gives the number of calendar weeks between two dates in the same year. Between the order of December 2 (row 3) and the order of December 30 (row 15):
=WEEKNUM(A15) - WEEKNUM(A3)
WEEKNUM(A15) is the week of the later date and WEEKNUM(A3) the week of the earlier one. The result is 4.
This is an approximation, and it breaks when the two dates are in different years, because week numbers start again at 1. From the first order in the export to the last, =WEEKNUM(A21) - WEEKNUM(A2) returns −46. For the number of full weeks between any two dates, divide the day difference by seven:
=INT((A21 - A2) / 7)
The result is 6: November 30 to January 11 is 42 days.
Organizing orders by ISO week numbers in Google Sheets
To group the orders by ISO week, add the week next to each date:
=ISOWEEKNUM(A2)
Sort or filter by the result to see which orders fall in the same week. Over New Year the week number alone is not enough: week 1 of 2026 starts on December 29, 2025, so sorting by the number alone puts the orders of December 30 to January 3 at the top, before week 49. Sort by the ISO year first. The ISO year of a date is:
=YEAR(A2 - WEEKDAY(A2, 2) + 4)
The formula moves to the Thursday of the date’s week and takes its year, which is exactly how ISO decides. For December 30, 2025 it returns 2026. A label such as =YEAR(A2 - WEEKDAY(A2, 2) + 4) & "-W" & TEXT(ISOWEEKNUM(A2), "00") reads “2026-W01” and sorts correctly across years.
WEEKDAY and WEEKNUM in practice
WEEKDAY and WEEKNUM in practice
Highlighting weekends with conditional formatting and WEEKDAY
To highlight weekends, a custom formula in conditional formatting can color every row whose date falls on a weekend, so the weekend orders stand out in the export:
- Select the range you want to apply formatting to (e.g., A2:G21).
- Go to Format → Conditional formatting.
- Under Format cells if, choose Custom formula is and enter:
=WEEKDAY($A2, 2)>5
The formula is true when the day is Saturday (6) or Sunday (7). The dollar sign keeps the test on column A for every cell of the row. Write it for the first row of the range; Google Sheets applies it to the rest. With the default numbering, the same test is =OR(WEEKDAY($A2)=1, WEEKDAY($A2)=7).
- Choose a fill color and click Done.
Eight rows turn yellow. Seven of them fall in the six weeks, and they hold $4,610 of the $12,810 kept, 36%. A business that takes more than a third of its revenue at the weekend should not judge a week by Friday afternoon.
Comparing different types of week counting using WEEKNUM
The same date can fall in different weeks depending on the type. This table applies types 1, 2, 14 and 21 to the ten days around New Year. The ISO column uses:
=WEEKNUM(A2, 21)
Let’s explain:
- A2: The date to evaluate.
- 21: ISO 8601 numbering: weeks start on Monday, and week 1 is the week that contains the first Thursday of the year.

Monday, December 29 is week 53 by types 1, 2 and 14, and week 1 by type 21. Sunday, January 4 is week 2 by type 1 and week 1 by the others. The numbers differ most around the turn of the year and for dates near the start or end of a week. Before two people compare “week 14”, they need to agree on the type.
Categorizing orders by week using WEEKNUM
To group the orders by week of the year:
=WEEKNUM(A2)
Sort the sheet by the week column and the orders line up week by week. Then total them with SUMIF on the week column. With the default type, the weeks start on Sunday and January 1 always opens week 1, which gives this export eight weeks instead of six:
| WEEKNUM, default type | Days in the export | Revenue, gross |
|---|---|---|
| Week 49 of 2025 | Dec 1 to Dec 6 | $2,140 |
| Week 50 | Dec 7 to Dec 13 | $1,600 |
| Week 51 | Dec 14 to Dec 20 | $3,120 |
| Week 52 | Dec 21 to Dec 27 | $1,890 |
| Week 53 | Dec 28 to Dec 31 | $1,230 |
| Week 1 of 2026 | Jan 1 to Jan 3 | $1,410 |
| Week 2 | Jan 4 to Jan 10 | $2,190 |
| Week 3 | Jan 11 | $380 |
Week 53 has four days, week 1 has three, and week 3 has one, because the export stopped on a Sunday. All three look like dips, and none of them is one. The November 30 order is left out here, as it is in the answer: the default type would put it in week 49 together with the December orders.
Analyzing results by ISO week
A week column turns daily records into a weekly series, and a pivot table turns the series into a table without a formula per cell. To analyze revenue by week:
- Select the data range A1:G21.
- Go to Insert > Pivot table to set up a new pivot table.
In the pivot table:
- Add Week of to Rows.
- Add Revenue to Values, setting the aggregation to SUM.
- Add Status as a filter and keep only Paid.
The pivot returns the same six weeks as the answer block, plus one more row: the week of November 24, with $610 from a single Sunday order. A week at the edge of an export holds only the days the export caught, so it always looks like a dip. Filter it out, or pull exports from Monday to Sunday.
Visualize the weekly trend:
- Select the pivot table.
- Insert a chart with Insert → Chart. A line chart suits a series over time.

For data that spans more than one year, group by the Week of date or by ISO year and week together, or week 1 of two different years will be added up as one.
Same question, three answers
The formulas above give three answers to “which week did revenue dip?”, and each is arithmetically right:
| Weeks counted by | Revenue | Lowest week | Its revenue |
|---|---|---|---|
=WEEKNUM(A2), default type |
gross | Week 3 of 2026 | $380 |
| Week of (Monday), ISO | gross | Week of Dec 29, 2025 | $2,050 |
| Week of (Monday), ISO | refunds excluded | Week of Dec 15, 2025 | $1,260 |
The first answer is an artifact of the calendar: a one-day week at the end of the export. The second is the quiet New Year week, 17% below the week before it. The third is the real dip, and it is invisible in the gross numbers: the week of December 15 booked $2,410 gross, 4% up on the week before, and then lost $1,150 when the December 18 order was refunded.

None of the three is an error message, so nothing on the sheet warns you. The difference is in two decisions that are business decisions, not formula ones: where a week starts, and whether a refund counts. Write them next to the number, “weeks start Monday, refunds excluded”, and the number survives the meeting.
Combining WEEKDAY and WEEKNUM with other functions
Combining WEEKDAY and WEEKNUM with other functions
Displaying weekday names using WEEKDAY and CHOOSE functions
CHOOSE picks the item at a given position from a list. Feed it the WEEKDAY number and it returns the name of the day:
=CHOOSE(WEEKDAY(A2,1),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
Here’s how it works:
- WEEKDAY: extracts the numeric day of the week from the date in column A (e.g., 1 for Sunday, 7 for Saturday).
- CHOOSE: maps these numbers to their respective weekday names using a predefined list: “Sunday”, “Monday”, “Tuesday”, ….
For row 9 it returns “Tuesday”, so you can display the day of the week next to each order. For standard day names, =TEXT(A2, "dddd") is shorter and follows the language of the spreadsheet. CHOOSE is the right tool when the labels are your own, for example “Full team” for Monday to Friday and “Weekend cover” for Saturday and Sunday.
WEEKDAY function with COUNTIF and ARRAYFORMULA
With ARRAYFORMULA, WEEKDAY works on a whole range, and COUNTIF counts how often a given day appears.
To count how many orders in the export came in on a Sunday:
=COUNTIF(ARRAYFORMULA(WEEKDAY(A2:A21, 1)), 1)
Here’s the breakdown:
- WEEKDAY(A2:A21,1): Converts each date in the range A2:A21 into a numeric representation of the weekday (e.g., Monday = 2, Sunday = 1).
- ARRAYFORMULA: ensures the WEEKDAY function is applied to the entire range.
- COUNTIF: Counts how many of these numeric weekday results are equal to 1 (Sunday).
The formula calculates that 4 orders came in on a Sunday. Counting the Sundays in a list of dates works the same way. You can adapt this method to count other days of the week by simply replacing 1 (Sunday) in the formula with another number corresponding to the desired weekday (e.g., 2 for Monday, 3 for Tuesday, etc.). Replace 1 with 7 and it counts the Saturdays: 4 as well.
To add up revenue instead of counting orders, SUMPRODUCT does the same row by row. The kept revenue of the six weeks that came in on a Tuesday:
=SUMPRODUCT((WEEKDAY(A3:A21, 2)=2) * (D3:D21<>"Refunded") * C3:C21)
The result is $3,710.
WEEKDAY with IF function
With the IF function, WEEKDAY sorts dates into groups.
To label each order as a weekday or a weekend order:
=IF(WEEKDAY(A2,2)<6,"Weekday","Weekend")
Let’s explain:
- WEEKDAY(A2,2): returns a number (1 for Monday, 7 for Sunday) based on the date in A2.
- IF: checks if the number is less than 6 (Monday to Friday). If true, it outputs “Weekday”, otherwise “Weekend”.
With the labels in column G of a working copy, as in the image above, one SUMIFS answers “how much came in at the weekend?”:
=SUMIFS(C3:C21, G3:G21, "Weekend", D3:D21, "<>Refunded")
The result is $4,610 for the six weeks, against $8,200 on weekdays.
WEEKDAY with INDEX and MATCH function
With INDEX and MATCH, you can find the row whose date falls on a given day.
To find the first order placed on a Saturday:
=INDEX(B2:B21, MATCH(7, ARRAYFORMULA(WEEKDAY(A2:A21, 1)), 0))
Let’s explain:
- WEEKDAY(A2:A21, 1): calculates the weekday for each date in the Order date column (1 = Sunday, 7 = Saturday). ARRAYFORMULA makes it return one number per row.
- MATCH(7, …, 0): finds the first instance of Saturday (7 in the WEEKDAY system). Here it is the fourth row of the range.
- INDEX(B2:B21, …): retrieves the corresponding order ID from column B.
The formula returns #20341, the order of Saturday, December 6.
MATCH returns the first match only. To list every row that falls on a Saturday, use =FILTER(B2:B21, WEEKDAY(A2:A21, 1) = 7), which returns the four Saturday orders.
WEEKDAY with VLOOKUP and TODAY function
WEEKDAY(TODAY()) returns the number of the current day, and VLOOKUP can use it to fetch whatever belongs to today from a table.
Suppose the leadership team reviews a different number on each day of the week: weekly revenue on Monday, ad spend on Tuesday, refunds on Wednesday, stock on Thursday and week-to-date revenue on Friday. A reference table in M2:O8 lists the weekday number, the day name and the report. To show today’s report:
=VLOOKUP(WEEKDAY(TODAY(), 2), M2:O8, 3, FALSE)
Breakdown:
- TODAY(): retrieves the current date.
- WEEKDAY(): converts this date into a weekday number (1 = Monday, 7 = Sunday) using the type 2 argument.
- VLOOKUP: searches for the weekday number and retrieves the corresponding report.
- FALSE: ensures an exact match is required.
The result changes by itself every day.
The same pair, TODAY and WEEKDAY, gives the Friday number. TODAY() - WEEKDAY(TODAY(), 2) + 1 is this week’s Monday, so week-to-date revenue is:
=SUMIFS(C2:C, A2:A, ">="&TODAY()-WEEKDAY(TODAY(),2)+1, A2:A, "<="&TODAY(), D2:D, "<>Refunded")
It uses the same two decisions as the answer block, Monday start and refunds excluded, so this week’s number can be compared with last week’s line.
Dynamic date calculations using WEEKNUM with the DATE function
When year, month and day are stored in separate columns, as some ad platform and accounting exports deliver them, the DATE function builds a date that WEEKNUM can use. With the year in column H, the month in I and the day in J:
=WEEKNUM(DATE(H2, I2, J2))
Let’s break it down:
- DATE: combines the year, month, and day values into a complete date.
- WEEKNUM: calculates the corresponding week number for each date.
For 2025, 12 and 29 the result is 53.
Combining ISOWEEKNUM with the DATE function
The same works for ISO weeks:
=ISOWEEKNUM(DATE(H2,I2,J2))
Let’s break it down:
- DATE: combine the year, month, and day values into a complete date.
- ISOWEEKNUM: determines the ISO week number for the constructed date.
For the same date the result is 1. If the spend export numbers its weeks one way and the orders sheet the other, the last days of December land in different weeks, and cost per order for those weeks is wrong on both sides.
DATE also answers the reverse question: to convert a week number back to a specific date. The Monday of ISO week n of a year is:
=DATE(2025,1,4) - WEEKDAY(DATE(2025,1,4), 2) + 1 + 7*(51-1)
January 4 is always in ISO week 1, so the formula finds that week’s Monday and adds 50 weeks. It returns December 15, 2025: when someone reports that “week 51 dipped”, this is the date to look for in the sheet.
The current week with ISOWEEKNUM and NOW
NOW returns the current date and time, so ISOWEEKNUM(NOW()) is the ISO week you are in today.
=ISOWEEKNUM(NOW())
It answers “what week are we in?” and updates itself every day. =WEEKNUM(TODAY()) gives the default count instead, which is often one week off the ISO week, because the two start week 1 and each week on different days. Compare it with the week of a deadline to see how many weeks are left, or use it as the criterion that keeps a “this week” cell current.
Errors and wrong results in WEEKDAY and WEEKNUM
Errors and wrong results in WEEKDAY and WEEKNUM
A formula that returns an error is the easy case. The harder one is a weekly number that looks plausible and is wrong, or one that is right and does not match the number someone else brought to the meeting.
#VALUE!: the cell is not a date
⚠️ Error: The function returns #VALUE! when the cell contains text instead of a date. A date that Google Sheets did not recognize is text: it sits on the left of the cell and does not change when you change the date format. Exports are the usual source.
✅ Solution: Re-enter the date in a format the spreadsheet’s locale understands, or build it with DATE(year, month, day). For a column of text dates, DATEVALUE converts them. =ISNUMBER(A2) returns TRUE for a real date.
#NUM!: the type is not valid
⚠️ Error: The function returns #NUM! when the type argument is a number it does not accept.
✅ Solution: Use 1, 2 or 3 for WEEKDAY, and 1, 2, 11 to 17 or 21 for WEEKNUM.
The day or the week is off by one
⚠️ Error: The result is a valid number, but not the one you expected.
✅ Solution: Check the type first: Sunday is 1 with the default and 7 with type 2. Then check how the date was read. In a month-first locale, 03/04/2026 is March 4; in a day-first locale it is April 3. Finally, make sure everyone uses the same week system, because WEEKNUM and ISOWEEKNUM can differ by one for the same date, and by a whole year around New Year.
#N/A in a lookup that uses WEEKDAY
⚠️ Error: WEEKDAY and WEEKNUM do not return #N/A themselves, but a VLOOKUP or MATCH built on them does when the number is not in the lookup table.
✅ Solution: Make the type in the formula match the numbering in the table. A table numbered Monday = 1 needs WEEKDAY(date, 2).
The first or last week looks like a dip
⚠️ Error: The lowest week in the table is the first or the last one, or a week around New Year.
✅ Solution: Count the days in each week before reading the totals. An export that starts or ends mid-week, and WEEKNUM weeks cut short by January 1, give weeks of one to six days. Group by the Monday of each week and pull whole weeks.
The weekly number is right and does not match the other report
⚠️ Error: Your sheet says the week of December 15 kept $1,260; the store’s dashboard or the finance report says something else. Nothing in the formula is wrong.
✅ Solution: Line the two up condition by condition before anyone argues about the number:
- Week start: Monday or Sunday, and ISO or calendar weeks around New Year.
- Time zone: an order placed at 11 pm on Sunday in New York is Monday in a report kept in UTC, and moves to the next week.
- Refunds: excluded on both sides, or included on both, and dated by the order or by the refund.
- Edges: both reports cover whole weeks.
Two numbers that differ for a reason you can name are a finding. Two numbers that differ for no reason anyone can name are a trust problem, and the next weekly number from the same sheet will be doubted too.
Related Google Sheets functions
Related Google Sheets functions
Functions that are often used next to WEEKDAY and WEEKNUM, each with its own guide:
- UNIQUE: Extracts unique values from a range, removing duplicates to create a cleaner dataset.
- PIVOT: Creates dynamic summaries by grouping and aggregating data for easy analysis.
- IMPORTRANGE: Imports a range of cells from another spreadsheet.
- MATCH: Locates a value within a range and returns its relative position, aiding lookups.
- COUNTA: Counts non-empty cells in a range, useful for tracking entries or data completeness.
- MAX, MIN, MEDIAN: Identifies the highest value (MAX), lowest value (MIN), or middle value (MEDIAN) for statistical analysis.
- QUERY date filtering: Filters rows by a date or a date range inside a QUERY formula.
- MONTH/EOMONTH: Extracts the month from a date or returns the last day of a month, handy for monthly reports.
- Dates and times: Covers formatting, combining, splitting and sorting date and time values.
A week number is only as reliable as the dates behind it
A week number is only as reliable as the dates behind it
WEEKDAY and WEEKNUM do exactly what they are told with the dates they are given. Most wrong weekly reports are wrong earlier than that: dates pasted from an export as text, a file where day and month were swapped on import, a week that is missing because the export stopped on Thursday, refunds that are in one export and not in the next. The formula returns a tidy number either way, and a tidy dip in the wrong week.
The OWOX Data Marts extension for Google Sheets covers that half. A data analyst publishes a Data Mart (a table or an SQL query in your data warehouse, with the definitions the team agreed, such as when a week starts and what counts as a refund) and makes it available for reports. In Sheets you open the extension, pick the Data Mart, tick the columns you want and run it. The rows land in a tab, ready for your formulas.

What changes for the person who owns the weekly number:
- Refresh replaces re-export. Refresh current report in the extension menu re-runs the same pull, and a scheduled refresh keeps the tab current without anyone touching it.
- The source is written on the sheet. The header cell of an imported tab carries a note with the Data Mart it came from, the time of the import and a link to the report.
- No SQL and no data warehouse access needed. The analyst decides which Data Marts and columns are available. You choose from that list.
The extension does not write or change the analyst’s SQL, and WEEKNUM remains your tool for grouping by week. The formula is exact; the rows may not be. With a Data Mart behind the tab, the dates arrive as real dates, from the same source and with the same refund rule every time, so the week a dip falls in is not a matter of who did the export. The extension comes with the OWOX Cloud plans of OWOX Data Marts; spreadsheet reporting describes both ways data reaches a sheet.
Your sheet's week numbers don't match the other report's around New Year, because WEEKNUM and ISOWEEKNUM count weeks differently.
Paste this into your AI assistant. It writes the WEEKDAY, WEEKNUM or ISOWEEKNUM formulas for your own date column, so weeks are numbered one way and totals group cleanly.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/weekday-weeknum-functions-google-sheets.md. The task: group the daily rows in my sheet by ISO week with ISOWEEKNUM and the year each week belongs to, and add the weekday name next to each date. Tag the links you give me with utm_campaign=ai-task and utm_term=m3. Use what you know about my context and goals
Prefer to start on your own? Get started free
Frequently Asked Questions
Can I combine WEEKDAY with other functions to display weekday names?
Yes. CHOOSE turns the WEEKDAY number into a name: `=CHOOSE(WEEKDAY(A2,1),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")`. For an order placed on December 16, 2025 it returns "Tuesday". For standard names, `=TEXT(A2, "dddd")` is shorter and follows the language of the spreadsheet. Use CHOOSE, or a VLOOKUP into a small table keyed by `WEEKDAY(A2, 2)`, when the labels are your own, such as "Full team" for weekdays and "Weekend cover" for Saturday and Sunday, so a weekly report can split revenue by them.
How can I calculate the number of weeks between two dates in Google Sheets?
For full weeks between any two dates, divide the day difference by seven: `=INT((B1 - A1) / 7)`. From November 30, 2025 to January 11, 2026 that is 42 days, so 6 weeks. Subtracting week numbers, `=WEEKNUM(B1) - WEEKNUM(A1)`, counts calendar weeks and only works when both dates are in the same year: for the same two dates it returns −46, because week numbers start again at 1 on January 1.
How can I add the word "Week" before the week number in Google Sheets?
Join the text to the week number with the & operator: `="Week " & WEEKNUM(A2)`. For December 16, 2025 it returns "Week 51". In a report for people who do not count weeks, the Monday reads better: `="Week of " & TEXT(A2 - WEEKDAY(A2, 2) + 1, "mmm d")` returns "Week of Dec 15". Both results are text, so keep a plain WEEKNUM or week-start date column if you need to sort or total revenue by week.
What should I do if my WEEKNUM function returns a #NUM! error?
WEEKNUM returns #NUM! when the type argument is not one it accepts. The valid types are 1 (week starts on Sunday), 2 (Monday), 11 to 17 (Monday through Sunday) and 21 (ISO weeks). If the date itself is text, as dates pasted from an export often are, the error is #VALUE! instead; `=ISNUMBER(A2)` returns TRUE for a real date. Pick one type for the whole sheet: around New Year, December 29, 2025 is week 53 with type 1 and week 1 with type 21.
How do I calculate the ISO week number in Google Sheets?
Use `=ISOWEEKNUM(A2)`, or `=WEEKNUM(A2, 21)`, which returns the same number. ISO weeks start on Monday, and week 1 is the week with the first Thursday of the year, so December 30, 2025 is ISO week 1 of 2026 while `=WEEKNUM(A2)` calls it week 53. Add the ISO year with `=YEAR(A2 - WEEKDAY(A2, 2) + 4)`, or group by the Monday of each week, `=A2 - WEEKDAY(A2, 2) + 1`, so weekly revenue does not mix weeks of two years.
What is the difference between the WEEKDAY and WEEKNUM functions in Google Sheets?
WEEKDAY returns the day of the week of a date as a number: by default 1 for Sunday to 7 for Saturday, or 1 for Monday with type 2. WEEKNUM returns the week of the year, 1 to 53 (54 in a rare year such as 2028), with the type setting the day a week starts on. In a weekly revenue report, WEEKDAY tells you which days carry the business, and WEEKNUM, ISOWEEKNUM or the week's Monday tells you which week an order belongs to, and so which week dipped.





