Share via

Nested IF Functions - HELP

Anonymous
2024-08-06T18:20:17+00:00

I am trying to nest two different IF functions for a column in my spreadsheet.

The first (the prioritized function) would display "quarterly" in column H if column F displays "AM"

the second would display one year from the date in column H, however; I do not want cells with no date in column H populating the default date, so I have this part of the function written IF(G18="","",DATE(YEAR(G18)+1,MONTH(G18),DAY(G18)))

I've been playing with this thing for a while (i'm still very new to excel) and no dice.

My best attempt is: =IF(F18="AM","QUARTERLY",IF(G18="","",DATE(YEAR(G18)+1,MONTH(G18),DAY(G18))))

Any suggestions?

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-08-06T20:18:32+00:00

    I just tried it again, same formula I wrote in the post. This time it worked. I couldn't tell you what the problem was before, but I tried it quite a few times.

    Thanks for the help anyways though!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-08-06T20:08:29+00:00

    I must have done a typo, the date is supposed to populate in column H, one year from the date displayed in Column G.

    It won't put "quarterly" in column H when I use my formula. Not sure what the problem is.

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2024-08-06T19:23:02+00:00

    You write "one year from the date in column H", but your formula refers to column G. That actually makes more sense - a formula in H18 cannot refer to H18 itself.

    What is the problem with the formula that you posted?

    Was this answer helpful?

    0 comments No comments