Thanks for the quick turnaround and that DID put a zero in the cell. Must be the formula I'm using in the other cell that's causing the problem because it still says #N/A. It's not your code that produces the #N/A btw.
Is there a way to bring a screen shot into this reply? That would REALLY make it easier to explain things. I'll try it with words...
I have four columns: Date Out, Date In, Travel Days, Comp Days. Date Out and Date In are just regular date fields. Travel Days is what we're working on here and Comp Days is a formula someone else helped me with and it's designed to look at how many travel days there are and calculate the right number of comp days. The Comp Days formula, =LOOKUP(E7,{0,3,7,11,15,28,35,42},{0,1,2,3,4,5,6,7}), works well and returns the correct values.
When I just type a zero into the Travel Days cell I get a zero in the Comp Days cell, which is good. But, when I replace the plain zero in the Travel Days cell with your code that produces a zero the Comp Days cell produces the #N/A and I'm not sure why. Hope that makes sense but if not let me know and I'll try to explain more clearly.
Thanks for diving into this when it's late for you - much appreciated.