cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-724021%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EF%C3%B3rmula%20IF%2FElse%3A%20c%C3%B3mo%20devolver%20una%20celda%20en%20blanco%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-724021%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEstoy%20creando%20una%20f%C3%B3rmula%20condicional.%20Si%20la%20condici%C3%B3n%20que%20estoy%20evaluando%20es%20falsa%2C%20%C2%BFC%C3%B3mo%20devuelvo%20una%20celda%20en%20blanco%3F%3C%2FP%3E%3CP%3EIf(%20%3AOrientaci%C3%B3n%20%3D%3D%20%22X%22%2C%20%3A%22X%20Ave%22n%20%2F%20100%2C%20%3F%3F)%3C%2FP%3E%3CP%3EQuiero%20evaluar%20una%20columna%20y%20si%20es%20%22X%22%20entonces%20quiero%20realizar%20una%20ecuaci%C3%B3n.%20Si%20es%20cualquier%20otro%20valor%2C%20quiero%20devolver%20una%20celda%20en%20blanco.%3C%2FP%3E%3CP%3E%C2%BFQu%C3%A9%20se%20usa%20en%20la%20parte%20%22otra%20cosa%22%20de%20la%20f%C3%B3rmula%20para%20devolver%20una%20celda%20en%20blanco%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-724021%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-724032%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20F%C3%B3rmula%20IF%2FElse%3A%20c%C3%B3mo%20devolver%20una%20celda%20en%20blanco%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-724032%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EComo%20es%20una%20columna%20de%20caracteres%2C%20utilice%20%22%22.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EIf(%20%3AOrientation%20%3D%3D%20%22X%22%2C%20%3A%22X%20Ave%22n%20%2F%20100%2C%20%22%22)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-724049%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20F%C3%B3rmula%20IF%2FElse%3A%20c%C3%B3mo%20devolver%20una%20celda%20en%20blanco%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-724049%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHola%2C%3C%2FP%3E%0A%3CP%3ESi%20su%20tipo%20de%20columna%20es%20num%C3%A9rico%2C%20puede%20utilizar%20la%20siguiente%20sintaxis%20porque%20la%20soluci%C3%B3n%20proporcionada%20est%C3%A1%20orientada%20a%20una%20columna%20de%20tipo%20car%C3%A1cter%3A%3C%2FP%3E%0A%3CP%3Eif(%3AOrientaci%C3%B3n%20%3D%3D%20%22X%22%2C%20%3A%22X%20ave%22n%2F100%2C%20.)%3C%2FP%3E%0A%3CP%3EEl%20valor%20vac%C3%ADo%20est%C3%A1%20representado%20por%20un%20solo%20punto.%3C%2FP%3E%0A%3CP%3EMejor%2C%3C%2FP%3E%0A%3CP%3ETS%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-724363%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20F%C3%B3rmula%20IF%2FElse%3A%20c%C3%B3mo%20devolver%20una%20celda%20en%20blanco%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-724363%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EGracias%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F11634%22%20target%3D%22_blank%22%3E%40Thierry_S%3C%2FA%3E%20.%20La%20columna%20resultante%20es%20num%C3%A9rica%2C%20por%20lo%20tanto%20%22%20%22%20no%20funciona.%20Agregar%20el%20punto%20%C3%BAnico%20funcion%C3%B3%20perfectamente.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
JSledz289
Level I

IF/Else formula - how to return a blank cell

I am creating an conditional formula. If the condition I am evaluating is false, How do I return a blank cell?

If( :Orientation == "X", :"X Ave"n / 100, ??)

I want to evaluate a column and if it is "X" then I want to perform an equation. If it is any other value I want to return a blank cell.

What do use in the "else" part of the formula to return a blank cell?

1 ACCEPTED SOLUTION

Accepted Solutions
Thierry_S
Super User

Re: IF/Else formula - how to return a blank cell

Hi,

If your column type is numeric, you can use the following syntax because the solution provided is geared toward a character type column:

if(:Orientation == "X", :"X ave"n / 100, .) 

The empty value is represented by a single period.

Best,

TS

 

Thierry R. Sornasse

View solution in original post

3 REPLIES 3
mmarchandTSI
Level V

Re: IF/Else formula - how to return a blank cell

Since it's a character column, use "".

 

If( :Orientation == "X", :"X Ave"n / 100, "")
Thierry_S
Super User

Re: IF/Else formula - how to return a blank cell

Hi,

If your column type is numeric, you can use the following syntax because the solution provided is geared toward a character type column:

if(:Orientation == "X", :"X ave"n / 100, .) 

The empty value is represented by a single period.

Best,

TS

 

Thierry R. Sornasse
JSledz289
Level I

Re: IF/Else formula - how to return a blank cell

Thank You @Thierry_S . The resulting column is numeric therefore " " does not work. Adding the single period worked perfectly.

Recommended Articles