Hi Rick,
I fear you used an earlier version of my code.
I amended it to perform the zero days difference calculation.
It's so slight you can easily overlook it.
Code:Function snb(x0 as string, x1 as string) x2 = DateDiff("m", x0, x1) - IIf(Day(x0) > Day(x1), 1, 0) c01 = x2 \ 12 c02 = x2 Mod 12 c03 = Day(x1) - Day(x0) + IIf(Day(x1) >= Day(x0), 0, Day(CDate(x1) - Day(x1))) snb = c01 & " year" & IIf(c01 = 1, ", ", "s, ") & c02 & " month" & IIf(c02 = 1, ", ", "s, ") & c03 & " day" & IIf(c03 = 1, "", "s") End Function




Reply With Quote
When I quickly scanned the output list, the 4-day gap caught my eye and I didn't pay attention to the February/March switch-over. I am going to blame my confusion on not enough sleep and nowhere near enough coffee to compensate.
Thanks for following up with this. Much appreciated.

Bookmarks