Excel DATEVALUE function independent of international settings

后端 未结 2 1131
我寻月下人不归
我寻月下人不归 2021-01-15 03:52

In my Excel workbook, I copy some date information from another (text) source. To be able to do calculations with these dates, I use the function \"DATEVALUE\".

Exam

2条回答
  •  旧巷少年郎
    2021-01-15 04:13

    You can try this formula:

    =DATE(RIGHT(A1;4);MATCH(MID(A1;4;3);{"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec"};0);LEFT(A1;2))
    

    Date admits arguments always in the order year, month, day

    I admit that day values are always 2 digits.

    If you dont mind to write the months abrev. in a range then you can get a much more shorter formula.

    Depending on your regional settings you may need to replace field separator ";" by ","

提交回复
热议问题