WEEKS function - Zoho Sheet - Help Guide

WEEKS

Returns the number of weeks between two given dates.

 

Syntax

 

WEEKS(start_date; end_date; [mode])

start_date: The date from which to calculate the number of weeks. E.g. "2/5/2020"

end_date: The date up to which to calculate the number of weeks. E.g. "7/8/2020"

mode: Determines the numbering system to use. Defaults to 0 if omitted.

0 - WEEKS returns the number of whole weeks between start_date and end_date i.e. INT(number_of_days_difference / 7).

1 - WEEKS Identifies the Monday to Sunday week that start_date and end_date each lie in, and returns the difference between those weeks.

 

Examples

 

Formula

Result

=WEEKS("2/5/2020";"7/8/2020")

22

=WEEKS(E2;F2;1)

9

=WEEKS("1/1/2018";"1/1/2019")

52


Get a hands-on experience of the function in the embedded range below. 



Possible Errors

 

Errors

Meaning

#N/A!

  • The function could not find the value it was asked to look for. Commonly occurs in VLOOKUP and similar functions.

#NAME!

  • The function name is incorrect or invalid.

  • The given defined name (if any) is invalid.

  • There is a typo in the defined name used in the function.

  • Double quotes are missing for text values in the function.

  • Colon missing in a cell range reference.

#VALUE!

  • The given argument's data type is incorrect or invalid.
    For example, the function =DATE(A1:A3) will return a #VALUE error when a text value is present in the range.

#REF!

  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.

 

Similar Functions


    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION








                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                        Manage your brands on social media

                                          Zoho Desk Resources

                                          • Desk Community Learning Series


                                          • Digest


                                          • Functions


                                          • Meetups


                                          • Kbase


                                          • Resources


                                          • Glossary


                                          • Desk Marketplace


                                          • MVP Corner


                                          • Word of the Day


                                            Zoho Marketing Automation

                                              Zoho Sheet Resources

                                               

                                                  Zoho Forms Resources


                                                    Secure your business
                                                    communication with Zoho Mail


                                                    Mail on the move with
                                                    Zoho Mail mobile application

                                                      Stay on top of your schedule
                                                      at all times


                                                      Carry your calendar with you
                                                      Anytime, anywhere




                                                            Zoho Sign Resources

                                                              Sign, Paperless!

                                                              Sign and send business documents on the go!

                                                              Get Started Now




                                                                      Zoho TeamInbox Resources



                                                                              Zoho DataPrep Resources



                                                                                Zoho DataPrep Demo

                                                                                Get a personalized demo or POC

                                                                                REGISTER NOW


                                                                                  Design. Discuss. Deliver.

                                                                                  Create visually engaging stories with Zoho Show.

                                                                                  Get Started Now









                                                                                                      • Related Articles

                                                                                                      • WEEKSINYEAR

                                                                                                        Returns the number of weeks in a given year.   Syntax   WEEKSINYEAR(date) date: The date containing the year that you want to find the number of weeks of. E.g. "3 Aug, 2020"   Examples   Formula Result =WEEKSINYEAR("3 Aug, 2020") 53 ...
                                                                                                      • STOCK

                                                                                                        Returns the stock details for the stock symbol provided.   Syntax   STOCK(symbol; [function]) symbol: The stock symbol of the company. E.g. "AAPL" function: The type of data to return. Defaults to the price value when omitted. E.g. "volume"   ...
                                                                                                      • WORKDAY

                                                                                                        Returns the end date away from a given number of working days.   Syntax   WORKDAY(start_date; days; [hol_range]) start_date: The starting date for the calculation. E.g. "1/17/20" days: The number of working days to count from the start_date. Counts ...
                                                                                                      • YEAR

                                                                                                        Returns the year of a given date.   Syntax   YEAR(date) date: The date that you want the year of. E.g. "2/13/00"   Examples   Formula Result =YEAR("2/13/00") 2000 =YEAR("3 August") 2020 =YEAR(F2&"/"&E2&"/"&G2) 1999 Get a hands-on experience of the ...
                                                                                                      • YEARFRAC

                                                                                                        Returns the number of years, including fractional years, between two given dates. Syntax YEARFRAC(start_date; end_date; [basis]) start_date: The date from which to calculate the number of years. E.g. "2/5/2020" end_date: The date up to which to ...
                                                                                                        Wherever you are is as good as
                                                                                                        your workplace

                                                                                                          Resources

                                                                                                          Videos

                                                                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                          eBooks

                                                                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                          Webinars

                                                                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                          CRM Tips

                                                                                                          Make the most of Zoho CRM with these useful tips.



                                                                                                            Zoho Show Resources