Thank you both for the formula!
I use this formula =IF(OR(AE3=100000,COUNTIF(M:M,AG3)),0,AI3)
i also want to add that if the date in cell V1 minus the the date in cell AC3 is equal to or less than 5 than give me the formula above, otherwise show zero.
thank you so much again for the help.