This is from an expense voucher worksheet. I’m wanting to test the date and apply different mileage rates based on whether the date is in 2001 or 2002. Here’s the formula I’m working with:
=IF(YEAR(A8)=2001,C8*0.345,C8*0.365)
Cell A8 has a date of, say, 1/17/02 with a date format of mm/dd/yy.
As a test, just taking =Year(A8) as a formula results in 6/24/1905 in a cell that is formatted as a date.
Thanks!
Kathy