I need an excel formula that will return 1 for HE17-HE21 and return 0 elsewhere. The formula should be something like this; IF HE17 then 1 else 0. I will be adding this to another function that first checks IF(OR(B$1="Sunday",B$1="Saturday"),0. What i am trying to build here is a dynamic sheet that checks if the day of the week is a weekday then for Hours Ending 17-21 the value should be 1. Everything else 0. Thanks.