GPT.Format - advanced data formatting and transformation

GPT.Format is an AI function that formats text, dates, currencies, addresses and more to the specified target format.
How to use GPT.Format function in Excel: formula and results

Syntax

=GPT.Format(input, to_format, [from_format])
ArgumentDescription
input
[required]
Input text to format. Cannot be empty.
to_format
[required]
Specifies how the input text should be formatted.
from_format
[optional]
The format of the input text if known. Helps improve accuracy.

Before you begin, add Functions to Excel

Functions are one of the 20+ features within XLTools Add-in for Excel. Works in Excel 2019, 2016, 2013, 2010, desktop Office 365.

Get started with XLTools ribbon
– free trial gives you 14 days of full access to all features.

Examples [download]

Download this spreadsheet with examples and try the function yourself.


FormulaDescriptionResult
=GPT.Format("1234.56", "currency in words", "number")Converts "1234.56" into words as currency."One thousand two hundred thirty-four dollars and fifty-six cents"
=GPT.Format("25Dec2021", "MM/DD/YYYY", "DDMMMYYYY")Decodes and reformats "25Dec2021" into "12/25/2021"."12/25/2021"
=GPT.Format("1234MainStNewYorkNY10001", "address structured", "unstructured")Reformats "1234MainStNewYorkNY10001" into a structured address."1234 Main St, New York, NY, 10001"

Any questions or suggestions?
How can we help?