cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-8556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EFormules%20dans%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3EJ'essaie%20d'%C3%A9crire%20une%20formule%20depuis%20le%20matin%20pour%20faire%20r%C3%A9f%C3%A9rence%20%C3%A0%20certaines%20cellules%20de%20ma%20table%20JMP%2C%20mais%20il%20semble%20que%20je%20ne%20puisse%20aller%20nulle%20part.%3C%2FP%3E%3CP%3EJe%20peux%20faire%20une%20d%C3%A9claration%20g%C3%A9n%C3%A9rale%20claire%26nbsp%3B%3A%20en%20ce%20qui%20concerne%20les%20formules%2C%20Excel%20est%20loin%20devant%20JMP.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIl%20est%20difficile%20de%20comprendre%20pourquoi%20c'est%20SO%20SO%20SO%20difficile%20m%C3%AAme%20des%20formules%20simples%20dans%20JMP%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-68865%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Formules%20dans%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-68865%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMerci%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-68860%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Formules%20dans%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-68860%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EL'outil%20de%20recodage%20ou%20la%20fonction%20mach%20seraient%20%C3%A9galement%20utiles%26nbsp%3B%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EMatch(%20%3AMonth%2C%20%22Jan%22%2C%20%2201%22%2C%20%22Feb%22%2C%20%2202%22%2C%20%22Mar%22%2C%20%2203%22%2C%20%22Apr%22%2C%20%2204%22%2C%20%3AMonth%20)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-68855%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Formules%20dans%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-68855%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVoici%20une%20formule%20qui%20vous%20donnera%20une%20valeur%20num%C3%A9rique%20pour%20le%20mois%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EmonthList%3D%7B%22Jan%22%2C%22Feb%22%2C%22Mar%22%2C%22Apr%22%2C%22May%22%2C%22Jun%22%2C%22Jul%22%2C%22Aug%22%2C%22Sep%22%2C%22Oct%22%2C%22Nov%22%2C%22Dec%22%7D%3B%0Acontains(%20monthList%2C%20%3AMonth%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-68849%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Formules%20dans%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-68849%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EJe%20rencontre%20le%20m%C3%AAme%20genre%20de%20probl%C3%A8me.%20Dans%20mon%20ensemble%20de%20donn%C3%A9es%2C%20j'ai%20une%20colonne%20nomm%C3%A9e%20%22Month%22%2C%20avec%20des%20lectures%2C%20%22Jan%2CFeb%2C%20Mar%2C.........%2CDec%22%20et%20j'essaie%20de%20cr%C3%A9er%20une%20nouvelle%20colonne%20nomm%C3%A9e%20%22month2%22%20qui%20convertit%20le%20Mois%20%C3%A0%20%2201%20(pour%20janvier)%2C%2002%20pour%20(f%C3%A9vrier)%2C%2003%20(pour%20mars)%2C%20......%20%2C%2012%20(pour%20d%C3%A9cembre).%20Je%20suppose%20qu'une%20instruction%20%22IF%22%20sera%20utile.%20Merci%20de%20m'aider%20sur%20la%20marche%20%C3%A0%20suivre%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8557%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Formules%20dans%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8557%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20suis%20d%C3%A9sol%C3%A9%20que%20vous%20soyez%20frustr%C3%A9%20dans%20vos%20tentatives%20d'utilisation%20de%20l'%C3%A9diteur%20de%20formules%20dans%20JMP.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ELa%20premi%C3%A8re%20chose%20%C3%A0%20reconna%C3%AEtre%20est%20que%20JMP%20n'est%20pas%20une%20feuille%20de%20calcul%20comme%20Excel%20(et%20Excel%20n'est%20pas%20non%20plus%20un%20tableau%20de%20donn%C3%A9es%20structur%C3%A9es%20comme%20JMP).%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ELorsque%20vous%20cr%C3%A9ez%20une%20nouvelle%20colonne%20et%20que%20vous%20lui%20donnez%20une%20formule.%20La%20formule%20s'applique%20%C3%A0%20la%20colonne%20enti%C3%A8re%20et%20est%20%C3%A9valu%C3%A9e%20pour%20chaque%20ligne%20de%20la%20colonne.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%226281_JMPScreenSnapz007.png%22%20style%3D%22width%3A%20491px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%226281_JMPScreenSnapz007.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%226281_JMPScreenSnapz007.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369i3A906B3F38BFE005%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%226281_JMPScreenSnapz007.png%22%20alt%3D%226281_JMPScreenSnapz007.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ESi%20vous%20souhaitez%20r%C3%A9f%C3%A9rencer%20une%20ligne%20sp%C3%A9cifique%20dans%20une%20colonne%2C%20vous%20pouvez%20utiliser%20l'option%20Indice%20des%20fonctions%20Ligne.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%226283_JMPScreenSnapz009.png%22%20style%3D%22width%3A%20296px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%226283_JMPScreenSnapz009.png%22%20style%3D%22width%3A%20296px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%226283_JMPScreenSnapz009.png%22%20style%3D%22width%3A%20296px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370iA9DD522ED14375D9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%226283_JMPScreenSnapz009.png%22%20alt%3D%226283_JMPScreenSnapz009.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ECela%20vous%20donnera%20un%20indice%20pour%20la%20colonne%20que%20vous%20avez%20s%C3%A9lectionn%C3%A9e%20dans%20la%20formule.%20Vous%20pouvez%20mettre%20un%20num%C3%A9ro%20de%20ligne%20dans%20l'indice%20et%20vous%20obtiendrez%20la%20valeur%20de%20cette%20colonne%20dans%20la%20ligne%20sp%C3%A9cifi%C3%A9e.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ECette%20formule%20renvoie%20la%20valeur%20d'ABRASION%20dans%20la%20ligne%203%20pour%20chaque%20ligne%20de%20cette%20nouvelle%20colonne.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%226284_JMPScreenSnapz010.png%22%20style%3D%22width%3A%20552px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%226284_JMPScreenSnapz010.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%226284_JMPScreenSnapz010.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371iB8AB1D858E4A337F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%226284_JMPScreenSnapz010.png%22%20alt%3D%226284_JMPScreenSnapz010.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EPouvez-vous%20nous%20dire%20ce%20que%20vous%20essayez%20de%20faire%20et%20comment%20vous%20avez%20essay%C3%A9%20de%20le%20faire%20et%20nous%20pouvons%20vous%20donner%20quelques%20conseils%20pour%20y%20parvenir%26nbsp%3B%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E-Jeff%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
none1
Level I

Formulas in JMP

I have been trying to write a formula since morning to refer to certain cells in my JMP table, however I seem to be able to get no where.

I can make a clear general statement:  When it comes to Formulas   Excel is a far ahead of JMP.

Its difficult to understand why its SO SO SO  difficult even simple formulas in JMP !

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Re: Formulas in JMP

I'm sorry that you're frustrated in your attempts to use the Formula Editor in JMP.

The first thing to recognize is that JMP isn't a spreadsheet like Excel (neither is Excel a structured data table like JMP).

When you create a new column and give it a formula. The formula applies to the entire column and is evaluated for every row in the column.

6281_JMPScreenSnapz007.png

If you want to reference a specific row in a column you can use the Subscript option from the Row functions.

6283_JMPScreenSnapz009.png

This will give you a subscript for the column you've got selected in the formula. You can put a row number in the subscript and you'll get the value for that column in the row specified.

This formula returns the value for ABRASION in row 3 for every row of this new column.

6284_JMPScreenSnapz010.png

Can you tell us what you're trying to do and how you've tried to do it and we can give you some pointers to accomplish it?

-Jeff

-Jeff

View solution in original post

5 REPLIES 5
Jeff_Perkinson
Community Manager Community Manager

Re: Formulas in JMP

I'm sorry that you're frustrated in your attempts to use the Formula Editor in JMP.

The first thing to recognize is that JMP isn't a spreadsheet like Excel (neither is Excel a structured data table like JMP).

When you create a new column and give it a formula. The formula applies to the entire column and is evaluated for every row in the column.

6281_JMPScreenSnapz007.png

If you want to reference a specific row in a column you can use the Subscript option from the Row functions.

6283_JMPScreenSnapz009.png

This will give you a subscript for the column you've got selected in the formula. You can put a row number in the subscript and you'll get the value for that column in the row specified.

This formula returns the value for ABRASION in row 3 for every row of this new column.

6284_JMPScreenSnapz010.png

Can you tell us what you're trying to do and how you've tried to do it and we can give you some pointers to accomplish it?

-Jeff

-Jeff
ZosTa
Level I

Re: Formulas in JMP

I'm experiencing the same kind of problem. In my data set I have a column named "Month", with readings , "Jan,Feb, Mar,.........,Dec" and am trying to create a new column named "month2" which converts the Month to "01(for Jan), 02 for (Feb), 03 (for Mar), ...... , 12 (for Dec). I'm assuming an "IF" statement will be useful. Please assist me on how to go about this
txnelson
Super User

Re: Formulas in JMP

Here is a formula that will give you a numeric value for month

monthList={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
contains( monthList, :Month );
Jim
ZosTa
Level I

Re: Formulas in JMP

Thank you

Thomas1
Level V

Re: Formulas in JMP

The recode tool or the mach function would be handy as well:

 

Match( :Month, "Jan", "01", "Feb", "02", "Mar", "03", "Apr", "04", :Month )