Hur numrerar jag en kolumn automatiskt baserat på cellvärde i en annan kolumn i Excel?
Författare: SunSenast ändrad: 2020-05-26
Till exempel har du en rad data i Excel, och du vill numrera kolumn A baserat på värdena i kolumn B som visas nedan. Nu kommer denna handledning att berätta en formel för att lösa denna uppgift i Excel. Automatiskt numrera en kolumn baserat på värden i en annan kolumn
Automatiskt numrera en kolumn baserat på värden i en annan kolumn
Lyckligtvis finns det en formel som snabbt kan numrera en kolumn baserat på värdena i en annan kolumn i Excel.
1. Skriv 1 i den första cellen i kolumnen du vill numrera. Se skärmdump:
2. Skriv den här formeln i den andra cellen i kolumnen du vill numrera =IF(B1:B13="Total","",COUNTIF($A$1:A1,">0")+1)och tryck på Enter.
Tips: I ovanstående formel är B1: B13 det kolumnintervall du vill räkna ut baserat på, och A1 är cellen du skrev in 1 och "Totalt" är det värde du inte vill räkna med.
3. Dra sedan autofyllhandtaget till det kolumnintervall du vill numrera. Se skärmdump:
Uppgradera dina Excel-färdigheter med Kutools för Excel och upplev effektivitet som aldrig förr. Kutools för Excel erbjuder över 300 avancerade funktioner för att öka produktiviteten och spara tid. Klicka här för att få den funktion du behöver mest...
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?