Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Converting ASCII values

Topic Labels: Formulas
Solved
Jump to Solution
1917 1
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to convert integer values into ASCII characters in Formula columns? Pseudo code example: convertToChar(71) returns the char ‘G’.

1 Solution

Accepted Solutions

Hi @Josh_Jennings - don’t think you can do this with a formula, but you can achieve it with a script block:

Screenshot 2020-03-10 at 20.10.01

// @ts-nocheck
let table = base.getTable("Table");

let tableQuery = await table.selectRecordsAsync();

for (let record of tableQuery.records) {
    let result = record.getCellValueAsString("Name");
    let updateValue = String.fromCharCode(result);
    await table.updateRecordAsync(record, {
        "Result": updateValue
    })
}

JB

See Solution in Thread

1 Reply 1

Hi @Josh_Jennings - don’t think you can do this with a formula, but you can achieve it with a script block:

Screenshot 2020-03-10 at 20.10.01

// @ts-nocheck
let table = base.getTable("Table");

let tableQuery = await table.selectRecordsAsync();

for (let record of tableQuery.records) {
    let result = record.getCellValueAsString("Name");
    let updateValue = String.fromCharCode(result);
    await table.updateRecordAsync(record, {
        "Result": updateValue
    })
}

JB