Forum Discussion

Thomasd842's avatar
Thomasd842
Copper Contributor
Feb 27, 2024

Excel IF Function

Hi, I have one cell which returns a 'yes' or 'no' based on another cell. Now I want seperate cell to return a date minus a figure, referencing another dated if the previous cell has 'yes', or minus...
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Feb 27, 2024

    Thomasd842 Not sure why the AI robot used to compose the answer you marked as "best" came up with such a complicated DATE construction.

    =IF(A2="yes", B2-10, B2-5) works just as good.

     

    To answer your last question, try this:

    =IF(A2="yes", B2-10, A2)

Resources