Steve,
The formatting has nothing to do with the value of the cell (10 in this
case). Changing formats of numbers such as dates, or times, or percents, to
their more readable and user-friendly formats does not alter their values.
Not to beat a dead horse, that's why the formula suggested is required.
I have found the distinction between formatted value amd true value to be
key when using autofilters to filter a range of dates in a column. The
criteria has to be in terms of the serial number of the date (e.g., May 31,
2005 = 38503) and then autofilter can work with it. But ironically if you
check back to see what filter criteria are operative by using autofilter
menu item again, the criteria look like DATES!
Not to totally co-opt this thread but is there a reasonable explanation for
why excel assumes that result of adding or subtracting two dates should be
displayed as a date, instead of a whole number?
e.g. A1 holds the date 5/31/2005 and looks like the date
B1 holds the date 5/30/2005 and looks like the date
C1 has the formula "=A1 - B1"
Then C1 will have a value = 1 but be formatted as "1/1/1900"
Bill