Created
January 20, 2017 11:23
-
-
Save uovidiu/0e26bcf5f7f73bff67d530c6d2582258 to your computer and use it in GitHub Desktop.
Excel concat if not empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function MyConcat(ConcatArea As Range) As String | |
For Each x In ConcatArea: xx = IIf(x = "", xx & "", xx & x & "|"): Next | |
MyConcat = Left(xx, Len(xx) - 1) | |
End Function | |
// ALT +F11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment