答案 0 :(得分:1)
答案 1 :(得分:0)
一口气就是:
=ARRAYFORMULA(TEXT(FILTER(TO_DATE(ROW(
INDIRECT("A"&DATE(2019, 1, 1)):
INDIRECT("B"&EOMONTH(DATE(2019, 1, 1), 0)))), TEXT(TO_DATE(ROW(
INDIRECT("A"&DATE(2019, 1, 1)):
INDIRECT("B"&EOMONTH(DATE(2019, 1, 1), 0)))), "ddd")<>"sat", TEXT(TO_DATE(ROW(
INDIRECT("A"&DATE(2019, 1, 1)):
INDIRECT("B"&EOMONTH(DATE(2019, 1, 1), 0)))), "ddd")<>"sun"), "dd-mmm-yyyy"))
或更短:
=ARRAYFORMULA(TEXT(FILTER(TO_DATE(ROW(
INDIRECT("A"& DATE(2019, 1, 1)):
INDIRECT("B"&EOMONTH(DATE(2019, 1, 1), 0)))), REGEXREPLACE(TEXT(TO_DATE(ROW(
INDIRECT("A"& DATE(2019, 1, 1)):
INDIRECT("B"&EOMONTH(DATE(2019, 1, 1), 0)))), "ddd"),"Sat|Sun","♠")<>"♠"), "dd-mmm-yyyy"))