Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

concatenar celdas multiples sin repetir valores

publicado

hola a todos. hace días encontré en otro foro una programación vba para concatenar una selección multiple. la verdad que no funcionaba,pero toqueteando un poco y sin saber como funciono. en la misma web salía otra programación que hacia lo mismo pero sin repetir valores, pero esa tampoco funciona y no se donde esta el fallo o como solucionarlo. podríais ayudarme? os pego el código que venia. Espero hacerlo bien que acabo de llegar a este foro y no se si sabre envolver como lo pedís en las normas. la idea es que me salga el archivo como en el excell que adjunto.

Function MULTCONCAT(lista As Range)

Dim ncell As Range

Dim m_concat As

String

m_concat = “”

i = 1

For Each ncell In lista

If ncell “”

Then

If i = 1 Then

m_concat = m_concat &

ncell.Value

Else

m_concat = m_concat & vbCrLf & ncell.Value

End

If

End If

i = i + 1

Next ncell

m_concat = m_concat &

“”

MULTCONCAT = m_concat

End Function

[code] no me deja adjuntar archivo (y por lo visto el intro tampoco, jejeje), pongo idea[TABLE=width: 80]

[TR]

[TD=width: 80, bgcolor: transparent][font=Calibri][size=3][color=#000000]pepe[/color][/size][/font][/TD]

[/TR]

[TR]

[TD=bgcolor: transparent][font=Calibri][size=3][color=#000000]andres[/color][/size][/font][/TD]

[/TR]

[TR]

[TD=bgcolor: transparent][font=Calibri][size=3][color=#000000]luis[/color][/size][/font][/TD]

[/TR]

[TR]

[TD=bgcolor: transparent][font=Calibri][size=3][color=#000000]pepe[/color][/size][/font][/TD]

[/TR]

[TR]

[TD=bgcolor: transparent][font=Calibri][size=3][color=#000000]alberto[/color][/size][/font][/TD]

[/TR]

[TR]

[TD=bgcolor: transparent][font=Calibri][size=3][color=#000000]angel[/color][/size][/font][/TD]

[/TR]

[/TABLE]

y que me de como resultado pepe, andres, luis, Alberto, angel. gracias

Featured Replies

No hay posts para mostrar

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.