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.

Sumar y dividir en horizontal

publicado

Buenos días, tengo un archivo con muchos registros que necesito una macro para sumar algunas celdas y además una vez se haya sumado dividir dos celdas.

https://ibb.co/GtPhHTg

Featured Replies

publicado

Esto se puede hacer con fórmulas, no hace falta una macro.

En cualquier caso debes subir un archivo con unos pocos registros para poder probar.

Editado el por Antoni

publicado
Private Sub CommandButton1_Click()
With Hoja1
    For cont = 2 To .Range("A" & Rows.Count).End(xlUp).Row
        .Cells(cont, 8) = Application.WorksheetFunction.Sum(Range(.Cells(cont, 3), .Cells(cont, 6)))
        .Cells(cont, 9) = .Cells(cont, 8) / .Cells(cont, 7)
    Next cont
End With
End Sub

Con esto puedes probar creando un botón y suponiendo que los datos los tienes en la hoja1, de todos modos si puedes subir tu archivo como dice el Maestro Antoni mejor que mejor

Editado el por JSDJSD

publicado
  • Autor

JSDJSD Muchas gracias por la ayuda. Es justo lo que necesitaba. Solucionado.

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.