Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Sort One Column or Multiple Columns in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • Everything about Charts in Excel
  • How to do a t-Test in Excel?
  • How to Create One and Two Variable Data Tables in Excel

References

  • Perform case-sensitive Lookup in Excel
  • How to use Excel COLUMN Function
  • Vlookup Examples in Excel
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • To count total rows in a range in Excel

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation must begin with
  • Excel Data validation must contain specific text
  • Excel Data validation specific characters only
  • Excel Data validation date in specific year

How to abbreviate names or words in Excel

by

To abbreviate text that contains capital letters, you can try this array formula based on the TEXTJOIN function, which is new in Excel 2016. You can use this approach to create initials from names, or to create acronyms. Only capital letters will survive this formula, so the source text must include capitalized words. You can use the PROPER function to capitalize words if needed. See example below;

Worked Example:   How to extract nth word from text string in excel

 Formula

=TEXTJOIN("",1,IF(ISNUMBER(MATCH(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),ROW(INDIRECT("63:90")),0)),MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1),""))

How to abbreviate names or words in Excel

Explanation

In the example shown, the formula in C5 is:

=TEXTJOIN("",1,IF(ISNUMBER(MATCH(CODE(MID(B5,ROW(INDIRECT("1:"&LEN(B5))),1)),ROW(INDIRECT("63:90")),0)),MID(B5,ROW(INDIRECT("1:"&LEN(B5))),1),""))

How this formula works

Working from the inside out, the MID function is used to cast the string into an array of individual letters:

MID(B5,ROW(INDIRECT("1:"&LEN(B5))),1)

In this part of the formula, MID, ROW, INDIRECT, and LEN are used to convert a string to an array or letters, as described here.

MID returns an array of all characters in the text.

Worked Example:   Count cells that contain numbers in Excel

{“W”;”i”;”l”;”l”;”i”;”a”;”m”;” “;”S”;”h”;”a”;”k”;”e”;”s”;”p”;”e”;”a”;”r”;”e”}

This array is fed into the CODE function, which outputs an array of numeric ascii codes, one for each letter.

Separately, ROW and INDIRECT are used to create another numeric array:

ROW(INDIRECT("63:90")

This is the clever bit. The numbers 63 to 90 correspond to the ascii codes for all capital letters between A-Z.  This array goes into the MATCH function as the lookup array, and the original array of ascii codes is provided as the lookup value.

Worked Example:   Highlight cells that contain one of many in Excel

MATCH then returns either a number (based on a position) or the #N/A error. Numbers represent capital letters, so the ISNUMBER function is used together with the IF function to filter results. Only characters whose ascii code is between 63 and 90 will make into the final array, which is then reassembled with the TEXTJOIN function to create the final abbreviation or acronym.

Post navigation

Previous Post:

Get day from date in Excel

Next Post:

Calculate loan interest in given year in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel
  • IF with boolean logic in Excel

Date Time

  • Display the current date in Excel
  • Extract date from a date and time in Excel
  • Calculate date overlap in days in Excel
  • Display Date is same month in Excel
  • Convert text to date in Excel

Grouping

  • Group times into unequal buckets in Excel
  • How to randomly assign data to groups in Excel
  • Calculate conditional mode with criteria in Excel
  • Categorize text with keywords in Excel
  • How to randomly assign people to groups in Excel

General

  • Subtotal invoices by age in Excel
  • Count cells that do not contain errors in Excel
  • How to choose page/paper size in Excel before Printing
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • How to create dynamic worksheet reference in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning