How do I get next Thursday from a random date?

前端 未结 3 1426
一整个雨季
一整个雨季 2021-01-13 08:45

What I want to do is so you have a list of random dates, it will never be the same so it has to be a universal formula, but you get any date, any date of the year and then e

3条回答
  •  感动是毒
    2021-01-13 09:11

    =IF(WEEKDAY(A1) < 5, A1+5-WEEKDAY(A1), A1+5+7-WEEKDAY(A1))
    

    Will give you the next Thursday from the date given in Cell A1 in Excel. If the input date is a Thursday, it will give the next Thursday.

    Use <= in the conditional if you want to display the input Thursday when given a Thursday, rather than displaying the next Thursday.

提交回复
热议问题