Ir para o conteúdo principal

Como inserir rapidamente linhas em branco/vazias em Excel?

A maioria de nós pode enfrentar o problema em Excel que precisamos inserir uma linha em branco entre cada uma das linhas existentes e todos nós sabemos como inserir uma linha em branco manualmente. Mas inserir centenas de linhas em branco será uma tarefa tediosa se você inserir cada linha individualmente. Aqui estão alguns truques rápidos para ajudá-lo a resolver esse problema.

Insira linhas em branco com a função Classificar
Insira linhas em branco alternativas com código VBA
Insira rapidamente números específicos de linhas em branco com Kutools for Excel


Insira linhas em branco com a função Classificar

Este método é mais fácil, mas é um desvio para inserir linhas em branco entre as linhas existentes. Você pode fazer o seguinte:

1. Você precisa de uma coluna em branco adjacente aos seus dados. Por exemplo, eu tenho uma planilha composta por A1: E9, você pode usar a coluna F.

2. Na célula F1, insira o número 1 e insira 2 na célula F2.

3. Selecione o número 1 e o número 2 e clique duas vezes na alça de preenchimento, Excel preencherá automaticamente as células na coluna F.

4. Em seguida, copie esta nova coluna F (F1: F9), selecione a célula F10 e cole o número de preenchimento automático de F1: F9. Veja a imagem:

5. E então clique Data > tipoE para Aviso de classificação a caixa de diálogo aparecerá, selecione Expanda a seleção opção e clique tipo… Veja a imagem:

6. E um tipo a caixa de diálogo aparecerá, escolha o número 1 do Ordenar lista suspensa e clique no OK botão. Veja a imagem:

Em seguida, as novas linhas em branco foram inseridas nas linhas existentes. Veja a imagem:

Anote os: Se desejar inserir duas ou três linhas em branco entre cada linha, você pode copiar a nova coluna de preenchimento automático duas ou três vezes para adicionar as novas linhas.

Insira rapidamente números específicos de linhas em branco em um intervalo em Excel:

O Inserir linhas e colunas em branco utilidade de Kutools for Excel pode ajudá-lo a inserir rapidamente determinados números de linhas ou colunas em branco em um intervalo em Excel.
Baixar Kutools for Excel Agora! (30-dia de trilha livre)


Insira linhas em branco alternativas com código VBA

Se a maneira acima for um pouco complexa, você pode usar o seguinte código VBA para resolvê-la.

1. Pressione as teclas Alt + F11 para abrir o Microsoft Visual Basic para aplicativos janela e clique em inserção > Módulo e insira o seguinte código no Módulo:

Código VBA: insira linhas em branco em Excel

Sub InsertBlackRows()
'Updateby20131127
Dim Rng As Range
Dim WorkRng As Range
Dim FirstRow As Integer, xRows As Integer, xCols As Integer
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
FirstRow = WorkRng.Row
xRows = WorkRng.Rows.Count
xCols = WorkRng.Columns.Count
Application.ScreenUpdating = False
WorkRng.Cells(xRows, 1).Resize(1, xCols).Select
Do Until Selection.Row = FirstRow
    Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
    Selection.Offset(-1, 0).Select
Loop
Application.ScreenUpdating = True
End Sub

2. Então clique doc-multiplicação-cálculo-3 botão ou pressione a tecla F5 para executar o código. No Kutoos que aparece para Excel caixa de diálogo, selecione o intervalo em que você inserirá linhas em branco e clique no botão OK. Veja a captura de tela:

Em seguida, uma nova linha em branco foi inserida entre cada duas linhas. Veja a imagem:


Insira rapidamente números específicos de linhas em branco com Kutools for Excel

Os dois métodos acima se referem apenas à inserção de linhas em branco entre cada linha, para inserir uma linha em branco ou várias linhas após cada enésima linha, como você deve fazer? Aqui eu recomendo o Inserir linhas e colunas em branco utilidade de Kutools for Excel. Essa capacidade pode ajudar a inserir rapidamente números específicos de linhas em branco após cada enésima linha em um determinado intervalo. Faça o seguinte.

Antes de aplicar Kutools for Excel, Por favor baixe e instale primeiro.

1. Selecione o intervalo em que deseja inserir as linhas em branco e clique em Kutools > inserção > Inserir linhas e colunas em branco. Veja a imagem:

2. No Inserir linhas e colunas em branco caixa de diálogo, escolha Linhas em branco no tipo de inserção seção, especifique o número de linhas de intervalo que você inserirá linhas em branco com base no número de linhas que deseja inserir e, em seguida, clique no OK botão. Veja a imagem:

Então você pode ver que certas linhas em branco foram inseridas a cada duas linhas. Veja as capturas de tela:

Anote os: o número no Intervalo de e Linhas pode ser ajustado para atender às suas necessidades. Por exemplo, você pode inserir três, quatro, cinco ... linhas em branco após cada uma, duas, três ... linhas.

  Se você quiser ter uma avaliação gratuita (30-dia) deste utilitário, por favor clique para fazer o downloade, em seguida, aplique a operação de acordo com as etapas acima.


Insira rapidamente números específicos de linhas em branco com Kutools for Excel


Artigos relacionados

Melhores ferramentas de produtividade de escritório

Turbine suas planilhas: Experimente eficiência como nunca antes com Kutools for Excel

Recursos mais comuns: Localizar/destacar/identificar duplicatas   |  Excluir linhas em branco   |  Combine colunas ou células sem perder dados   |   Rodada sem Fórmula ...
Super pesquisa: VLookup de múltiplos critérios    VLookup de múltiplos valores  |   VLookup em várias planilhas   |   Pesquisa Difusa ....
Lista suspensa avançada: Crie rapidamente uma lista suspensa   |  Lista suspensa de dependentes   |  Lista suspensa de seleção múltipla ....
Gerenciador de colunas: Adicione um número específico de colunas     Mover colunas   |   Exibir colunas   |   Comparar colunas com Selecionar células iguais e diferentes ...
Recursos em destaque: Foco da Grade   |  Vista de Design   |   Grande Barra de Fórmula    Gerenciador de pastas de trabalho e planilhas   |  Biblioteca (Auto texto)   |  Data Picker   |  Combinar planilhas   |  Criptografar/Descriptografar Células    Enviar e-mails por lista   |  Super Filtro   |   Filtro Especial (filtro negrito/itálico/tachado...) ...
15 principais conjuntos de ferramentas12 Texto Ferramentas (Adicionar texto, Remover Personagens, ...)   |   50+ de cores Tipos (Gráfico de Gantt, ...)   |   Mais de 40 práticos Fórmulas (Calcule a idade com base no aniversário, ...)   |   19 Inclusão Ferramentas (Insira o código QR, Inserir imagem do caminho, ...)   |   12 Conversão Ferramentas (Números para Words, Conversão de moedas, ...)   |   7 Unir e dividir Ferramentas (Combinar linhas avançadas, Dividir células, ...)   |   Muito mais...

Kutools for Excel possui mais de 300 recursos, garantindo que o que você precisa está a apenas um clique de distância...

Suporta Escritório/Excel 2007-2021 e mais recentes, incluindo 365 | Disponível em 44 idiomas | Desfrute de um teste gratuito de 30 dias com todos os recursos.

guia kte 201905


Office Tab Traz a interface com guias para o Office e torna seu trabalho muito mais fácil

  • Ative a edição e leitura com guias em Word, Excel, Power Point, Publisher, Access, Visio e Project.
  • Abra e crie vários documentos em novas guias da mesma janela, em vez de em novas janelas.
  • Aumenta sua produtividade em 50% e reduz centenas de cliques do mouse para você todos os dias!
Comments (43)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks so much for this. Cheers.
This comment was minimized by the moderator on the site
So I'm running into a situation where a have a couple hundred rows of information. Id like to create a space between specific data. example. I have six rows with "CH-01" in it and then two rows with CH-02- and then three rows of CH-03. What I want to happen is create a blank row between the change of numbers. However I don't have the time or energy to do this for each individual change. Please if anyone has a solution for this problem i'd be so happy!
This comment was minimized by the moderator on the site
I have the same problem too, have you figured out how to solve this?
This comment was minimized by the moderator on the site
wonderful! it worked
This comment was minimized by the moderator on the site
thankssssss a lot you are an awesome people.
This comment was minimized by the moderator on the site
Thaaannkksss its work like magic
This comment was minimized by the moderator on the site
The sort method worked like a charm. Thanks for saving me time coding
This comment was minimized by the moderator on the site
i'm not religious or anything, but you are god. ;-)
This comment was minimized by the moderator on the site
The sort option worked, sometimes we learn all advanced and tuff things but we tend to forget the simple ones.. Thanks a lot
This comment was minimized by the moderator on the site
Can the VBA code be changed so that you do not need to select the range you want sorted, but instead is a specific range. For example I always want the range to be (S5:S500) I would like to run this code as part of a macro and do to the selection application this isn't working. This code works faster by far than other code ive tried.
This comment was minimized by the moderator on the site
very good its superb
This comment was minimized by the moderator on the site
GOOD STUFF! Saved me lots of time
This comment was minimized by the moderator on the site
Thank you!!!!!!!!! So brilliant! Just saved me 10 min of inserting rows!
This comment was minimized by the moderator on the site
Siperb. Thanks . it worked...!!
This comment was minimized by the moderator on the site
It worked, it did the trick for me. Thanks!
This comment was minimized by the moderator on the site
Siperb. Thanks . u r the best...!!
This comment was minimized by the moderator on the site
the best problem solve ever!!! thanks dude!!! the kutools work like what i want to do..thank you so much!!
This comment was minimized by the moderator on the site
This is EXACTLY what I was looking for, simple, brilliant, something I never would have thought of. (1st method) Thank you! (saved me at least 3 hrs of work) :lol:
This comment was minimized by the moderator on the site
Thanks for publish these important Tricks for solving Critical problems.
This comment was minimized by the moderator on the site
Is there any formula which automatically add row once applied. For example My data are includes of 10 rows and the sum of that 10 figures are in 12th row. Now if I add new figure in 11th row the the Total should be shifted to the 13 row.
This comment was minimized by the moderator on the site
Thank that's good trick what I want
This comment was minimized by the moderator on the site
Here is the Answer what I want Thanks
This comment was minimized by the moderator on the site
the best problem solve ever!!! thanks dude!!! the kutools work like what i want to do..thank you so much!! terima kasih.. :D
This comment was minimized by the moderator on the site
Simply use Alt+H+I+R in a sequence manner to add a blank row immediatly!!!
This comment was minimized by the moderator on the site
I got it nw but it doesnt wrk with different cell sizes....plz help in the same...
This comment was minimized by the moderator on the site
Unable to get it correct...tried to follow the same steps but cant get my querry resolved...plz help me.dnt knw wts goin wrong
This comment was minimized by the moderator on the site
Really good one it has helped me and easy to follow,
This comment was minimized by the moderator on the site
Not an expert at Excel but found an easy way (for me). I added a column at A. In the first 3 rows of data typed 1, 3, 5 selected & expanded down the page. At the end of my data I used the blank cells in A & typed 2, 4, 6 & expanded this to equal the number of odd rows then sorted by column A smallest to largest. I was left with column A 1 - 250 & every other line was data / blank row.
This comment was minimized by the moderator on the site
How to add blank row after every 9th row of the data, Eg blank row in 10th row, 20th row
This comment was minimized by the moderator on the site
Great!!! You saved hours of Work!!!
This comment was minimized by the moderator on the site
you save me of hours of work!!
This comment was minimized by the moderator on the site
You are the best excel site on the net really you are the king or Excel
This comment was minimized by the moderator on the site
Success... Thanks For the wonderful idea
This comment was minimized by the moderator on the site
Perfect solution...worked fine for me.thanks champ
This comment was minimized by the moderator on the site
I want to insert two rows in between data please help
This comment was minimized by the moderator on the site
Instead of doing just 2 1-9's do 3 1-9's and it will put 2 rows between data, using the first example.
This comment was minimized by the moderator on the site
very help full. thanks to you
This comment was minimized by the moderator on the site
Excellent stuff !!!!!!!!!!!!!!
This comment was minimized by the moderator on the site
It's what I need, many thanks!! Excellent!!
This comment was minimized by the moderator on the site
Amazing! Was really simple and came out perfect! Thank you
This comment was minimized by the moderator on the site
excelent...thanks a lot.
This comment was minimized by the moderator on the site
Worked perfectly. Thanks for the help.
This comment was minimized by the moderator on the site
Thank you. It was helpful.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations