Yes, that is how that formula should work (IF cell C5 is either V1, V2 or V3, then subtract B5 from B6, otherwise enter B6). So what is happening?