Happy New Year All.
I have successfully had help in navigating the problems of "Previus" month when a new year like now for both COUNTIFS and SUMIFS
However, I have a simple IF statement and just cannot get it to work.
4 fields
Date & Time - this is the automated date creation value
This Month - dropdown with True or False values calculated by formula
=IF(DATE(YEAR([Date & Time]@row), MONTH([Date & Time]@row), 1) = DATE(YEAR(TODAY()), MONTH(TODAY()), 1), "True", "False")
which still works OK (phew)
Last Month - dropdown with True or False values calculated by formula
=IF(DATE(YEAR([Date & Time]@row), MONTH([Date & Time]@row), 1) = DATE(YEAR(TODAY()), (MONTH(TODAY()) - 1), 1), "True", "False")
which of course goes wrong this month as need to remove 1 from year and set month = 12
Previous Month - dropdown with True or False values calculated by formula
=IF(DATE(YEAR([Date & Time]@row), MONTH([Date & Time]@row), 1) = DATE(YEAR(TODAY()), (MONTH(TODAY()) - 2), 1), "True", "False")
which of course goes wrong this month as need to remove 1 from year and set month = 12
Now I have tried adding in IFERROR statements but whatever I try comes back #UNPARSEABLE
=IF(DATE(YEAR([Date & Time]@row, MONTH([Date & Time]@row,1) = IFERROR(DATE(YEAR(TODAY()), MONTH(TODAY()) -1,1), DATE(YEAR(TODAY()) -1, 12, 1))), "True", False")
So I am stuck and really hope someone can help me as my brain just cannot push thrugh this one.
Many thanks in anticipation
Sue