使用查詢函數查詢上表獲得星座信息,公式如下:
= iforror(VLOOKUP(VALUE(MID(D2,7,8)," 0000-00-00 "))-DATE(YEAR(VALUE(TEXT(MID(D2,7,8)," 0000-00-00 ")),1,1),A:B,2),"")