Help

IF formula to remove space if no data

Topic Labels: Formulas
Solved
Jump to Solution
1216 2
cancel
Showing results for 
Search instead for 
Did you mean: 
jord8on
7 - App Architect
7 - App Architect

I’m not sure the best way to ask this question, but here goes!

I have the following formula…

Model & " " & VAR_Color & " " & VAR_Type & " " & VAR_Weight_Name & " " & VAR_GRIP_Circumference

Some of my “Models” are missing one or several of the VAR (fields) and when that happens I’m left with a double or even triple space.

I want to concatenate the formula in such a way that IF a field/VAR is empty that the VAR and the space in front of it are omitted, but if a VAR exists, then the VAR and the space in front of it are displayed.

Thanks in advance for any advice on how to revise/simplify this formula!

1 Solution

Accepted Solutions
kuovonne
18 - Pluto
18 - Pluto
Model & 
IF( VAR_Color, " " & VAR_Color) & 
IF( VAR_Type, " " & VAR_Type) & 
IF( VAR_Weight_Name, " " & VAR_Weight_Name) & 
IF( VAR_GRIP_Circumference, " " & VAR_GRIP_Circumference)

See Solution in Thread

2 Replies 2
kuovonne
18 - Pluto
18 - Pluto
Model & 
IF( VAR_Color, " " & VAR_Color) & 
IF( VAR_Type, " " & VAR_Type) & 
IF( VAR_Weight_Name, " " & VAR_Weight_Name) & 
IF( VAR_GRIP_Circumference, " " & VAR_GRIP_Circumference)

YES YES YES!!! This is exactly what I needed. What a clean formula! Thank you for the help @kuovonne!!

tenor-21486118