DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

changing data with diadem

Hi,
I have and xls file with daily feed intakes and because of electronic problems some feed intakes which had to be zero are negative. I would like to programatically change these data from negative values to zero. These data are in "CONSS" column.
I attached you an example file.
I am using DIAdem 9.0.

Thank you!

N.R
0 Kudos
Message 1 of 2
(2,900 Views)
Hi Leiabcn,

If you've loaded the Excel file into DIAdem you can use the following formula to set all values less than 0 to 0. The result is written back to the channel.

call formulacalc("Ch('CONSS') := (ch('CONSS')<=0) * 0 + (ch('CONSS')>0) * ch('CONSS')")

Greetings

Walter
0 Kudos
Message 2 of 2
(2,895 Views)