Forum Discussion

Ancien's avatar
Ancien
Copper Contributor
Oct 01, 2018

Help with an Excel Formula

I have an Excel template that contains the following formula.
{=DaysAndWeeks+DATE(CalendarYear,1,1)-WEEKDAY(DATE(CalendarYear,1,1),(WeekStart="Mo")+1)+1}
What is DaysAndWeeks , it is not a range name or a macro.

5 Replies

  • mliaiter's avatar
    mliaiter
    Copper Contributor

    Ancien 
    hi Den,
    You should create a range name.
    Try this one:
    DaysAndWeeks = {0\1\2\3\4\5\6} + {0:1:2:3:4:5}*7 (excel)

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Hi Den,

     

    It shall be some name, please check in Name Manager (Formulas tab in ribbon)

    • Ancien's avatar
      Ancien
      Copper Contributor

      The name does appear where you said, but it does not appear anywhere in any sheet in the workbook.  I think I need to find someone that I can send the workbook to, for them to look at it.

       

      The workbook works in Excel 2007 on my laptop but I downloaded the workbook to Google Sheets and Google Sheets does not like this formula {=DaysAndWeeks+DATE(CalendarYear,1,1)-WEEKDAY(DATE(CalendarYear,1,1),(WeekStart="Mo")+1)+1}. There is no hidden sheet nor are there any hidden rows or columns in the workbook.

Resources