I have a column of dates in somewhat inconsistent formats, but always ending with the four digit year, like:
May 4, 2021
Apr. 23, 2021
Mar 7, 2021
if I delete the month and day from every cell, I can count occurrences of years with e.g.
countif(B:B, 2021)
However, I'd rather not delete the month and date, but I can't figure how to get COUNTIF to match on the year as a substring. Neither
countif(B:B, "*2021")
or
countif(B:B, "*"+2021)
work, and I can't figure out why. Any advice greatly appreciated.
