如果日期字段为空 return 为空,但如果它有日期 return 星期几
If date field is blank return blank but if it has a date return the day in week
我正在使用这个公式,它 return 是基于单元格中的日期的正确星期几 A2:A
=ArrayFormula(switch(WEEKDAY(A3),"","",1,"星期日",2,"星期一",3,"星期二",4,"星期三",5, "星期四" ,6,"星期五",7,"星期六"))
我还需要它包括如果单元格 A3 为空白“”则 return 空白“”。
我认为这部分,"","" 会按照我的要求进行,但是 return 如果我不包括这部分,结果完全相同!
如何在此处包含 isblank 公式?
这里有一个例子 sheet:
https://docs.google.com/spreadsheets/d/15_PYwwUR6K9s3Jl6eEoH06E_S_8H21HZJFbkqP-HPVY/edit?usp=sharing
解决了:)
=IF(P3="","",(switch(WEEKDAY(P3),1,"Sunday",2,"Monday",3,"Tuesday",4,"Wednesday",5, "Thursday",6,"Friday",7,"Saturday")))
我正在使用这个公式,它 return 是基于单元格中的日期的正确星期几 A2:A
=ArrayFormula(switch(WEEKDAY(A3),"","",1,"星期日",2,"星期一",3,"星期二",4,"星期三",5, "星期四" ,6,"星期五",7,"星期六"))
我还需要它包括如果单元格 A3 为空白“”则 return 空白“”。
我认为这部分,"","" 会按照我的要求进行,但是 return 如果我不包括这部分,结果完全相同!
如何在此处包含 isblank 公式?
这里有一个例子 sheet: https://docs.google.com/spreadsheets/d/15_PYwwUR6K9s3Jl6eEoH06E_S_8H21HZJFbkqP-HPVY/edit?usp=sharing
解决了:)
=IF(P3="","",(switch(WEEKDAY(P3),1,"Sunday",2,"Monday",3,"Tuesday",4,"Wednesday",5, "Thursday",6,"Friday",7,"Saturday")))