I want to extract first 22 words from a text string in column A in google sheet.
CodePudding user response:
If you don't mind to use a custom function here you go:
function GET22WORDS(cell) {
return cell.match(/\w{3,}/g).slice(0,22).join('\n');
}