Ir para o conteúdo principal

Como atualizar a fórmula ao inserir linhas no Excel? 

doc atualização da fórmula inserindo as linhas 1

Por exemplo, eu tenho uma fórmula = soma (D2: D7) na célula D8, agora, quando eu inserir uma linha na segunda linha e inserir um novo número, a fórmula será alterada para = soma (D3: D8) automaticamente, o que exclui a célula D2 conforme a captura de tela a seguir. Nesse caso, preciso alterar a referência da célula na fórmula sempre que inserir linhas. Como posso sempre somar os números começando na célula D2 ao inserir linhas no Excel?

Atualizar fórmula ao inserir linhas automaticamente com a fórmula


seta azul bolha direita Atualizar fórmula ao inserir linhas automaticamente com a fórmula

A seguinte fórmula simples pode ajudá-lo a atualizar a fórmula automaticamente sem alterar a referência da célula manualmente ao inserir novas linhas, faça o seguinte:

1. Insira esta fórmula: = SOMA (INDIRETO ("D2: D" & LINHA () - 1)) (D2 é a primeira célula da lista que você deseja somar) no final das células que você deseja somar a lista de números e pressione Entrar chave.

2. E agora, ao inserir linhas em qualquer lugar da lista de números, a fórmula será atualizada automaticamente, veja a captura de tela:

doc atualização da fórmula inserindo as linhas 2

Tips: A fórmula só funciona corretamente quando você a coloca no final da lista de dados.

Melhores ferramentas de produtividade de escritório

🤖 Assistente de IA do Kutools: Revolucionar a análise de dados com base em: Execução Inteligente   |  Gerar Código  |  Crie fórmulas personalizadas  |  Analise dados e gere gráficos  |  Invocar funções do Kutools...
Recursos mais comuns: Encontre, destaque ou identifique 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  |  Alternar status de visibilidade de colunas ocultas  |  Compare intervalos e colunas ...
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 Palavras, Conversão de moedas, ...)   |   7 Unir e dividir Ferramentas (Combinar linhas avançadas, Dividir células, ...)   |   ... e mais

Aprimore suas habilidades de Excel com o Kutools para Excel e experimente uma eficiência como nunca antes. Kutools para Excel oferece mais de 300 recursos avançados para aumentar a produtividade e economizar tempo.  Clique aqui para obter o recurso que você mais precisa...

Descrição


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

  • Habilite a edição e leitura com guias em Word, Excel, PowerPoint, 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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thank you very much.
This comment was minimized by the moderator on the site
Hello,
You are welcome. Glad it helps. Any questions, please feel free to contact us. Have a great day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Please help me with Excel formula that update automatically without changing the cell reference manually when inserting new row at the bottom only. But not when inserting new row at the top. Thanks
This comment was minimized by the moderator on the site
This is really helpful ... except it does not update the row/column when copying and pasting this formula, so if I have a bunch of them, I have to update the column/row manually (like in the example, if I copy this to the adjacent column E, it still has D ...)

Unless someone knows a workaround to that problem, too?
This comment was minimized by the moderator on the site
you can use a different formula SUM(D$2:D12) as you insert a new row it continues to sum it up
This comment was minimized by the moderator on the site
I found that this only works if there is more than 1 row to total at the start.  Any ideas how you would do this for totalling 1 row to start and then adding in rows as you work on the spreadsheet?

This comment was minimized by the moderator on the site
You are the best! It works!
This comment was minimized by the moderator on the site
I have a simple cell reference in one of my cells down a column e.g.:"=H6", “=H7” etc. When I insert a row in Excel and copy formulas from row above, the cell reference in 'Opening Stock' does not update automatically in the row after the new blank row (should be equal to previous row balance, which is 60 now). But it updates correctly in all other rows below. Is there a way to force Excel to update cell reference to the cell in blank row above? Have searched the web, but did not get any satisfactory answer. I do not want to convert the data to a table, since it messes up the filters and formatting. Macros don't solve the problem either - they don't copy to the row following the blank one. Can anyone please help?
This comment was minimized by the moderator on the site
Hi Rayan!

Please if you see this let me know! You are the only one I found online who brought this issue up. However, my data is table not normal range. The automatic filling of the formula really helps and copy/pasting is a hassle. Anyway, when insert a row, the formulas update for all columns except one! In the row and the cell, instead of the formula shifting from =if(C24 = C25) to =if(C25 = C26), it goes to =if(C24 = C26) although C24 is not fixed!!! I've really tried all possible solutions...................
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations