Exclude "0" values from string: =H2&";"&I2&"
Closed
Pluggie
Posts
11
Registration date
Monday 11 March 2013
Status
Member
Last seen
14 August 2013
-
12 Apr 2013 à 09:17
aquarelle Posts 7181 Registration date Saturday 7 April 2007 Status Moderator Last seen 14 February 2026 - 12 Apr 2013 à 15:10
aquarelle Posts 7181 Registration date Saturday 7 April 2007 Status Moderator Last seen 14 February 2026 - 12 Apr 2013 à 15:10
Related:
- Xbox-2309-1001-3-0
- Psiphon 3 - Download - VPN
- Xbox App - Download - Digital stores
- Xbox backup creator - Download - Backup and recovery
- Hitman 3 cheats - Guide
- Gacha nebula 1.1 .0 apk download - Download - Casual
1 response
aquarelle
Posts
7181
Registration date
Saturday 7 April 2007
Status
Moderator
Last seen
14 February 2026
491
12 Apr 2013 à 15:10
12 Apr 2013 à 15:10
Hello,
Do you have some knowledge about VBA macro?
Because with VBA it is possible to create a custom function.
First, press alt+F11 to open VBA editor and insert a module. Paste this custom function into this module :
To use it on your sheet ---> insert / function / custom and select ConcatPlageNotEmptyCel.
This function expects two parameters:
- range : the range of cells you want to concatenate (selected with the mouse)
- separator : the character separating each cell (1 or more characters) but if the separator is not specified, the default is defined by ";"
Best regards
"Pour trouver une solution à ses problèmes, il faut s'en donner la peine."
Do you have some knowledge about VBA macro?
Because with VBA it is possible to create a custom function.
First, press alt+F11 to open VBA editor and insert a module. Paste this custom function into this module :
Function ConcatPlageNotEmptyCel(plage As range, Optional separator As String = "; ") As String
Dim rep As String, c As range
For Each c In plage
If c.Value <> "" Then
rep = rep & c.Value & separator
End If
Next c
ConcatPlageNotEmptyCel = Left(rep, Len(rep) - Len(separator))
End Function
To use it on your sheet ---> insert / function / custom and select ConcatPlageNotEmptyCel.
This function expects two parameters:
- range : the range of cells you want to concatenate (selected with the mouse)
- separator : the character separating each cell (1 or more characters) but if the separator is not specified, the default is defined by ";"
Best regards
"Pour trouver une solution à ses problèmes, il faut s'en donner la peine."