cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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