Help with invalid nested IF formula

I have two date fields and would like to pull out the months and years in separate fields from one or the other.

I managed to get the single IF working but not the nested function. Here’s my formula:

IF({Date A}, DATETIME_FORMAT({Date A},’YYYY’), IF({Date B}, DATETIME_FORMAT({Date B},’YYYY’)))

which I based on:

IF([logical argument1], [value1], IF([logical argument2], [value2], [value3]))

Any help would be appreciated.

I copied your formula exactly and it works for me. Is it possible that the {Date A} field in row 2 isn’t truly blank? Perhaps there’s an empty space in it?

That’s interesting @Kamille_Parks because I actually can’t save the formula…

The reason for that is the use of curly apostrophes (’) instead of straight ones (')

1 Like

Oh, that’s what it was! I had curly ones in my original text. Thanks @Kamille_Parks

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.