How to convert Gregorian calendar date to lunar calendar in Excel

王林
Release: 2024-04-17 15:19:17
forward
467 people have browsed it

Some friends encountered the problem of converting Gregorian calendar dates to lunar calendar dates when using Excel. PHP editor Banana will introduce how to solve this problem. The following content will introduce the operation method in detail to help you easily convert the Gregorian calendar to the lunar calendar.

Take the following table as an example. The left side is the Gregorian calendar and the right side is the lunar calendar. Fill in the function formula in the lunar calendar cell. =TEXT(A2,"[$-130000]yyyy-m-d")

How to convert Gregorian calendar date to lunar calendar in Excel

where A2 represents the Gregorian calendar cell to be converted, yyyy-m-d represents the format of the converted date, and [$ -130000] is the key to the lunar calendar conversion. Finally press Enter and fill it in.

How to convert Gregorian calendar date to lunar calendar in Excel

If you think the format of this lunar calendar is not good-looking and does not have the characteristics of traditional Chinese display, then the formula can be changed: =TEXT(A2,"[$-130000]yyyyyear m Month"&IF(LEN(--TEXT(A2,"[$-130000]dd"))=1,"Initial","")&"d"). Then press Enter to fill in the same way. In this way, the day of the month can be displayed.

How to convert Gregorian calendar date to lunar calendar in Excel

The above is the detailed content of How to convert Gregorian calendar date to lunar calendar in Excel. For more information, please follow other related articles on the PHP Chinese website!

source:zol.com.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!