joedigital

xl-lambda extractFromFilename

Oct 2nd, 2025 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VisualBasic 0.28 KB | Source Code | 0 0
  1. =LAMBDA(whichvalue,
  2.  LET(
  3.    fnRaw,CELL("filename",code!XFB3),
  4.    fnStart,FIND("[",fnRaw)+1,
  5.    fnEnd,FIND("]",fnRaw),
  6.    fnLen,FIND(" - 07. A",fnRaw)-8,
  7.    appID,MID(fnRaw,fnStart,7),
  8.    appName,MID(fnRaw,fnStart+8,fnLen-fnStart),
  9.    IF(whichvalue="appID",appID,appName)
  10.  )
  11. )
  12.  
Tags: lambda
Advertisement
Add Comment
Please, Sign In to add comment