0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

住所を都道府県で分割

Last updated at Posted at 2025-10-23

住所の中から都道府県だけ抜き出したい時の数式。
今の所これが一番スマートかも。

REGEXEXTRACTで抜き出す。
REGEXEXTRACT(x,".*[都道府県]")

複数行に対して処理する場合はこう。
=byrow(A:A,lambda(x,if(x="",,REGEXEXTRACT(x,".*[都道府県]"))))

結果はこんな感じ

image.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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?