メインコンテンツへスキップ

Excelの別の列のセル値に基づいて列に自動番号を付けるにはどうすればよいですか?

値1に基づくドキュメント番号列
たとえば、Excelにデータの範囲があり、以下のスクリーンショットに示すように、列Bの値に基づいて列Aに番号を付けたいとします。 このチュートリアルでは、Excelでこのタスクを解決するための式を説明します。
別の列の値に基づいて列に自動番号を付ける

矢印青い右バブル 別の列の値に基づいて列に自動番号を付ける

幸い、Excelの葯列の値に基づいて列にすばやく番号を付けることができる数式があります。

1.番号を付ける列の最初のセルに1を入力します。 スクリーンショットを参照してください:

値2に基づくドキュメント番号列

2.番号を付ける列のXNUMX番目のセルに、この数式を入力します =IF(B1:B13="Total","",COUNTIF($A$1:A1,">0")+1)、Enterキーを押します。

値3に基づくドキュメント番号列

先端:上記の数式で、B1:B13は番号を付ける列の範囲、A1は1を入力したセル、「合計」は番号を付けたくない値です。

3.次に、自動入力ハンドルを番号を付ける列範囲にドラッグします。 スクリーンショットを参照してください:

値4に基づくドキュメント番号列


関連記事:

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi Sir,

When Cell 1 is Number this FT20240001 and Next need to auto calculate FT20240002 ( FT20240001 +1) in If function.

Thanks
This comment was minimized by the moderator on the site
How do i take set values and add different varying values to it for projection.
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
This formula works but my first number based on the criteria is starting with 2 and then 3,4,5 onwards. How can I get it to start at 1?
This comment was minimized by the moderator on the site
Hi, you can change the last argument 1 in the formula to 2, like =IF(B1:B13="Total","",COUNTIF($A$1:A1,">0")+2).
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...

A B
1 1
2 1
3 1
1 2
2 2

Algo asi....
This comment was minimized by the moderator on the site
In cell A3 paste the following

=IF(B3=B2,"",COUNTIF($A$2:A2,">0")+1)
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
Did you ever get an answer to this? I have the same question.
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?

COLUMN# A COLUMN# BWO/20-21/001 001-01WO/20-21/001 001-02
WO/20-21/001 001-03
WO/20-21/002 002-01
WO/20-21/002 002-02
WO/20-21/002 002-03
WO/20-21/002 002-04
WO/20-21/003 003-01


There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations