简体   繁体   English

如何从多个单元格获取今天日期的数据?

[英]How to get the data for today's date from multiple cells?

I would like to get the data (profit) every day for the actual day displayed so I can paste it into a daily report. 我想获取显示的实际日期的每一天的数据(利润),以便将其粘贴到每日报告中。 I figured I would create a cell with todays date (=TODAY) and then use some kind of IF function, but not sure how. 我以为我会用今天的日期(= TODAY)创建一个单元格,然后使用某种IF函数,但不确定如何使用。

在此处输入图片说明

Assuming column A contains dates, formatted as "dd/mm", then to get the "Start" value you could use: 假设列A包含日期,格式为“ dd / mm”,则可以使用“开始”值:

=VLOOKUP(TODAY(),A:N,2,FALSE)

Similarly, the "Finish" value would be: 同样,“完成”值将为:

=VLOOKUP(TODAY(),A:N,3,FALSE)

And "Profit" would be: 而“利润”将是:

=VLOOKUP(TODAY(),A:N,4,FALSE)

or 要么

=VLOOKUP(TODAY(),A:N,14,FALSE)

(depending on whether you want the "Profit" from column D or column N) (取决于您是要从D列还是N列获取“利润”)

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

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