Share via

Error in DATAVALUE

Anonymous
2023-11-15T08:16:42+00:00

I have an issue with date format in excel. I have a date text in the format "MM/DD/YYYY". When I try DATAVALUE function on this to convert it to date format it is giving "#VALUE error. Date format in my system in DD-MM-YYYY and I use Windows 11. How to fix this conversion error?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Rory Archibald 18,965 Reputation points Volunteer Moderator
    2023-11-15T09:18:40+00:00

    You can use a formula like:

    =DATE(RIGHT(A1,4),LEFT(A1,2),MID(A1,4,2))

    or use the Text To Columns function.

    Was this answer helpful?

    0 comments No comments
  2. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2023-11-15T08:28:11+00:00

    You can't. All text conversation functions in Excel depends on the system settings.

    If you import data, use Power Query. In there you can change the locale and so import any date format you want.

    Power Query - How to import a CSV file that does not match your locale - Microsoft Community

    Andreas.

    Was this answer helpful?

    0 comments No comments