Convert date to weekday name

smide

Board Regular
Joined
Dec 20, 2015
Messages
164
Office Version
  1. 2016
Platform
  1. Windows
Hello.


In column A (A1:A600) I have dates and time in format dd.mm.yyyy - hh:mm (ex. 04.10.2019 - 20:00 , there is one space between dd.mm.yyyy and '-' and one space between '-' and hh:mm). All those cells in column A are text cells.

I need formula to convert those "dates" into weekday name. Coverted results should be in column B (B1:B600).




example.


[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]04.10.2019 - 20:00[/TD]
[TD="align: center"]Fri[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]04.10.2019 - 22:30[/TD]
[TD="align: center"]Fri[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]05.10.2019 - 16:00[/TD]
[TD="align: center"]Sat[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]06.10.2019 - 12:45[/TD]
[TD="align: center"]Sun[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]
07.10.2019 - 18:00​
[/TD]
[TD="align: center"]Mon[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]....[/TD]
[TD="align: center"]....[/TD]
[/TR]
</tbody>[/TABLE]

 
Last edited:

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
When I use your formula on 04.10.2019 - 20:00 instead of 'Fri' I got 'Wed'... :confused:
 
Upvote 0
Your local settings are MM/DD/YYYY? You should have said seen as your data is DD/MM/YYYY
 
Upvote 0
Try this:

=TEXT(DATE(MID(A1,7,4),MID(A1,4,2),LEFT(A1,2)),"ddd")
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top