Como numerar automaticamente uma coluna com base no valor da célula em outra coluna no Excel?
Autor: SolÚltima modificação: 2020-05-26
Por exemplo, você tem um intervalo de dados no Excel e deseja numerar a coluna A com base nos valores da coluna B, conforme a captura de tela mostrada abaixo. Agora, este tutorial apresentará uma fórmula para resolver essa tarefa no Excel. Numerar automaticamente uma coluna com base nos valores de outra coluna
Numerar automaticamente uma coluna com base nos valores de outra coluna
Felizmente, existe uma fórmula que pode numerar rapidamente uma coluna com base nos valores de outra coluna no Excel.
1. Digite 1 na primeira célula da coluna que deseja numerar. Veja a imagem:
2. Na segunda célula da coluna que você deseja numerar, digite esta fórmula =IF(B1:B13="Total","",COUNTIF($A$1:A1,">0")+1)e pressione a tecla Enter.
Dica: Na fórmula acima, B1: B13 é o intervalo da coluna que você deseja numerar com base, A1 é a célula na qual você digitou 1 e “Total” é o valor que você não deseja numerar.
3. Em seguida, arraste a alça de preenchimento automático para o intervalo de colunas que deseja numerar. Veja a imagem:
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...
This comment was minimized by the moderator on the site
Sales data and applying a sequential job number that grows by 1 for each entry?As sales data is entered into a table, at the time of the client acceptance a date stamp is applied to the relevant cell in that rowAcceptance is random and the row (client) to be next accepted is also random.
I have a Column of cells (Column A) partially populated by a numerical date range that increases as per the date
Without sorting the table.
How do I write a formula that will calculate a sequential whole number starting at 1 in the corresponding cellegcell A32020 Nov 15th 13:17:50 (time stamp)(equates to) 44150.5540549768
A10 next entry 2020 Nov 15th 11:48:16 (time stamp)44150.4918552083
A13 next entry
2020 Nov 15th 11:48:26 (time stamp)
44150.4919619213
etc
In the corresponding cellsC3 needs to return a value of 3C10 needs to return a value of 1C13 a value of 2etcgrowing by 1 each time
Any ideas?
This comment was minimized by the moderator on the site
Yo necesito hacer lo mismo que este ejemplo, pero en mi caso es requerido que me de un consecutivo segun un numero X en una columna, pero que si me varia el numero X en esa columna, me de un consecutivo diferente ej...
This comment was minimized by the moderator on the site
How do i autonumber based on a value but in my case there is no "TOTAL". This is how my data is:
UNKNOWN
UNKNOWN
UNKNOWN
SEG034-PI-012.038
SEG034-PI-012.039
SEG034-PI-012.038
SEG034-PI-012.038
SEG034-PI-012.038
SEG034-PI-001.019
SEG034-PI-001.019
UNKNOWN
UNKNOWN
SEG034-PI-001.019
SEG034-PI-001.019
SEG034-PI-001.019
SEG034-PI-001.021
SEG034-PI-001.021
SEG034-PI-001.021
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
CT0034.0202.004
CT0034.0202.004
So i basically want to put number (ID), if the value repeats itll get the same value if it already has assigned (in the example data unknown repeats randomly).
Please help.
This comment was minimized by the moderator on the site
Hi there,
Hope this works. =IF(A3="";"";IF(IFERROR(VLOOKUP(A3;$A$2:B2;2;FALSE);"N/A")="N/A";MAX($B$2:B2+1);VLOOKUP(A3;$A$2:B2;2;FALSE)))
REMEMBER TO MAKE YOUR FIRST CELL ex. "B1", 1 THEN BELOW IT ADD THE FORMULA ex. "B2".
This comment was minimized by the moderator on the site
Hi, I have similar question. I have a alphanumeric values of Column A, some times repeating some time unique.. So Base on the numerical values available in the Column A, I want the a serial number auto assigned in Column B as shown below.Can any help please?