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.

Acumular la suma en una misma celda para varias celdas

publicado

SOY MUY NUEVO EN EXCEL Y NO SE COMO HACER QUE ME FUNCIONE ESTE MACRO EN MAS CELDA APARTE DE H3 EN LA QUE FUNCIONA PERFECTAMENTE, COMO POR EJEMPLO DESDE H3 HAST H20

Option Explicit

Dim valor As Long

Dim cantidadVeces As Integer

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$H$3" Then

cantidadVeces = cantidadVeces + 1

If cantidadVeces > 1 Then

Exit Sub

End If

valor = valor + Sheets("Entradas-salidas").Range("H3").Value

Sheets("Entradas-salidas").Range("H3").Value = valor

End If

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

valor = 0

cantidadVeces = 0

If Target.Address = "$H$3" Then

valor = Sheets("Entradas-salidas").Range("H3").Value

End If

End Sub

Copia de Control-de-entradas-y-salidas.xls

Featured Replies

publicado

Hola alexguti.

Te mando el ejemplo correjido. Haber si es esto lo que quieres. Te lo he puesto desde H3:H53. Si quieres que te afecte a toda la columna solo tienes que ponerlo H:H.

Comenta y si te gusta pica en me gusta y da el tema escribiendo tema solucionado.

Saludos.

Control-de-entradas-y-salidas-3.xls

publicado
  • Autor

Perfecto muchisimas gracias.....

publicado

Para futuras consultas, sube un archivo con las explicaciones.

No escribas en mayúsculas, que hay gente a la que les molesta.

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.