我正在创建带有数据表的日常货运计划员。数据表是可编辑的,并提供了受保护且无法编辑的“日历页面”的信息。
这是日历表的示例:
Monday Tuesday
8/19/2019 8/20/2019
Deana's 1535 Modern Day 4227
Acer 5 1631 Metal Works 2001
Scottie 2255 Pros Unlimited 2740
All Test Systems 2166
Southwest Air 1676
这些是我使用的公式
=TEXT(B2,"dddd")
=TODAY()
=IF(ISBLANK(Data!$A$3), "", Data!$A$3) =IF(ISBLANK(Data!$C3), "", Data!$C3)
=IF(ISBLANK(Data!$A$4), "", Data!$A$4) =IF(ISBLANK(Data!$C4), "", Data!$C4)
=IF(ISBLANK(Data!$A$5), "", Data!$A$5) =IF(ISBLANK(Data!$C5), "", Data!$C5)
=IF(ISBLANK(Data!$A6), "", Data!$A6) =IF(ISBLANK(Data!$C6), "", Data!$C6)
=IF(ISBLANK(Data!$A7), "", Data!$A7) =IF(ISBLANK(Data!$C7), "", Data!$C7)
=IF(ISBLANK(Data!$A8), "", Data!$A8) =IF(ISBLANK(Data!$C8), "", Data!$C8)
=IF(ISBLANK(Data!$A9), "", Data!$A9) =IF(ISBLANK(Data!$C9), "", Data!$C9)
=IF(ISBLANK(Data!$A10), "", Data!$A10) =IF(ISBLANK(Data!$C10), "", Data!$C10)
=IF(ISBLANK(Data!$A11), "", Data!$A11) =IF(ISBLANK(Data!$C11), "", Data!$C11)
=IF(ISBLANK(Data!$A12), "", Data!$A12) =IF(ISBLANK(Data!$C12), "", Data!$C12)
=TEXT(F2,"dddd")
=WORKDAY(TODAY()+1,0)
=IF(ISBLANK(Data!$A14), "", Data!$A14) =IF(ISBLANK(Data!$C14), "", Data!$C14)
=IF(ISBLANK(Data!$A15), "", Data!$A15) =IF(ISBLANK(Data!$C15), "", Data!$C15)
=IF(ISBLANK(Data!$A16), "", Data!$A16) =IF(ISBLANK(Data!$C16), "", Data!$C16)
=IF(ISBLANK(Data!$A17), "", Data!$A17) =IF(ISBLANK(Data!$C17), "", Data!$C17)
=IF(ISBLANK(Data!$A18), "", Data!$A18) =IF(ISBLANK(Data!$C18), "", Data!$C18)
=IF(ISBLANK(Data!$A19), "", Data!$A19) =IF(ISBLANK(Data!$C19), "", Data!$C19)
=IF(ISBLANK(Data!$A20), "", Data!$A20) =IF(ISBLANK(Data!$C20), "", Data!$C20)
=IF(ISBLANK(Data!$A21), "", Data!$A21) =IF(ISBLANK(Data!$C21), "", Data!$C21)
=IF(ISBLANK(Data!$A22), "", Data!$A223) =IF(ISBLANK(Data!$C22), "", Data!$C22)
=IF(ISBLANK(Data!$A23), "", Data!$A23) =IF(ISBLANK(Data!$C23), "", Data!$C23)
这是数据表
Customer Order # Weight City & State
Monday, August 19, 2019
Deana's P59043 1,535 Jamestown
Acer 5 P54905 1,631 Greensburg
Scottie P57303 2,255 Temple
Tuesday, August 20, 2019
Modern Day P59157 4,227 Johnstown
Metal Works P54306 2,001 Harrisonburg
Pros Unlimited P56992 2,740 Oakland
All Systems P57001 2,166 Mansfield
Southwest Air P56905 1,676 Cuddy
我想删除前一天(星期一)的数据行,并在该日历单元格中列出成为新“ A2”(星期二)的数据。每天都会这样做,因为出货量很大,所以我不再需要看到那一天。
答案 0 :(得分:0)
此公式可能对您有用:
=INDEX(Data!A:A,MATCH(TEXT(TODAY(),"dddd, mmmm dd, yyyy"),Data!A:A,0)+1,)
替换任何这些公式
=IF(ISBLANK(Data!$A$3), "", Data!$A$3)
我已经从上一个答案中更改了此公式,因为我意识到添加带双重计算的if / isblank语句以滤除空格会使它变得冗长而令人困惑,您以后可以根据需要在自己中添加它。它的作用如下:
故障:
=INDEX(Data!A:A,MATCH(TEXT(TODAY(),"dddd, mmmm dd, yyyy"),Data!A:A,0)+1,)
Text(today()位获取今天的日期,并将其转换为“ 2019年8月22日,星期三”格式。 “匹配”位在数据表中找到一个与此新生成的格式化日期匹配的内容,并返回地址。索引位使用match返回的地址,而+1位则从低一行返回一个值。每增加一个数字,它就会从较低的一行中获得成功。
接下来的几天中,您将使用:
=INDEX(Data!A:A,MATCH(TEXT(WORKDAY(TODAY(),1),"dddd, mmmm dd, yyyy"),Data!A:A,0)+1,)
添加的Workday(Today(),1)位将一个工作日添加到您的公式中,以说明周末为空。增加1,我将在以后的工作日给您。
我希望它对您来说更全面,并且可以满足您的需求。