曜日ごとに1つずつ、合計7つのスプレッドシートがあります。私はそれぞれにその週の日付を表示させようとしています。たとえば、今週の月曜日には7/16/2018が表示され、火曜日のスプレッドシートには7/17/2018が表示されます。月曜日であっても、火曜日のスプレッドシートを開いて、次の火曜日の日付を表示することができます。私はさまざまな式をいじくり回してきましたが、理解できません。
月曜日のシート:
=WORKDAY.INTL(TODAY()-1,1,"0111111")
文字列方法:7つの0と1を使用して週末を指定できます。セットの最初の数字は月曜日を表し、最後の数字は日曜日を表します。ゼロはその日が就業日であることを意味し、1はその日が週末であることを意味します。たとえば、「0000011」は土曜日と日曜日が週末であることを意味します。
=DATE(2018;7;16)
// =DATE(2018,7,16)
='sheet Monday'!A1+1
='sheet Monday'!A1+2
='sheet Monday'!A1+3
より複雑なもの(自動更新など)が必要な場合は、古い純粋なブルートフォースを使用できます。
ヨーロッパの構文-sheet Monday> A1:
=IF(AND(DAYS360("1.1.2018";TODAY())>=195;DAYS360("1.1.2018";TODAY())<202);"16.07.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=202;DAYS360("1.1.2018";TODAY())<209);"23.07.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=209;DAYS360("1.1.2018";TODAY())<216);"30.07.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=216;DAYS360("1.1.2018";TODAY())<223);"06.08.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=223;DAYS360("1.1.2018";TODAY())<230);"13.08.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=230;DAYS360("1.1.2018";TODAY())<237);"20.08.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=237;DAYS360("1.1.2018";TODAY())<244);"27.08.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=244;DAYS360("1.1.2018";TODAY())<251);"03.09.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=251;DAYS360("1.1.2018";TODAY())<258);"10.09.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=258;DAYS360("1.1.2018";TODAY())<265);"17.09.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=265;DAYS360("1.1.2018";TODAY())<272);"24.09.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=272;DAYS360("1.1.2018";TODAY())<279);"01.10.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=279;DAYS360("1.1.2018";TODAY())<286);"08.10.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=286;DAYS360("1.1.2018";TODAY())<293);"15.10.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=293;DAYS360("1.1.2018";TODAY())<300);"22.10.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=300;DAYS360("1.1.2018";TODAY())<307);"29.10.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=307;DAYS360("1.1.2018";TODAY())<314);"05.11.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=314;DAYS360("1.1.2018";TODAY())<321);"12.11.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=321;DAYS360("1.1.2018";TODAY())<328);"19.11.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=328;DAYS360("1.1.2018";TODAY())<335);"26.11.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=335;DAYS360("1.1.2018";TODAY())<342);"03.12.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=342;DAYS360("1.1.2018";TODAY())<349);"10.12.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=349;DAYS360("1.1.2018";TODAY())<356);"17.12.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=356;DAYS360("1.1.2018";TODAY())<363);"24.12.2018";
IF(AND(DAYS360("1.1.2018";TODAY())>=363;DAYS360("1.1.2018";TODAY())<370);"31.12.2018"
)))))))))))))))))))))))))
アメリカの構文-sheet Monday> A1:
=IF(AND(DAYS360("1/1/2018",TODAY())>=195,DAYS360("1/1/2018",TODAY())<202),"7/16/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=202,DAYS360("1/1/2018",TODAY())<209),"7/23/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=209,DAYS360("1/1/2018",TODAY())<216),"7/30/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=216,DAYS360("1/1/2018",TODAY())<223),"8/6/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=223,DAYS360("1/1/2018",TODAY())<230),"8/13/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=230,DAYS360("1/1/2018",TODAY())<237),"8/20/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=237,DAYS360("1/1/2018",TODAY())<244),"8/27/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=244,DAYS360("1/1/2018",TODAY())<251),"9/3/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=251,DAYS360("1/1/2018",TODAY())<258),"9/10/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=258,DAYS360("1/1/2018",TODAY())<265),"9/17/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=265,DAYS360("1/1/2018",TODAY())<272),"9/24/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=272,DAYS360("1/1/2018",TODAY())<279),"10/1/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=279,DAYS360("1/1/2018",TODAY())<286),"10/8/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=286,DAYS360("1/1/2018",TODAY())<293),"10/15/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=293,DAYS360("1/1/2018",TODAY())<300),"10/22/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=300,DAYS360("1/1/2018",TODAY())<307),"10/29/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=307,DAYS360("1/1/2018",TODAY())<314),"11/5/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=314,DAYS360("1/1/2018",TODAY())<321),"11/12/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=321,DAYS360("1/1/2018",TODAY())<328),"11/19/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=328,DAYS360("1/1/2018",TODAY())<335),"11/26/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=335,DAYS360("1/1/2018",TODAY())<342),"12/3/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=342,DAYS360("1/1/2018",TODAY())<349),"12/10/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=349,DAYS360("1/1/2018",TODAY())<356),"12/17/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=356,DAYS360("1/1/2018",TODAY())<363),"12/24/2018",
IF(AND(DAYS360("1/1/2018",TODAY())>=363,DAYS360("1/1/2018",TODAY())<370),"12/31/2018"
)))))))))))))))))))))))))