I think something is wrong with my data which I imported from excel. The formula works when I open a new access doc and just enter data manually, but it doesn't work with imported data. I have 6k rows so I wouldn't be able to enter everything manually. Do you have an idea how to fix the problem?