How to Use ISOWEEKNUM Function in Google Sheets

Use ISOWEEKNUM Function in Google Sheets
How to Use the ISOWEEKNUM Function in Google Sheets

The ISOWEEKNUM function in Google Sheets is useful for finding out what week a specific date falls into.

In dealing with financial reports, it will likely be necessary to determine what week of the year a certain transaction falls into. A calendar is always at your fingertips, but it takes some effort to identify the week of a particular date. It’s here where the ISOWEEKNUM function comes in handy.

As the name suggests, ISOWEEKNUM returns the week number of a date in accordance with the ISO standard, which is ISO 8601.

Following this standard, weeks are counted starting from Monday to Sunday. The numbering of weeks starts from the first week of the year that contains a Thursday. As an example, the first week of the year 2021 is from January 4 to January 10. So, when we use the ISOWEEKNUM for the date January 5, 2021, the function returns 1 as the result.

 

 

The Anatomy of the ISOWEEKNUM Function

ISOWEEKNUM is one of the simplest functions in Google Sheets. To use it in your spreadsheets, you just need to follow this syntax:

=ISOWEEKNUM(date)

As you can see, the syntax is quite self-explanatory. Here’s the breakdown of the components:

  • = we use the equal sign to indicate our intention of writing a function or formula.
  • ISOWEEKNUM() this is our ISOWEEKNUM function.
  • date is the only parameter that the function requires. It should contain a date, number, or another function that returns a date value.

 

 

A Real Example of Using ISOWEEKNUM Function

Let’s consider a simple use case for the ISOWEEKNUM function.

Every first week of the year, John offers a $5,000 loan payable in 1 year. He records each transaction in a spreadsheet that serves as his monitoring system to keep track of the loans. Here is a screenshot of his spreadsheet.

Using ISOWEEKNUM function in Google Sheets

John has a unique formula for computing the loan interests. However, to make it work, he must determine what week each borrower’s last payment falls on. So, in his spreadsheet, he assigned another column and used the ISOWEEKNUM function to do the job.

A Real Example of Using ISOWEEKNUM Function

Now, John doesn’t need to scan through his calendar just to determine the week number of each last payment record.

You can make a copy of the example data if you want to play with the ISOWEEKNUM function. Just click the link below.

ISOWEEKNUM seems pretty straightforward, right? Now, let us learn how to write this function properly.
 
 

How to Use ISOWEEKNUM Function in Google Sheets

  1. First, open the spreadsheet that you intend to use the ISOWEEKNUM function to. If you don’t have one at the moment, you can make a copy of our example spreadsheet earlier.
    Example spreadsheet
  2. Upon opening the spreadsheet, double-click the cell where you need to enter the function. In our example below, cell E2 is selected.
    Selecting cell E2
  3. Next, type in the equal sign ‘=’, followed by ‘ISOWEEKNUM(’ to start our function.

    Defining the ISOWEEKNUM Function
  4. Now that you have initiated the function, specify its date parameter. In our case below, we indicated the cell reference of the last payment date (D2) as the parameter.
    Defining the date parameter
  5. At this point, close the function by typing in the close parenthesis ‘)’ Afterward, press the Enter key on your keyboard to show the result.
    Completing the function
  6. If you need to recreate the formula in adjacent cells, you can always use the autofill feature of Google Sheets. Just select the cell that contains the function, then click and drag the small blue box on the lower right corner over the cells where you want to paste the formula.

    Using the autofill feature

That’s how you write a basic ISOWEEKNUM function in Google Sheets. In addition to this, you can also use a function as the parameter of ISOWEEKNUM. Learn how to do it in the next section.

Using the ISOWEEKNUM Function in Google Sheets with Another Function

You can also use another function as the parameter of ISOWEEKNUM, provided that the function returns a date data type. Let’s try this simple activity to test this use case.

  1. Start a new Google Sheets spreadsheet or use the one from the previous activity.
  2. Double-click any cell where you want to enter the function. Cell A1 is selected in the example below.
    Selecting cell A1
  3. This time, initiate the function by typing in ‘=ISOWEEKNUM(’.
    Initiating the ISOWEEKNUM function
  4. Our objective for this activity is to return the week number of the current date. For this to work, we need to use the NOW() function. If you are not aware yet, this function returns the current date. At this point, type in ‘NOW()’ as the parameter of the ISOWEEKNUM function.
    Defining a function as the parameter of ISOWEEKNUM function
  5. Lastly, hit enter on your keyboard to display the result.

    Completing the ISOWEEKNUM function

    This article was written on October 20, 2021, so the return value is 42.

Well done! Now you know how to write the ISOWEEKNUM in Google Sheets. Take note, however, that there are certain things that you need to consider when using this function.

 

 

Points to Consider When Using the ISOWEEKNUM Function in Google Sheets

  • If you need to enter the actual date instead of a cell reference as the parameter, you need to use the DATE function. If you fail to do so, the function might return an error.
    Using the date function for actual date values
  • You can also specify the actual date as the parameter without using a function. You just need to enclose the date in double quotation marks and follow the format mm/dd/yyyy or yyyy/mm/dd.
    Specifying the actual date as the parameter

  • In compliance with ISO 8601, the first week of the year is the week that contains the first Thursday. As a result, if you use the function for a date before the first week is counted, it returns either 52 or 53.

That’s about it when it comes to using the ISOWEEKNUM function in Google Sheets. Now you know how to write its syntax and combine it with another function to make your work more efficient.

Check out also our other articles in Google Sheets for you to master this powerful spreadsheet program.

Make sure to subscribe to our newsletter to get more useful Google Sheets content like this article.

Get emails from us about Google Sheets.

Our goal this year is to create lots of rich, bite-sized tutorials for Google Sheets users like you. If you liked this one, you'll love what we are working on! Readers receive ✨ early access ✨ to new content.

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like