Formats a person's display name from first/last and other name parts
=TRIM(TEXTJOIN(" ", TRUE,
TRIM(title),
TRIM(first),
TRIM(middle),
TRIM(last),
TRIM(suffix)
))This function builds a clean, human-readable display name from separate name components such as first name, last name, middle name/initial, title, and suffix. It's useful when you store name parts in separate columns but want to consistently display names in a standardized format (for directories, contact lists, CRM exports, badges, or mailing lists). For example, if you have "first", "last", and "title" name pieces in individual fields and want to output something like Dr Jamie Cook, you can use =DISPLAY_NAME(A1, B1, "", C1, "") to generate the combined display name in one cell.
Use the inputs below to create DISPLAY_NAME as a reusable custom function in Google Sheets.
Learn how to add custom functions to Google SheetsDISPLAY_NAME
Formats a person's display name from first/last and other name parts
=TRIM(TEXTJOIN(" ", TRUE, TRIM(title), TRIM(first), TRIM(middle), TRIM(last), TRIM(suffix) ))
first
last
middle
title
suffix
First name
Jamie
Last name
Cook
Middle name or middle initial
L
Title
Dr.
Suffix
Jr.
Other functions in the same category: Formatting & Display
Formats a number dynamically as thousands, millions, billions, or trillions.
Converts a time duration in minutes to a readable format (e.g., 1 hr 30 min)
Returns the month name for a given date
Returns the weekday name for a given date
Converts a numerical score into a letter grade
Convert numbers to star rating
Named functions enable the creation of custom, reusable formulas that mimic built-in functions, streamlining calculations and data manipulations. These functions simplify complex formulas, making spreadsheets more readable and less prone to errors. By encapsulating intricate logic within a single function call, they enhance consistency across your data. Utilizing named functions reduces the need to write lengthy formulas repeatedly, thereby improving workflow efficiency and productivity in data analysis and management.
Download and import — fastest way to add the function but does not include argument descriptions and examples
Follow these simple steps to download and import a function into your spreadsheet. This method is the quickest and easiest way to add the named function to your Google Sheets document, but will not include the argument description and examples.
Once added, the function will be ready to use in your document like any other built-in function. Simply type the function name and provide the required inputs to use it in your calculations.
Copy and paste — copy and paste each property one at a time
Follow these simple steps to integrate a custom named function into your spreadsheet:
Once added, the function will be ready to use in your document like any other built-in function. Simply type the function name and provide the required inputs to use it in your calculations.