Split And Join Substitute And Perform Surgery On Text Strings

1 minute read

Example: =LOWER("hello")
Result: hello

Convert text to upper case

Example: =UPPER(D3)
Result: JAMES

Convert text to proper case (each word’s first letter capitalized)

Example: =PROPER("this is a long sentence")
Result: This Is A Long Sentence

Combine different text values to one text

Example: =CONCATENATE(A3, " and ", A4)
Result: 30 and 25

Combine different text values to one text

Example: =A3&" and "&A4
Result: 30 and 25

Example: =LEFT("Australia",3)
Result: Aus

Example: =RIGHT("New Zealand",4)
Result: land

Example: =MID("United States",4,5)
Result: ted S

What is the length of given text value

Example: =LEN("Titan")
Result: 5

Example: =SUBSTITUTE("Microsoft Excel","cel","cellent")
Result: Microsoft Excellent

Replace some letters with other

Example: =REPLACE("XYZ123",4,3,"456")
Result: XYZ456

Find if a text has another text

Example: =FIND("soft","Microsoft Excel")
Result: 6

A1 contains Sue Flay
Example: =LEFT(A1,1)&MID(A1,FIND(" ",A1)+1,1)
Result: SF

Find out how many words are in a sentence

A1 contains “This is a very long sentence with lots of words”
Example: =LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1
Result: 10

Example: =TRIM(" why so serious ")
Result why so serious

A1 contains Excel, Titan Example: =LEFT(A1,FIND(",",A1)-1)
Result: Excel

Tags: text-strings

Categories: formulas

Updated: October 05, 2018

Twitter Facebook LinkedIn

Leave a Comment