私は奇妙な症状を伴う転位症を患っています

転置が実行され、列の最初のセルが「バッチ 0」で、後続のセルがすべて空の場合、それらのセルを「バッチ 1」として入力したいと思います。どうすればいいか、ヒントはありますか?
ここにあなたが望むことを実行する小さなスクリプトがあります

If( :"RSC TCANEAL/ furnace/ 5139"n[1] == "Batch 0",
Try(
:"RSC TCANEAL/ furnace/ 5139"n[Current Data Table() << get rows where(
Is Missing( :"RSC TCANEAL/ furnace/ 5139"n )
)] = "Batch 1"
)
);
完全な例はこちら
Names Default To Here( 1 );
New Table( "Example",
Add Rows( 25 ),
New Column( "RSC TCANEAL/ furnace/ 5139",
Character,
Set Values(
{"Batch 0", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", ""}
)
)
);
If( :"RSC TCANEAL/ furnace/ 5139"n[1] == "Batch 0",
Try(
:"RSC TCANEAL/ furnace/ 5139"n[Current Data Table() << get rows where(
Is Missing( :"RSC TCANEAL/ furnace/ 5139"n )
)] = "Batch 1"
)
);Jim、ありがとう。これを修正して、4 列目以降を反復処理し、最初の行以外は空の列に対してのみ処理するようにしました。
colList1 = Data Table( "Transpose of History" ) << get column names( string );<BR /><BR />For( i = 1, i <= N Cols( Data Table( "Transpose of History" ) ), i++,
If( Column(colList1[i])[1] == "Batch 0" & Col N Missing( As Column(colList1[i]) ) == NRow()-1,
Try(
Column(colList1[i])[Current Data Table() << get rows where(
Is Missing( As Column(colList1[i]) )
)] = "Batch 1"
)
)
);