Skip to main content
Solved

Help with invalid nested IF formula

  • January 10, 2020
  • 2 replies
  • 26 views

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.

Best answer by Kamille_Parks11

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

2 replies

Kamille_Parks11
Forum|alt.badge.img+27

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?


Kamille_Parks11
Forum|alt.badge.img+27

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