Fotis, I can't get your formula to produce anything but #N/A (yes, I array entered). Can you post a file where it works as you expect?