Show dates as days of the week

Let's say you want to see the date displayed for a date value in a cell as "Monday" instead of the actual date of "October 3, 2005." There are several ways to show dates as days of the week.

What do you want to do?


Format cells to show dates as the day of the week

  1. Select the cells that contain dates that you want to show as the days of the week.
  2. On the Home tab, in the Number group, click the arrow, click More Number Formats, and then click the Number tab.
  3. Under Category, click Custom, and in the Type box, type dddd for the full name of the day of the week (Monday, Tuesday, and so on), or ddd for the abbreviated name of the day of the week (Mon, Tue, Wed, and so on).

Top of Page Top of Page

Convert dates to the text for the day of the week

To do this task, use the TEXT function.

Example

The example may be easier to understand if you copy it to a blank worksheet.

ShowHow to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

     Note   Do not select the row or column headers.

Selecting an example from Help

Selecting an example from Help
  1. Press CTRL+C.
  2. In the worksheet, select cell A1, and press CTRL+V.

    To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
 
1
2
3
A
Date
19-Feb-2010
3-Jan-2010
Formula Description (Result)
=TEXT(A2, "dddd") Calculates the day of the week for the date and returns the full name of the day of the week (Friday)
=TEXT(A3, "ddd") Calculates the day of the week for the date and returns the abbreviated name of the day of the week (Sun)

Function details

The TEXT function requires two arguments:

value    A value or formula that evaluates to a numeric value, or a reference to a cell containing a numeric value.

format_text    A numeric format as a text string enclosed in quotation marks; for example, “m/dd/yyyy” or “#,###0.00” or “dddd”.

Top of Page Top of Page

 
 
Quyidagiga qo'llanadi: