Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I think you are missing brackets around Date of birth. Like below.
If (not match (Date ([Date of birth] ), '01', '02', '03', ....., '31)) or not match (Mont ([Date of birth]), '01', ' 02 ',' 03 ', .....,' 12 ') or Year ([Date of birth]) <= 1900,' Error ',' OK 'as FlagErrorDate
Hi Vegar,
This expression didn't work. I have 'Error' on all cells of the new field "FlagErrorDate".
This is what I wrote :
if(not match (Date("Date of birth"),'01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') or not match(Month("Date of birth"), '01','02','03','04','05','06','07','08','09','10','11','12')
or year("Date of birth")<=1900, 'Error', 'OK') as FlagErrorDate
Oh I think I see what's causing this issue 🙂 Date("Date of birth") will return a date not the day of month. Try to use Day("Date of birth") instead.
if(not match (Day("Date of Birth"), '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31') or not match(Month("Date of birth"), '01','02','03','04','05','06','07','08','09','10','11','12')
or year("Date of birth")<=1900, 'Error', 'OK') as FlagErrorDate