• WeekNum error

    Author
    Topic
    #458320

    Hi, I’m using the following formula in excel 2002 but get a ?Name error.

    =WEEKNUM(TODAY())

    I’m not sure what is wrong. I originally tried it as

    =WEEKNUM(G1)

    in order to get the week number for a specific date but that gave me the same error.

    Thanks,
    Leesha

    Viewing 2 reply threads
    Author
    Replies
    • #1152064

      Hi Leesha,

      In order to use the WEEKNUM function, you must activate the Analysis ToolPak add-in:
      – Select Tools | Add-Ins…
      – Tick the check box for Analysis ToolPak.
      – Click OK.

      If you distribute the workbook to other users, they will have to do the same (unless they use Excel 2007 or later; Analysis ToolPak is built into Excel itself there).

      • #1152069

        Thank you so much! I found the actual WeekNum forumla while doing a search of the lounge and couldn’t for the life of me figure out why it wasn’t working. You saved me many hours, as always.

        Thanks!
        Leesha

    • #1152067

      The WEEKNUM function requires the Analysis Toolpak add-in to be loaded.Choose Tools/Add-ins from the Excel menu and put a check mark beside the entry called Analysis Toolpak (not Analysis Toolpak – VBA). If you don’t see this entry you’ll need to install it using your original installation disks.

    • #1152070

      Hi Leesha,

      Note that the WEEKNUM function is wrong for ISO week numbers. If you’re in the US you’re fine.

      • #1152318

        in Europe You can use (Date in A1)

        =TRUNC((A1-DATE(YEAR(A1+3-MOD(A1-2;7));1;MOD(A1-2;7)-9))/7)

        regards,
        stef

    Viewing 2 reply threads
    Reply To: WeekNum error

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: