Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

IF formula to remove space if no data

Topic Labels: Formulas
Solved
Jump to Solution
398 2
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
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