I need to find where a date value is later than the year 1911. Some of these values aren't uniform: some are Jan-1910 (beneath the formatting this is 01/01/1910, others are 1910-1914. Dates before 1900 have to be written manually as Jan 1899 due to Excel date limitations.
I have this regex being put into a formula:
=REGEXTEST(B2, "191[1-9]")
when I use it on a selection of values I get:
So the regex works for isolated numbers, doesn't work for dates of the format Jan-09 (internally 01/01/1909), and does work for dates with dots instead of slashes.
On regex101.com, it works as intended.



01.01.1912is working for you and not the one which are real true dates? If you format the cell range asTextthen1911,1912,Jan-11,Jan-12will return TRUE for you. I am not an expert in Regex but I tested in Excel that when you turn them text it gives the desired output as expected but when those are real numbers thats how dates are stored in excel returns false.1911and1912or if you write1915it will also give you desired output because those are one number, there is nothing behind the scenes going on for those.=REGEXTEST(IF(CELL("format", B2)="G", B2, TEXT(B2, "m/d/e")), "191[1-9]")=AND(YEAR(B2)>1910,YEAR(B2)<1920)