I implemented an MD5 formula as mentioned here: Hash of a cell text in Google Spreadsheet.
function MD5 (input) {
var rawHash = Utilities.computeDigest(Utilities.DigestAlgorithm.MD5, input);
Utilities.sleep(100)
var txtHash = '';
for (i = 0; i < rawHash.length; i++) {
var hashVal = rawHash[i];
if (hashVal < 0) {
hashVal += 256;
}
if (hashVal.toString(16).length == 1) {
txtHash += '0';
}
txtHash += hashVal.toString(16);
}
return txtHash;
}
Now I want to run this with an ARRAYFORMULA
but I can't get it working. I tried this:
=ARRAYFORMULA(({"FiBu MD5";IF(ISBLANK(AG2:AG),"",(MD5(O2:O)))}))
The error I'm getting is:
"Cannot convert Array to (class)[]. (line 2)."
Does anyone have an idea how to solve this?