search
HomeSoftware TutorialOffice SoftwareHow to convert Gregorian calendar date to lunar calendar in Excel

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!

Statement
This article is reproduced at:zol. If there is any infringement, please contact admin@php.cn delete
How to Use AI Function in Google SheetsHow to Use AI Function in Google SheetsMay 03, 2025 am 06:01 AM

Google Sheets' AI Function: A Powerful New Tool for Data Analysis Google Sheets now boasts a built-in AI function, powered by Gemini, eliminating the need for add-ons to leverage the power of language models directly within your spreadsheets. This f

Excel CONCATENATE function to combine strings, cells, columnsExcel CONCATENATE function to combine strings, cells, columnsApr 30, 2025 am 10:23 AM

This article explores various methods for combining text strings, numbers, and dates in Excel using the CONCATENATE function and the "&" operator. We'll cover formulas for joining individual cells, columns, and ranges, offering solutio

Merge and combine cells in Excel without losing dataMerge and combine cells in Excel without losing dataApr 30, 2025 am 09:43 AM

This tutorial explores various methods for efficiently merging cells in Excel, focusing on techniques to retain data when combining cells in Excel 365, 2021, 2019, 2016, 2013, 2010, and earlier versions. Often, Excel users need to consolidate two or

Excel: Compare two columns for matches and differencesExcel: Compare two columns for matches and differencesApr 30, 2025 am 09:22 AM

This tutorial explores various methods for comparing two or more columns in Excel to identify matches and differences. We'll cover row-by-row comparisons, comparing multiple columns for row matches, finding matches and differences across lists, high

Rounding in Excel: ROUND, ROUNDUP, ROUNDDOWN, FLOOR, CEILING functionsRounding in Excel: ROUND, ROUNDUP, ROUNDDOWN, FLOOR, CEILING functionsApr 30, 2025 am 09:18 AM

This tutorial explores Excel's rounding functions: ROUND, ROUNDUP, ROUNDDOWN, FLOOR, CEILING, MROUND, and others. It demonstrates how to round decimal numbers to integers or a specific number of decimal places, extract fractional parts, round to the

Consolidate in Excel: Merge multiple sheets into oneConsolidate in Excel: Merge multiple sheets into oneApr 29, 2025 am 10:04 AM

This tutorial explores various methods for combining Excel sheets, catering to different needs: consolidating data, merging sheets via data copying, or merging spreadsheets based on key columns. Many Excel users face the challenge of merging multipl

Calculate moving average in Excel: formulas and chartsCalculate moving average in Excel: formulas and chartsApr 29, 2025 am 09:47 AM

This tutorial shows you how to quickly calculate simple moving averages in Excel, using functions to determine moving averages over the last N days, weeks, months, or years, and how to add a moving average trendline to your charts. Previous articles

How to calculate average in Excel: formula examplesHow to calculate average in Excel: formula examplesApr 29, 2025 am 09:38 AM

This tutorial demonstrates various methods for calculating averages in Excel, including formula-based and formula-free approaches, with options for rounding results. Microsoft Excel offers several functions for averaging numerical data, and this gui

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment