Originally Posted by
Ken Johnson
Hi Craig,
Firstly, I have noticed a problem with dates. Excel always interprets
the cell input 12/12/06 to mean "December 12, 2006". By that I mean
Excel will always take the first part to be the month, second part the
day and last part the year. You can format the cells to DISPLAY the
date in a different order, however, that format does not affect the
required order when the date is typed into the cell. So, if the cell is
formatted as Date and Locale (location): = "English (Australia)" (I
live in Sydney Australia, where we put the day before the month) and if
I type 6/12/06, thinking it means December 6 2006, Excel still
interprets this to be June 12 2006 and the cell will display 12/06/06.
How's that for confusing!
Also, when you enter 15/12/06 you are obviously meaning the December 15
2006, but Excel couldn't give a damn and refuses to convert it to a
date and treats it as text, so it ends up aligned on the left side of
the cell like all other text inputs.
The simplest solution to this day/month confusion is to format all
cells with dates using one of the unambiguous options such as
14-Mar-06, which you should see in the list of date format types when
you go Format|Cells|Number tab|Date.
Try this formula in AX2, filled down as far as required...
=IF(UPPER(AJ2)="N/A",AV2,IF(UPPER(AV2)="N/A",AJ2,IF(ISNUMBER(AV2),MAX(AJ2,AV2),"")))
I've used the UPPER function so that you don't have to worry about case
sensitivity with the "N/A" inputs, you will get the same result with
"N/A", "n/a", "n/A" and "N/a"
Give it a thorough testing and let me know how it goes.
Ken Johnson
Bookmarks