Skip to content

Instantly share code, notes, and snippets.

@curioshiki
Created March 30, 2022 07:18
Show Gist options
  • Select an option

  • Save curioshiki/65dad81cced8913c37ee241408b7629a to your computer and use it in GitHub Desktop.

Select an option

Save curioshiki/65dad81cced8913c37ee241408b7629a to your computer and use it in GitHub Desktop.
LAMBDA numeraljp() for Excel
NUMERALJP = LAMBDA(x,
if(x<>0,
concat(
if(x/10000/10000/10000>1,concat(int(x/10000/10000/10000),"兆"),""),
if(mod(x,10000*10000*10000)/10000/10000>1,
concat(int(mod(x,10000*10000*10000)/10000/10000),"億"),""),
if(mod(x,10000*10000)/10000>1,
concat(int(mod(x,10000*10000)/10000),"万"),""),
if(mod(x,10000)>0,
mod(x,10000),"")
),0)
)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment