Calc KEEPTEXT function

The KEEPTEXT function returns a string with only the non-numeric characters from the input string.

Help CentreFunctions & Formulas

For a full list of available calculation functions, please read What calculation functions are supported.


Description

The KEEPTEXT function is used to extract only the non-numeric characters from a given string. This is useful when you want to clean up a string by removing all numeric characters.


Syntax

KEEPTEXT(text)


The KEEPTEXT function syntax has the following argument:

  • text - Required. The text string from which you want to extract non-numeric characters.

Example

FormulaDescriptionResult
=KEEPTEXT("abc123def456")Extracts text from the string "abc123def456"abcdef
=KEEPTEXT("Order #7890")Extracts text from the string "Order #7890"Order #

Errors

For a full list of formula errors, please read Formula errors.


Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.