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.

Contar numero de celdas que cumplen varios criterios en una misma columna

publicado

Buenas compañeros,

Estoy elaborando una macro para contar el numero de celdas que cumplen varios criterios en una misma columna, pero solo se me ocurre sumar varios Countifs(). Seguro habrá alguna forma mas eficiente de hacerlo.

Por ejemplo para la siguiente tabla:

imagen.thumb.png.388d49365f04b18f5b90d775be2d325e.png

Me gustaria contar las filas que cumplen los siguientes criterios:

Columna A: Numero="100"

Columna  B: Semana="8"

Columna : Perdida= "AB" y "AC"

Como dije antes estoy haciendolo usando sumas de countifs:

Perdidas = Application.WorksheetFunction.CountIfs(Range("A2:A" & ufila), "100", Range("B2:B" & ufila), "8", Range("C2:C" & ufila), "AB")  +  Application.WorksheetFunction.CountIfs(Range("A2:A" & ufila), "100", Range("B2:B" & ufila), "8", Range("C2:C" & ufila), "AB")

Habría alguna formula o manera de hacer este calculo más simplificado y sencillo?

Adjunto archivo excel con la pequeña macro incluida en el Modulo 1

Agradecería muchisimo vuestra ayuda compañeros!

Muchas gracias de antemano 

Saludos.

prueba.xlsm

Featured Replies

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.