SOLVED

Need help with Textjoin or concat function

Copper Contributor

So I have a row of fields and most will contain a number that to me has a value assigned to it. The value is not important and will be manipulated elsewhere. What I need is a summary of those values (essentially creating a code that acts as a roadmap. So I may enter a number in 5 fields but leave 3 empty because they do not apply, but still need it to fill into the overall "summary" value for the empty field.

 

Code 1Code 2Code 4Code 5Code 6Code 7SizeCode 8Code 9Code Summary 
1     2XL  1.2XLI need every field accounted for 
1     3XL  1......3XL..This doesn’t work either 
1     3XL  1.0.0.0.0.0.3XL.0.0This is what I need it to come out like 
1     Small    
2 Replies
best response confirmed by VI_Migration (Silver Contributor)
Solution

@Modnar1 

=TEXTJOIN(".",,IF(ISBLANK(A2:I2),TEXT(A2:I2,"0"),A2:I2))

You can try this formula which returns the intended result in my sheet.textjoin.JPG

Thanks that works, I knew that some easy way existed...
1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution

@Modnar1 

=TEXTJOIN(".",,IF(ISBLANK(A2:I2),TEXT(A2:I2,"0"),A2:I2))

You can try this formula which returns the intended result in my sheet.textjoin.JPG

View solution in original post