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

Data Analysis

  • How To Insert and Customize Sparklines in Excel
  • How To Compare Two Lists in Excel
  • Randomize/ Shuffle List in Excel
  • Add Outline to Data in Excel
  • How To Perform and Interpret Regression Analysis in Excel

References

  • How to use Excel OFFSET function
  • How to use Excel ROWS Function
  • How to get relative row numbers in a range in Excel
  • How to get last column number in range in Excel
  • How to get relative column numbers in a range in Excel

Data Validations

  • Excel Data validation specific characters only
  • Excel Data validation require unique number
  • Excel Data validation whole percentage only
  • Excel Data validation unique values only
  • Excel Data validation number multiple 100

Category: Text Functions

Excel TEXT functions return a number in a specified number format

ASC function: Description, Usage, Syntax, Examples and Explanation

by

What is ASC function in Excel? ASC function is one of TEXT functions in Microsoft Excel that changes full-width (double-byte) characters to half-width (single-byte) characters. Syntax of ASC function ASC(text) The ASC function syntax has the following arguments: Text    Required. The text or a reference to a cell that contains the text you want to change. If …

Continue Reading

BAHTTEXT function: Description, Usage, Syntax, Examples and Explanation

by

What is BAHTTEXT function in Excel? BAHTTEXT function is one of TEXT functions in Microsoft Excel that converts a number to Thai text and adds a suffix of “Baht.” You can change the Baht format to a different style in the Excel desktop application by using Regional and Language Options (Windows Start menu, Control Panel). Syntax of BAHTTEXT function BAHTTEXT(number) The …

Continue Reading

EXACT function: Description, Usage, Syntax, Examples and Explanation

by

What is EXACT function in Excel? EXACT function is one of TEXT functions in Microsoft Excel that compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise. EXACT is case-sensitive but ignores formatting differences. Use EXACT to test text being entered into a document. Syntax of EXACT function EXACT(text1, text2) The …

Continue Reading

DOLLAR function: Description, Usage, Syntax, Examples and Explanation

by

What is DOLLAR function in Excel? DOLLAR function is one of TEXT functions in Microsoft Excel that converts a number to text using currency format, with the decimals rounded to the number of places you specify. DOLLAR uses the $#,##0.00_);($#,##0.00) number format, although the currency symbol that is applied depends on your local language settings. Syntax of DOLLAR …

Continue Reading

DBCS function: Description, Usage, Syntax, Examples and Explanation

by

What is DBCS function in Excel? DBCS function is one of TEXT functions in Microsoft Excel that converts half-width (single-byte) letters within a character string to full-width (double-byte) characters. The name of the function (and the characters that it converts) depends upon your language settings. For Japanese, this function changes half-width (single-byte) English letters or …

Continue Reading

CONCATENATE function: Description, Usage, Syntax, Examples and Explanation

by

What is CONCATENATE function in Excel? CONCATENATE function is one of TEXT functions in Microsoft Excel that is used to join two or more text strings into one string. Syntax: CONCATENATE(text1, [text2], …)For example: =CONCATENATE(“Stream population for “, A2, ” “, A3, ” is “, A4, “/mile.”) =CONCATENATE(B2, ” “,C2) Important: In Excel 2016, Excel Mobile, and Excel …

Continue Reading

CONCAT function: Description, Usage, Syntax, Examples and Explanation

by

What is CONCAT function in Excel? CONCAT function is one of TEXT functions in Microsoft Excel that combines the text from multiple ranges and/or strings, but it doesn’t provide the delimiter or IgnoreEmpty arguments. Tip: To include delimiters (such as spacing or ampersands (&) between the texts you want to combine and to remove empty arguments …

Continue Reading

CODE function: Description, Usage, Syntax, Examples and Explanation

by

What is CODE function in Excel? CODE function is one of TEXT functions in Microsoft Excel that returns a numeric code for the first character in a text string. The returned code corresponds to the character set used by your computer. Operating environment Character set Macintosh Macintosh character set Windows ANSI Syntax of CODE function CODE(text) …

Continue Reading

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 …

Continue Reading

How to add a line break with a formula while joining text strings in Excel

by

To add a line break with a formula, you can use the concatenation operator (&) along with the CHAR function. Note: make sure you have text wrap enabled on cells that contain line breaks. Formula =”text”&CHAR(10)&”text” Explanation In the example shown the formula in E4 is: =B4&CHAR(10)&C4&CHAR(10)&D4 How this formula works This formula “glues together” …

Continue Reading

Add line break based on OS in Excel

by

To add a line break taking into account the current OS (Mac or Windows), you can use the INFO function to test the system and then return the correct break character — CHAR(10) for Windows, CHAR(13) for Mac. Note: make sure you have text wrap enabled on cells that contain line breaks. Formula =IF(INFO(“system”)=”mac”,CHAR(13),CHAR(10)) Explanation The character …

Continue Reading

How to Capitalize first letter in a sentence in Excel

by

This tutorial shows how to capitalize first letter in Excel. In Microsoft office word it is called sentence case, in Excel to capitalize the first letter in a word or string, you can use a formula based on the LEFT, MID, and LEN functions. Formula =UPPER(LEFT(A1))&MID(A1,2,LEN(A1)) Explanation  In the example shown, the formula in C5 is: …

Continue Reading

How to check if cell contains all of many things in Excel

by

If you want to test a cell to see if it contains all items in a list, you can do so with a formula that uses the SEARCH function, with help from the ISNUMBER, SUMPRODUCT, and COUNTA functions. Case study: Let’s say you have a list of text strings in the range B5:B8, and you want …

Continue Reading

How to check if cell contains number in Excel

by

To test if a cell (or any text string) contains a number, you can use the FIND function together with the COUNT function. In the generic form of the formula (above), A1 represents the cell you are testing. The numbers to be checked (numbers between 0-9) are supplied as an array. Formula =COUNT(FIND({0,1,2,3,4,5,6,7,8,9},A1))>0 Explanation In …

Continue Reading

How to check if cell contains one of many things in Excel

by

This tutorial shows how to check if cell contains one of many things in Excel using example below: If you want to test a cell to see if it contains one of several things, you can do so with a formula that uses the SEARCH function, with help from the ISNUMBER and SUMPRODUCT functions. Formula =SUMPRODUCT(–ISNUMBER(SEARCH(things,A1)))>0 …

Continue Reading

How to check if cell contains some words but not others in Excel

by

To test a cell to see if contains certain words but not others, you can use an array formula based on the COUNT and SEARCH functions, wrapped in the AND function. Formula {=AND(COUNT(SEARCH(inc,A1))>0,COUNT(SEARCH(exc,A1))=0)} Explanation In the example shown, the formula in C5 is: {=AND(COUNT(SEARCH(inc,B5))>0,COUNT(SEARCH(exc,B5))=0)} This formula returns TRUE when B5 contains any of the words …

Continue Reading

How to check cell contains which things in Excel

by

If you have a list of things (words, substrings, etc) and want to find out which of these things appear in a cell, you can build a simple table and use a formula based on the SEARCH function. Setup Suppose you have a cells that contain text that mentions various colors, and you want to …

Continue Reading

Clean and reformat telephone numbers using SUBSTITUTE function in Excel

by

One way to clean up and reformat telephone numbers is to strip out all extraneous characters, then apply Excel’s built-in telephone number format. Formula =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE (SUBSTITUTE(SUBSTITUTE(A1,”(“,””), “)”,””),”-“,””),” “,””),”.”,””)+0 Note that the cell appears in the middle, with function names above and substitutions below. Not only does this make the formula easier to read, it also …

Continue Reading

How to compare two text strings in Excel

by

If you need to compare two text strings in Excel to determine if they’re equal, you can use the EXACT function. Formula =EXACT(text1, text2) Explanation For example, if you want to compare A2 with B2, use: =EXACT(A2,B2) If the two strings are identical, EXACT will return TRUE. If not, EXACT will return FALSE. You can …

Continue Reading

How to display conditional message with REPT function in Excel

by

To display a conditional message, without the IF function, you can use boolean logic and the REPT function. Formula =REPT(“message”,logical test) Explanation  In the example shown, the formula in D5 (copied down) is: =REPT(“low”,C5<100) If the value in column C is less than 100, the formula returns “low”. If not, the formula returns an empty string (“”), which …

Continue Reading

How to convert numbers to text using TEXT function in Excel

by

To convert numbers into text values, you can use the TEXT function. Normally, you want to maintain numeric values in Excel, because they can be used in formulas with other numbers. However, there are situations where converting numbers to text makes sense. For example, you might want to perform a lookup on numbers using wildcards, which …

Continue Reading

How to convert text string to array in Excel

by

To convert a string to an array that contains one item for each letter, you can use an array formula based on the MID, ROW, LEN and INDIRECT functions. This can sometimes be useful inside other formulas that manipulate text at the character level.  Formula {=MID(string,ROW(INDIRECT(“1:”&LEN(string))),1)} Note: this is an array formula and must be …

Continue Reading

Convert text to numbers using VALUE function in Excel

by

To convert simple text values to numbers, you can use the the VALUE function, or simply add zero as described below. Formula =VALUE(A1) Explanation In the example shown, the formula in C5 is: =VALUE(B5) Background Sometimes Excel ends up with text in a cell, when you really want a number. There are many reasons this …

Continue Reading

How to count keywords in a range of cell

by

To count the number of specific words or keywords that appear in a given cell, you can use a formula based on the SEARCH, ISNUMBER, and SUMPRODUCT functions.  Formula =SUMPRODUCT(–ISNUMBER(SEARCH(keywords,A1))) Note: if a keyword appears more than once in a given cell, it will only be counted once. In other words, the formula only counts …

Continue Reading

How to count line breaks in cell in Excel worksheet

by

This tutorial shows how to count line breaks in cell in Excel worksheet using example below. To count total lines in a cell, you can use a formula based on the LEN, SUBSTITUTE, and CHAR functions. Formula =LEN(B5)-LEN(SUBSTITUTE(B5,CHAR(10),””))+1 Explanation In the example, we are using this formula: =LEN(B5)-LEN(SUBSTITUTE(B5,CHAR(10),””))+1 How the formula works First, the LEN function counts …

Continue Reading

How to count total words in a cell in Excel

by

To count the total words in a cell, you can use a formula based on the LEN and SUBSTITUTE functions. Formula =LEN(A1)-LEN(SUBSTITUTE(A1,” “,””))+1 Explanation In the example shown, C3 contains this formula: =LEN(TRIM(B3))-LEN(SUBSTITUTE(B3,” “,””))+1 How the formula works SUBSTITUTE removes all spaces from the text, then LEN calculates the length of the text without spaces. This …

Continue Reading

How to count total words in a range in Excel

by

If you want to count the total words in a range of cells, you can do with a formula that uses LEN and SUBSTITUTE, along with the SUMPRODUCT function. Formula =SUMPRODUCT(LEN(TRIM(range))-LEN(SUBSTITUTE(range,” “,””))+1) Note: The formula inside SUMPRODUCT will return 1 even if a cell is empty. If you need to guard against this problem, you can …

Continue Reading

Split text and numbers in Excel

by

To separate text and numbers, you can use a formula based on the FIND function, the MIN function, and the LEN function with the LEFT or RIGHT function, depending on whether you want to extract the text or the number. Formula =MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&”0123456789″)) Explanation In the example shown, the formula in C5 is: =MIN(FIND({0,1,2,3,4,5,6,7,8,9},B5&”0123456789″)) which returns …

Continue Reading

Split numbers from units of measure in Excel

by

To split a number from a unit value, you need to determine the position of the last number. If you add 1 to that position, you have the start of the unit text. Note: these is an experimental formula that uses a hard coded array constant, set down here for reference and comment. Casually tested …

Continue Reading

Split dimensions into two parts in Excel Worksheet

by

If you have worksheet that contains text dimensions (i.e. “50 ft x 200 ft” etc.) you can split the into two parts with formulas that use several text functions. Explanation Background A common annoyance with data is that it may be represented as text instead of numbers. This is especially common with dimensions, which may …

Continue Reading

How to split text string at specific character in Excel

by

To split a text string at a certain character, you can use a combination of the LEFT, RIGHT, LEN, and FIND functions. Formula =LEFT(text,FIND(character,text)-1) Explanation In the example shown, the formula in C5 is: =LEFT(B5,FIND(“_”,B5)-1) And the formula in D5 is: =RIGHT(B5,LEN(B5)-FIND(“_”,B5)) How these formulas work The first formula uses the FIND function to locate …

Continue Reading

How to strip protocol and trailing slash from URL in Excel

by

To remove the protocol (i.e. http://, ftp://, etc.) and trailing slash from a URL, you can use a formula based on the MID, FIND, and LEN functions. Formula =MID(url,FIND(“//”,url)+2,LEN(url)-FIND(“//”,url)-1-(RIGHT(url)=”/”)) Explanation In the example shown, the formula in C5 is: =MID(B4,FIND(“//”,B4)+2,LEN(B4)-FIND(“//”,B4)-1-(RIGHT(B4)=”/”)) How this formula works The core of this formula is the MID function, which extracts …

Continue Reading

How to create email address from name in Excel

by

To build email addresses using first and last names, you can use a formula that concatenates values, with help from the LOWER and LEFT functions as needed. See example below: Formula =LOWER(LEFT(first)&last)&”@domain.com” Explanation In the example shown, the formula in D5 is: =LOWER(LEFT(C5)&B5)&”@”&”acme.com” How this formula works For a name like “Tim Brown”, this formula …

Continue Reading

How to remove trailing slash from url in Excel

by

To remove a trailing slash from a URL or path, you can use a formula based on the LEFT and LEN functions. Formula =LEFT(url,LEN(B4)-(RIGHT(url)=”/”)) Explanation In the example shown, the formula in cell C6 is: =LEFT(B4,LEN(B4)-(RIGHT(B4)=”/”)) How this formula works At the core, this formula uses the LEFT function to return text starting from the …

Continue Reading

How to get top level domain (TLD) in Excel

by

To extract the top level domain (called “TLD”)  from a list of domain names or email addresses, you can use a rather complex formula that uses several functions. In the formula below, domain represents a domain or email address in normal “dot” syntax. Formula =RIGHT(domain,LEN(domain)-FIND(“*”,SUBSTITUTE(domain,”.”,”*”, LEN(domain)-LEN(SUBSTITUTE(domain,”.”,””))))) Explanation In the example, the active cell contains this formula: …

Continue Reading

How to get page from URL in Excel

by

To extract the page, or the part of a path after the last forward slash (/), you can use a formula based on several Excel functions: TRIM, RIGHT, SUBSTITUTE, and REPT. Formula =TRIM(RIGHT(SUBSTITUTE(url,”/”,REPT(” “,100)),100)) Explanation In the example shown, the formula in C5 is: =TRIM(RIGHT(SUBSTITUTE(B5,”/”,REPT(” “,100)),100)) How this formula works At the core, this formula …

Continue Reading

How to extract name from email address in Excel

by

If want to extract the name part of an email address, you can do so with a formula that uses the LEFT and FIND functions. In the formula below, email represents the email address you are working with. Formula =LEFT(email,FIND(“@”,email)-1) Explanation In the example, we are using this formula: =LEFT(C4,FIND(“@”,C4)-1) Here’s how the formula works: …

Continue Reading

How to extract domain name from URL in Excel

by

If you want to extract the domain name from a complete URL, you can do so with a formula that uses  the LEFT and FIND functions. See example: In the formula below, url is the the URL you are working with. Formula =LEFT(url,FIND(“/”,url,9)) Explanation In the example, we are using this formula: =LEFT(B4,FIND(“/”,B4,9)) Here’s how …

Continue Reading

How to extract domain from email address in Excel

by

Atimes a user may want to extract the domain from an email address, the RIGHT, LEN, and FIND functions can be used to achieve that. In the formula below, email represents the email address you are working with. Formula =RIGHT(email,LEN(email)-FIND(“@”,email)) Explanation In the example, we are using this formula: =RIGHT(C4,LEN(C4)-FIND(“@”,C4)) Here’s how the formula works …

Continue Reading

How to create email address with name and domain in Excel

by

Atimes a user may want to build an email address from a first and last name. In that case, use a formula based on simple concatenation with help from the LEFT and LOWER functions. See illustration below: Formula =LOWER(LEFT(first)&last&”@”&domain) Explanation In the example shown, the formula in D5 is: =LOWER(LEFT(B5)&C5&”@”&$G$6) How this formula works Working …

Continue Reading

Posts navigation

  • 1
  • 2
  • 3
  • 4
  • Next

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

  • How to use Excel OR Function
  • How to use Excel TRUE Function
  • How to use Excel NOT Function
  • IF with wildcards in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get last weekday in month in Excel
  • Convert Excel time to decimal seconds
  • How to calculate Next working/business day in Excel
  • Find Last Day of the Month in Excel
  • How to enter Today’s Date or Static Date and Time in Excel

Grouping

  • Categorize text with keywords in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into unequal buckets in Excel
  • How to randomly assign people to groups in Excel
  • Map text to numbers in Excel

General

  • How to calculate profit margin percentage in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • List sheet names with formula in Excel
  • How to Create Calendar in Excel
  • How to count total number of cells in a rectangular range in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning