Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
33
Task/SEDOLs/Excel/sedols-1.excel
Normal file
33
Task/SEDOLs/Excel/sedols-1.excel
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
SEDOLCHECKSUM
|
||||
=LAMBDA(s,
|
||||
IF(6 = LEN(s),
|
||||
LET(
|
||||
cs, MID(s, SEQUENCE(1, 6, 1, 1), 1),
|
||||
isVowel, LAMBDA(c,
|
||||
ELEM(c)({"A","E","I","O","U"})
|
||||
),
|
||||
sedolValue, LAMBDA(c,
|
||||
LET(
|
||||
ic, CODE(c),
|
||||
IF(65 > ic,
|
||||
ic - 48,
|
||||
(ic + 10) - 65
|
||||
)
|
||||
)
|
||||
),
|
||||
IF(OR(isVowel(cs)),
|
||||
" -> Invalid vowel in SEDOL string",
|
||||
MOD(
|
||||
10 - MOD(
|
||||
SUM(
|
||||
MUL({1,3,1,7,3,9})(
|
||||
sedolValue(cs)
|
||||
)
|
||||
), 10
|
||||
), 10
|
||||
)
|
||||
)
|
||||
),
|
||||
"Expected a 6-character SEDOL"
|
||||
)
|
||||
)
|
||||
10
Task/SEDOLs/Excel/sedols-2.excel
Normal file
10
Task/SEDOLs/Excel/sedols-2.excel
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
ELEM
|
||||
=LAMBDA(x,
|
||||
LAMBDA(xs,
|
||||
ISNUMBER(MATCH(x, xs, 0))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
MUL
|
||||
=LAMBDA(a, LAMBDA(b, a * b))
|
||||
Loading…
Add table
Add a link
Reference in a new issue