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.

Filtrar informacion!!!

publicado

Buenas Noches!!!

Escribo para ver si me pudieran ayudar, tengo 2 hojas una con nombre de los productos y otra con nombre de filtro.

en la hoja de filtros en la celda "B2" escribo el codigo del producto y de la columa "C" hasta la "F" aparece la informacion relacionada a este codigo

solo que yo quiero que muestre solamente lo igual al codigo que escribo y actualmente muestra informacion

relacionada con el codigo o parte de este. pero yo quiero que se igual al codigo.

me podria ayudar gracias. anexo ejemplo.

 

 

Featured Replies

publicado
Hace 4 horas, smart27 dijo:

anexo ejemplo

Se te ha olvidado :huh:

publicado
  • Autor

Perdon anexo ejemplo

publicado

Te dejo otra propuesta,

Sub FILTRAR()
Application.ScreenUpdating = False
 
Hoja1.Range("C1:C500").AutoFilter Field:=1, Criteria1:=Hoja2.Range("B2")
      Hoja2.Range("C1:F500").Clear: Hoja1.Range("C1:F500").Copy Destination:=Hoja2.Cells(1, 3)
If Hoja2.Range("C2") = "" Then Hoja2.Range("C1:F500").Clear: MsgBox "DATO NO ENCONTRADO", vbCritical

For Each Hoja In Sheets
    If Hoja.AutoFilterMode Then Hoja.AutoFilterMode = 0
Next
End Sub

Saludos Cordiales

Copia de FILTRO.xlsm

publicado
  • Autor

Hola Alfonso5597, 

Si me sirvio se ve muy bien en la pantalla, tambien vi el primer codigo que compartistes y tambien funciono!!!

Sheets("Reporte").Cells.Clear

 n = 1
For i = 1 To Range("C" & Rows.Count).End(xlUp).Row
   For j = 3 To Range("C1").End(xlToRight).Column
        
       If LCase(CStr(Cells(i, j).Value)) Like LCase(Range("B2").Value) Then
         n = n + 1
         Rows(i).Copy Sheets("Reporte").Rows(n)
         Exit For
      End If
    
   Next j
Next i    
Rows(1).Copy Sheets("Reporte").Rows(1)
Application.ScreenUpdating = True

Mil gracias!!!

 

publicado
  • Autor

Buen dia DiegoLG!!!

ya lo lo probe y funciona a la perfecccion!!!

Mil Gracias!!!

 

 

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.