LoginSignup
0
0

Excelの表で行方向に数字の連番を振る式

Last updated at Posted at 2023-11-04

例えば、ExcelでセルA2からA列で行方向に連番を振る場合、連番を振りたいセルに以下の式を入力する。

=MAX($A$1:INDIRECT("$A"&ROW()-1))+1

行の入れ替えを行っても、この式は参照範囲が適切なため、変更不要である。

*行入れ替え前
seq_pre.png

*行入れ替え後
seq_pro.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0