Jump to content
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.

Buenas tardes a todos, trato de aplicar dos filtros discriminatorios de datos procedentes de dos hojas distintas de un libro de excell, de tal forma que al seleccionar el primer filtro solo aparezca en el segundo filtro los campos que contenga el primero.

Adjunto un ejemplo y lo explico mejor.

Gracias.

Ejemplo 2.xlsb

Solved by Israel Cassales

Go to solution

Featured Replies

  • Solution

Hola,

Este código hace literalmente eso

Private Sub Worksheet_Change(ByVal Target As Range)

If Not Intersect(Target, Me.Range("B2")) Is Nothing Then

Application.EnableEvents = False

Me.Range("B3").ClearContents

With Me.Range("B3").Validation

.Delete

Select Case Me.Range("B2").Value

Case 1

.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _

Operator:=xlBetween, Formula1:="Avion,Barco"

Case 3

.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _

Operator:=xlBetween, Formula1:="Barco"

Case Else

End Select

End With

Application.EnableEvents = True

End If

End Sub

Edited by Israel Cassales

También es posible hacer eso con fórmulas directo sobre la validación de datos, creando los nombres de las tablas y usando la función INDIRECTO()

Si le interesa cree un tema similar en esa sección.

Le dejo el libro con el VBA

Ejemplo 2.xlsb

  • Author

Muchas gracias por su ayuda.

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.