Same occasions require to divide the elements of a date: days, months and years. It is possible to do manually, however this path may be slow and inefficient. The objective of this tutorial is to demonstrate a professional method.
Firstly, it will be presented in 3 parts that represent 3 forms of parsing a date: as number, as text and text to number.
PART 1 – AS A NUMBER
The date will be converted to the corresponding number of the element. For example, February would become 2 and December would be 12.
Use the functions bellow, considering that the argument will be the cell with the date to be splitted.
In the case bellow, the function will be applied on the Column C, using as references, the dates on Column B, matching the formula with the corresponding component.
If there are several dates, it is necessary to set the formulas once. After the first time is done, you can enter the other dates in the next cells, on the same row, and drag the formulas to the right.
PART 2 – AS A TEXT
Here, the goal is to extract the date´s component as a text. The function converts the date into a text in a specific number format settled within the formula.
In this case the function is the same for all elements: days, months or years.
The table below offers a support to structure the format of the text. For example, if the objective is to return the whole word, put “DDDD” for days or “MMMM” for months. There are only the 3 possibilities then: the number, the first 3 letters of the word or the whole word.
Now, observe the procedure that result part of the word.
In case of several dates, repeat the procedure of enter the others on the next cells and drag the formulas to the right.
PART 3 – TEXT TO A NUMBER
Firstly, it is important to be aware that dates are numbers to Excel. The primordial date is 1st of January 1900. Every day is the increment by one. For example: 19 th of April 2019 converted to number is 43574, which is the amount of days summed to the day 1.
Secondly, this function only works with text. Dates customized in any format such as: “March, 14, 2018”, will deliver “#Value”: the message of error.
To achieve an efficient result, structure a vertical list with the dates text
Select the range beside, in this case it is D15:D18.
In cell D15, enter the formula, using C15, which is first cell with date text as argument.
Apply the short cut to settle the formulas in the whole list, once. Notice that in some keyboard “Return” is “Enter”
To format the number as date, the most efficient path is to use other shortcut:
The final table:
Thanks for your attention!
Count Words: 488
# of Steps: 11