ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   day/month/year in incorrect format for date format (https://www.excelbanter.com/excel-worksheet-functions/40679-day-month-year-incorrect-format-date-format.html)

M&A_Jack

day/month/year in incorrect format for date format
 
I have a date format written as "31/1/2005", when I concatenate after I've
separated text to columns I can't change format to 31-Jan-2005.

Peo Sjoblom

Format as date and add -- in front of "31/1/2005" however if you have US
regional settings you will always get text since there is no month 23 in
that case you need to change the concatenate formula or the regional
settings

--
Regards,

Peo Sjoblom

(No private emails please)


"M&A_Jack" wrote in message
...
I have a date format written as "31/1/2005", when I concatenate after I've
separated text to columns I can't change format to 31-Jan-2005.



Gary

Suppose your 3 cells were A1, A2 & A3.
Use
=datevalue(concatenate(A1 & "/" & A2 & "/" & A3))
This turns the text into a date number. It can then be changed with Format -
Cell -Date and the date system you want to use.

Hope this helps

"M&A_Jack" wrote:

I have a date format written as "31/1/2005", when I concatenate after I've
separated text to columns I can't change format to 31-Jan-2005.



All times are GMT +1. The time now is 09:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com