简体   繁体   English

过滤日期

[英]Filtering on date

I input work startdate in A Section (like 20-10-2016 ), then I input expected end date in B Section (like 0-10-2016 ), and in C Section I would like for an automatic text to show depending on whether the date in A Section isn't here yet ("not started"), and if date in A Section has passed, and we're in the middle of the date-span in A Section and B Section (like, for the example above, 25-10-2016 ), have C Section say ("in progress"), and if date in B Section has passed, have C Section say ("job finished"). 我在A部分输入工作开始日期(如20-10-2016 ),然后我在B部分输入预期结束日期(如0-10-2016 ),在C部分我希望根据是否显示自动文本A Section中的日期尚未在此处(“未开始”),如果A Section中的日期已经过去,并且我们处于A Section和B Section中的日期跨度的中间(例如,对于该示例上面, 25-10-2016 ),有C部分说(“进行中”),如果B部分的日期已经过去,有C部分说(“工作完成”)。

How I can make this happen in Google Sheets? 我如何才能在Google表格中实现这一目标?

There is a TODAY() function which tells you the current day. 有一个TODAY()函数告诉你当天。 With a few IF statements you can display the text you want based on whether the current date is before the start date or after the end date. 使用一些IF语句,您可以根据当前日期是在开始日期之前还是在结束日期之后显示所需的文本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM