Hi,
I need some help with Pre and post year 1900 dates in Excel
The Date field is formatted to dd/mm/yyyy
For <1900 dates
I found this if Statement =IF(RIGHT(P16,4)>1900,RIGHT(P16,4),CONCATENATE(YEAR(P16)))
It returns the correct yyyy result in cells Q from the date in Column P
Strangely the If Statement uses >1900 and correctly returns all <1900 years, I am not sure why this is.
Now there are some date years that are >=1900
This if Statement works well, =IF(RIGHT(P17,4)<1900,RIGHT(P17,4),CONCATENATE(YEAR(P17)))
Strangely the If Statement uses <1900 and correctly returns all >1900 years, I am not sure why this is.
This does through up one strange result
If the cell is "Blank" it returns "1900" can this be corrected in the formula to return "Blank"
As I have various dates that contain years pre and post 1900, I would like to combine the two if statements so it giveS a result for all Pre and Post 1900 Years.
Can anyone help me with this If Statement?
Or is there a better way of doing this?
Thanks for everyone's help
I need some help with Pre and post year 1900 dates in Excel
The Date field is formatted to dd/mm/yyyy
For <1900 dates
I found this if Statement =IF(RIGHT(P16,4)>1900,RIGHT(P16,4),CONCATENATE(YEAR(P16)))
It returns the correct yyyy result in cells Q from the date in Column P
Strangely the If Statement uses >1900 and correctly returns all <1900 years, I am not sure why this is.
Now there are some date years that are >=1900
This if Statement works well, =IF(RIGHT(P17,4)<1900,RIGHT(P17,4),CONCATENATE(YEAR(P17)))
Strangely the If Statement uses <1900 and correctly returns all >1900 years, I am not sure why this is.
This does through up one strange result
If the cell is "Blank" it returns "1900" can this be corrected in the formula to return "Blank"
As I have various dates that contain years pre and post 1900, I would like to combine the two if statements so it giveS a result for all Pre and Post 1900 Years.
Can anyone help me with this If Statement?
Or is there a better way of doing this?
Thanks for everyone's help