I am having an issue in scripting the JSL code for two functions (see screen shot) which I currently have in Excel but want to transfer over into JMP. The data is found in the attached file JMP_Test_Average2.xlsx and the functions I wish to transfer to JMP are as follows:
- column VS has a COUNTIF function; =COUNTIF(C3:N3,"-1")
- I want to know the number of instances -1 appears in each row (e.g. in row 3 the number of instances of -1 are 2). Column m(AB) is ignored in the function but it is impoirtant as it is part of the data sequence.
- column PD has a MATCH function; =(MATCH("-1",C3:N3,0))+1
- I want to know where the first instance of -1 appears in each row (e.g. in row 3 the first -1 appears in column m(LM) or column 12 when considering columns m(AB) to m(MN)). Column m(AB) is ignored in the functions but it is impoirtant as it is part of the data sequence.
I would like to know how to script these functions in JSL so I can update my JMP table and not have to complete the calculations in Excel and then bring the results over into my JMP table.
Any help would be much appreciated.
Thanks.
Mike
Data as found in file JMP_Test_Average2.xlsx