Comparing computed dates with entered dates

后端 未结 2 1118
小蘑菇
小蘑菇 2021-01-28 15:48

I have in cell p4 the date: 2014-01-01 (obtained via formula (=(((O5/1000/60)/60)/24)+DATE(1970,1,1)))

I have in cell b5 the date: 2014-0

相关标签:
2条回答
  • 2021-01-28 16:26
    • Select the two date cells.
    • Press CTRL+1 to show the format tab
    • On the Number tab, in the Format list, click Text

    Perhaps there is a more appropriate comparison format, when you have dates in the format YYYY-MM-DD I think this one will work).

    0 讨论(0)
  • 2021-01-28 16:51

    You should be safe with chopping the parts up and reassembling them:

    =DATE(YEAR(P4),MONTH(P4),DAY(P4))=DATE(YEAR(B5),MONTH(B5),DAY(B5))
    
    0 讨论(0)
提交回复
热议问题