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.

Eliminar duplicados en una misma celda (consulta)

publicado

Buenas a todos:

Viendo el tema anterior, queria saber si es posible eliminar solo los duplicados despues de la coma, o sea...

auto rojo, camion rojo, ascensor rojo, auto rojo ------------- unicamente quedando ..

auto rojo, camion rojo, ascensor rojo.

El UDF que vi eliminaba directamente las palabras rojo, no tomaba como separacion las coma.

Gracias de antemano.

Featured Replies

publicado

Public Function DupFilaComa(ByVal Texto As Variant) As Variant
Dim p As Variant, r() As Variant

If Texto = Empty Then Exit Function
p = Split(Texto, ",")
ReDim r(UBound(p))
For x = 0 To UBound(p)
For xx = 0 To UBound(r)
If Trim(p(x)) = r(xx) Then Exit For
If r(xx) = Empty Then
r(xx) = Trim(p(x))
Exit For
End If
Next
Next
For x = 0 To UBound(r)
If Not r(x) = Empty Then
cadena = cadena & ", " & r(x)
End If
Next
DupFilaComa = Mid(cadena, 3)

End Function
[/CODE]

[b][color=#ff0000]No olvides que es obligatorio subir un archivo con los resultados que esperas obtener.

Si no lo haces, te arriesgas a no tener respuestas en tu próxima consulta.

.[/color][/b]

publicado
  • Autor

Gracias Macro Antonio, perdon por lo del archivo de subida.

Voy a revisar y te aviso como funciona

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.