J'ai une transposition avec un symptôme étrange

Lorsque la transposition s'exécute et que la première cellule d'une colonne est « Lot 0 » et que toutes les cellules suivantes sont vides, je voudrais remplir ces cellules comme « Lot 1 ». Une idée de comment je pourrais faire cela ?
Voici un petit script qui fera ce que vous voulez

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"
)
);
Voici un exemple complet
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"
)
);Merci Jim. J'ai modifié cela pour parcourir les colonnes à partir de 4 et agir uniquement sur les colonnes qui étaient vides à l'exception de la première ligne.
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"
)
)
);