=IF(LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))=1, LEFT(A1, FIND("/", A1)-1), LEFT(A1, FIND("/", A1, FIND("/", A1, LEN(SUBSTITUTE(A1, "/", "", INT((LEN(A1) - LEN(SUBSTITUTE(A1, "/", ""))) / 2) + 1)))) - 1))
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme