cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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