I have a couple hundred years worth of data and the years are in the rows of Column B. I need to test if the year ends in 7, so 1807, 1817, etc and if so enter a -1, otherwise leave blank. I would think this should be easy, but I cannot figure it out, other than lsiting all the years ending 7 in an if statement. There must be an easier way. Thanks!