This works for the sample sheet but when I apply the formula to my entire data sheet, it stops working. Can someone explain to me exactly that DonkeyOte did please so I can fix it on my main sheet?

Thanks