Forum Discussion

MeganH84's avatar
MeganH84
Copper Contributor
Mar 07, 2023
Solved

Formula works in one cell and not another

Hi Everyone,   I have an issue that I'm hoping to get some help with. I have a workbook with 4 sheets in it to track spending for a lump sum that is divided into different areas. The first sheet is...
  • HansVogelaar's avatar
    HansVogelaar
    Mar 08, 2023

    MeganH84

    Thanks. Cell D1 on the Summary by Month sheet contains the text value Sep-22, not a date. Table headers are always text, you cannot change that.

    When you force Excel to treat it as a date by using YEAR, MONTH or EOMONTH, it is interpreted as the 22nd of September, and since the year is not specified, the current year is assumed. So Sep-22 is interpreted as 22-Sep-2023.

    If you enter 1-Sep-2022 in D1, the formula will work as intended, even though Excel will display 01-Sep-22.

     

Resources