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.

cambio de hoja

publicado

buenas tardes necesito de su ayuda nueva mente esta vez y ya me cicle le comento el porque, utilizando el grabador de macros realice una macro pero al momento de utilizar el bucle for esta me pone la misma formula en todas las hojas y esto es debido a que no me cambia las hojas conforme el bucle va cambiando de hoja, la función es la siguiente

Range("L21").Select

ActiveCell.FormulaR1C1 = "=AVERAGE(RC[-2],'B1 (1) '!RC[-2],'B2 (1)'!RC[-2])"

Range("L22").Select

esto es para sacar un promedio de dos hojas anteriores, pero esta formula iniciaria a correr a partir de la hoja tres, ojala y me pudieran orientar de como poder resolver esto.

de antemano muchas gracias

Featured Replies

publicado
  • Autor

gracias a a las personas que se tomaron su tiempo para revisar este mensaje ya quedo solucionado el problema que tenia quedo de la siguiente manera

For x = 3 To 20

y = x - 2

Z = y + 1

Sheets("B" & x & " (1)").Select

Range("L21").Select

ActiveCell.FormulaR1C1 = "=AVERAGE(RC[-2],'B" & y & " (1)'!RC[-2],'B" & Z & " (1)'!RC[-2])"

Range("L22").Select

Next

si tienen alguna sugerencia es bienvenida

publicado

Otra forma, SHAGGYNEYTOR:

Dim i%
For i = 3 To Sheets.Count
Sheets(i).[L21] = "= AVERAGE(" & _
Sheets(i).[j21].Address(False, False, External:=True) & ", " & _
Sheets(i - 1).[j21].Address(False, False, External:=True) & ", " & _
Sheets(i - 2).[j21].Address(False, False, External:=True) & ")"
Next i[/PHP]

Saludos, Cacho R.

publicado
  • Autor

ok gracias cacho tratare de entenderla y utilizarla. podemos dar por solucionado el tema

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.