OK....you actually had the answer.......that I had misinterpreted. The formula is what is causing the issue. You can not change the value in a cell within a formula. The formula will always trump the change. So what you need to do is to delete the formula as below, or to incorporate the change into the formula......
Here is the method to delete the formula
Names Default To Here( 1 );
Acc = New Table( "Example",
Add Rows( 8 ),
New Column( "base 1",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [1, 2, 4, 8, 16, 32, 64, 128] )
),
New Column( "base 2",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [12, 12, 12, 12, 12, 12, 12, 12] )
),
New Column( "base 3",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values(
[10.684, 9.454, 8.4053, 7.4053, 6.4053, 5.3707, 4.3707, 2.4886]
)
),
New Column( "base 4",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [1645, 701, 339, 170, 85, 41, 21, 6] )
),
New Column( "base 5",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [1645, 823, 411, 206, 103, 51, 26, 13] )
),
New Column( "base 6",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [823, 412, 206, 103, 52, 26, 13, 7] ),
Set Display Width( 53 )
),
New Column( "base 7",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [3290, 1646, 822, 412, 206, 102, 52, 26] )
),
New Column( "base 8",
Character,
"Nominal",
Set Values(
{"Pass", "Pass", "Pass", "Pass", "Pass", "Pass", "Pass", "Fail"}
)
),
New Column( "lo50%expGMT",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Ceiling( :base 5 / 2 ) ),
Set Selected,
Set Display Width( 104 )
)
);
Acc << run formulas;
// Delete the formula and set values to real numbers
Acc:Name("lo50%expGMT" )<<delete formula;
Acc:Name("lo50%expGMT" )[Acc << get rows where( :Name("lo50%expGMT") < 10.0 )] = 5
And here is the data table with the formula changed to incorporate the required change.
Names Default To Here( 1 );
Acc = New Table( "Example",
Add Rows( 8 ),
New Column( "base 1",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [1, 2, 4, 8, 16, 32, 64, 128] )
),
New Column( "base 2",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [12, 12, 12, 12, 12, 12, 12, 12] )
),
New Column( "base 3",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values(
[10.684, 9.454, 8.4053, 7.4053, 6.4053, 5.3707, 4.3707, 2.4886]
)
),
New Column( "base 4",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [1645, 701, 339, 170, 85, 41, 21, 6] )
),
New Column( "base 5",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [1645, 823, 411, 206, 103, 51, 26, 13] )
),
New Column( "base 6",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [823, 412, 206, 103, 52, 26, 13, 7] ),
Set Display Width( 53 )
),
New Column( "base 7",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [3290, 1646, 822, 412, 206, 102, 52, 26] )
),
New Column( "base 8",
Character,
"Nominal",
Set Values(
{"Pass", "Pass", "Pass", "Pass", "Pass", "Pass", "Pass", "Fail"}
)
),
New Column( "lo50%expGMT",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( If(Ceiling( :base 5 / 2 ) >= 10, Ceiling( :base 5 / 2 ), 5 ) ),
Set Selected,
Set Display Width( 104 )
)
);
Jim