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.

Insertar filas y números faltantes de una secuencia.

publicado

Buena tarde.

Digamos que tengo en G2 diferentes números de semana del año, empezando en la 1, saltando a la 5 en G3 y la 21 en G4, necesito insertar filas entre cada uno de los datos, insertando una fila con el número de semana 2 en G3, después el 3 en G4, 4 en G5, y así consecutivamente hasta el 5, después hasta el 21, etc. Respetando los números que ya tengo y tomando en cuenta solo de 1 al 52 que son las semanas del año.

Ayuda por favor! De antemano muchas gracias.

Featured Replies

publicado

Buenas, lo que entendi.

Cita

Sub meses()
Dim i As Long
 With Range("g1")
  For i = 1 To 52
    If .Offset(i, 0).Value > i Then
     .Offset(i, 0).Insert Shift:=xlDown
     .Offset(i, 0).Value = i
    ElseIf .Offset(i, 0).Value = "" Then
     .Offset(i, 0).Value = i
    End If
  Next
 End With
End Sub

saludos

 

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.