cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

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