Làm cách nào để tự động đánh số một cột dựa trên giá trị ô trên một cột khác trong Excel?
Tác giả: Mặt trờiSửa đổi lần cuối: 2020-05-26
Ví dụ: bạn có một dải dữ liệu trong Excel và bạn muốn đánh số cột A dựa trên các giá trị trong cột B như hình minh họa bên dưới. Bây giờ, hướng dẫn này sẽ cho bạn biết một công thức để giải quyết công việc này trong Excel. Tự động đánh số một cột dựa trên các giá trị trên một cột khác
Tự động đánh số một cột dựa trên các giá trị trên một cột khác
May mắn thay, có một công thức có thể nhanh chóng đánh số một cột dựa trên các giá trị của cột bao phấn trong Excel.
1. Nhập 1 vào ô đầu tiên của cột bạn muốn đánh số. Xem ảnh chụp màn hình:
2. Trong ô thứ hai của cột bạn muốn đánh số, hãy nhập công thức này =IF(B1:B13="Total","",COUNTIF($A$1:A1,">0")+1)và nhấn phím Enter.
Mẹo: Trong công thức trên, B1: B13 là dải cột bạn muốn đánh số dựa trên và A1 là ô bạn đã nhập 1 vào và “Tổng” là giá trị bạn không muốn đánh số.
3. Sau đó, kéo chốt tự động điền vào phạm vi cột bạn muốn đánh số. Xem ảnh chụp màn hình:
Nâng cao kỹ năng Excel của bạn với Kutools for Excel và trải nghiệm hiệu quả hơn bao giờ hết. Kutools for Excel cung cấp hơn 300 tính năng nâng cao để tăng năng suất và tiết kiệm thời gian. Bấm vào đây để có được tính năng bạn cần nhất...
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?