Formatting dates

raybus

New Member
Joined
Jan 5, 2022
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
I am trying to format this date "January 4, 2021 11:30 am" so I can formulate the day of the week "Mon" but excel is not recognizing the format can you please assist
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What does "excel is not recognizing the format" mean? What actually happens?

The cell should have 1/4/2021 11:30 AM as the time/date value shown in the formula box (or 4/1/2021 for non-US). When I put "January 4, 2021 11:30 am" into a cell that is what I get. Then you can format any way you want such as custom format "Ddd".

From your description it is unclear if you have a problem with your data, or if you are asking how to format a date as day-of-week.
 
Upvote 0
Hi Raybus,

How Excel interprets dates depends on your region and the format of the date, text or number.

If you need to convert it for some reason you can try one of these:

Raybus.xlsx
ABC
1DateDay of Week
21/4/2021 11:30Mon
31/4/2021 11:30Mon
4January 4, 2021 11:30 amMon
5January 4, 2021 11:30 amMon
Sheet1
Cell Formulas
RangeFormula
C2C2=TEXT(A2,"ddd")
C3C3=TEXT(VALUE(A3),"ddd")
C4C4=TEXT(DATEVALUE(A4),"ddd")
C5C5=TEXT(DATE(MID(A5,SEARCH(" ",A5,SEARCH(" ",A5)+1)+1,4),MATCH(LEFT(A5,3),{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"},0),SUBSTITUTE(MID(A5,SEARCH(" ",A5)+1,2),",","")),"ddd")
 
Upvote 0
What does "excel is not recognizing the format" mean? What actually happens?

The cell should have 1/4/2021 11:30 AM as the time/date value shown in the formula box (or 4/1/2021 for non-US). When I put "January 4, 2021 11:30 am" into a cell that is what I get. Then you can format any way you want such as custom format "Ddd".

From your description it is unclear if you have a problem with your data, or if you are asking how to format a date as day-of-week.
My apologies for not being clear enough yes i am asking how to format a date as a day of the week

thanks for your quick response
 
Upvote 0
To format a date as day-of-week use Custom format "Ddd"
 
Upvote 0
Note that if you apply a format any date/time, it only changes the display value, not the actual underlying values used in calculations.

So, even if you format the cell as "ddd" to show "Mon", any calculations referencing the cell will still see the date/time, and not "Mon".

Just something you want to be aware of.
 
Upvote 0

Forum statistics

Threads
1,215,565
Messages
6,125,583
Members
449,237
Latest member
Chase S

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