Converting calendar dates to Chinese lunar dates in Google Sheets
Asked Answered
M

1

1

I'm trying to convert calendar dates to Chinese lunar dates in google sheets. But I have difficulties. It is easy to do in excel by using formula:

    `=TEXT(A2; "[$-130000]dd.mm.yy")`

Screen from excel

But it doesn't work in google sheets. So, how to convert calendar dates to Chinese lunar dates in google sheets?

Mccomas answered 1/7, 2022 at 10:48 Comment(2)
see if it helps: docs.google.com/spreadsheets/d/…Morpheus
looks like its a paid job: upwork.com/freelance-jobs/apply/…Morpheus
M
2

try:

=TEXT((REGEXEXTRACT(IMPORTXML(
 "http://en.nongli.info/convert/index.php?c=solar&year="&YEAR(A1)&"&month="&MONTH(A1)&"&date="&DAY(A1), 
 "//td[@colspan='2']"), "(.+\d+)")&" "&YEAR(A1))*1, "dd.mm.yy")

enter image description here

demo spreadsheet

Morpheus answered 2/7, 2022 at 1:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.