マクロや関数で列番号を使う
この記事のポイント
- 列を決める
- 番号を調べる
- コードに使う
Excel列変換 で調べた列番号は、マクロや関数の引数にそのまま使えます。
手順
- 列を決める
- 番号を調べる
- コードに使う
列の指定を番号にしておくと、列を足したときにも直しやすくなります。
Excel 列番号・列文字 変換を使う(無料)
あわせて使えるツール
- ExcelをCSV・JSONに変換する:Excelのシートを、CSV・TSV・JSONに変換します。
- CSVをExcelファイルにする:CSVを、Excelで開ける .xlsx ファイルにします。
- CSVを結合・分割・列抜き出し:CSVの結合・行数での分割・列の取り出しをします。
同じツールの、ほかの解説
Using Column Numbers in Macros and Formulas
Key points
- Pick the column
- Find its number
- Use it in code
A column number found with Excel Column Converter can be used directly in macros or formulas.
Steps
- Pick the column
- Find its number
- Use it in code
Using a number for the column makes later edits easier.
Use "Excel Column Number and Letter Converter" (free)
Tools that go well with this
- Convert Excel to CSV or JSON: Convert an Excel sheet to CSV, TSV or JSON.
- Convert CSV to Excel (.xlsx): Convert a CSV to an Excel (.xlsx) file.
- Merge, Split and Pick Columns from CSV: Merge CSV files, split by rows, or keep only chosen columns.