[Knowledge Rabbit] Excel tutorial time or date conversion skills, necessary for office, save for future use

Time and date can be converted in Excel. For example, a specified date corresponds to a week. As long as we master the conversion skills, we can easily complete the line.


1. Convert the date to Chinese week.

Function: T ext.

Function: Convert numeric values ​​to text according to the specified number format.

Grammatical structure: =Text(value, format code).

Purpose: Convert the date "June 14, 2022" to its corresponding Chinese week.

Method: 558 lessons! Office essentials! The whole process of excellent courses for Excel Xiaobai to transform into a master - Knowledge Rabbit

Enter the formula in the destination cell: =TEXT(B3,"aaaa").


2. Convert the date to English week.

Function: Text.

Purpose: Convert the date "June 14, 2022" to its corresponding English week.

Method: 558 lessons! Office essentials! The whole process of excellent courses for Excel Xiaobai to transform into a master - Knowledge Rabbit

Enter the formula in the destination cell: =TEXT(B4,"dddd").


3. Find the week corresponding to the specified date.

Function: Weeknum.

Function: Returns the week of the year.

Syntax structure: =Weeknum(value, calculation type).

Purpose: Return the week corresponding to "June 14, 2022".

Method: 558 lessons! Office essentials! The whole process of excellent courses for Excel Xiaobai to transform into a master - Knowledge Rabbit

Enter the formula in the destination cell: =WEEKNUM(B5,2).

Interpretation:

The start day of the week represented by code 2 is calculated from Monday. In addition to other code meanings, you can choose to use them according to the association function of the system.


Fourth, calculate the countdown.

Function: Date.

Function: Return the number representing the date in the datetime code.

Grammatical structure: =Date(year, month, day).

Purpose: Calculate the number of days from the current date to New Year's Day.

Method: 558 lessons! Office essentials! The whole process of excellent courses for Excel Xiaobai to transform into a master - Knowledge Rabbit

Enter the formula in the destination cell: =DATE(YEAR(B6)+1,1,1)-TODAY().

Interpretation:

Use the Year function to get the year in the current date, +1 to get the year of New Year's Day; then subtract the current date to get the number of days from New Year's Day.


5. Convert the specified duration into hours.

method:

Enter the formula in the target cell: =B7*24.


6. Convert the specified duration into minutes.

method:

Enter the formula in the destination cell: =B8*24*60.


7. Convert the specified duration into seconds.

method:

Enter the formula in the destination cell: =B9*24*60*60.

 

Guess you like

Origin blog.csdn.net/zhishitu0/article/details/125327019