How to Separate Address in Excel Using Formula (With Easy Steps)

We have the following dataset which contains some addresses. We will separate the address into parts separated by comma.

Step-by-Step Procedures to Separate Address Using Formula in Excel


Step 1 – Merge Excel LEFT and FIND Functions to Separate the Street from Address

  • Select the cell where you want to get the street name. We selected cell C5.
  • Insert the following formula:
=LEFT(B5, FIND(",",B5)-1)
  • Press Enter.

Step-by-Step Procedures to Separate Address Using Formula in Excel

  • Drag the Fill Handle down to duplicate the formula over the range or double-click on the plus (+) symbol.

  • Here’s the first value.

How Does the Formula Work?

  • FIND(“,”,B5)-1: The number of characters removed from the entire address using the FIND function. It does this by identifying the location of the “,” comma before deducting 1 from the result.
  • LEFT(B5, FIND(“,”,B5)-1): This removes the specified characters from the address.

Read More: How to Separate Address in Excel


Step 2 – Combine MID, SUBSTITUTE, FIND Functions to Separate the City

  • Insert the following formula in D5:
=MID(SUBSTITUTE(B5,"  "," "), FIND(",",SUBSTITUTE(B5,"  "," "))+1,10)
  • Hit Enter.

Step-by-Step Procedures to Separate Address Using Formula in Excel

  • Drag the Fill Handle down or double-click on the plus (+) icon.

Step-by-Step Procedures to Separate Address Using Formula in Excel

  • Here’s the second value extracted.

How Does the Formula Work?

  • SUBSTITUTE(B5,”  “,” “): It matches the replaced text or address.
  • FIND(“,”,SUBSTITUTE(B5,”  “,” “)): This provides the location of the first instance.
  • MID(SUBSTITUTE(B5,”  “,” “): This will start extracting the characters from a given position.
  • MID(SUBSTITUTE(B5,”  “,” “), FIND(“,”,SUBSTITUTE(B5,”  “,” “))+1,10): This will extract the city name from the address.

Read More: How to Separate City and State without Commas in Excel


Step 3 – Separate the State with the LEFT and RIGHT Functions

  • Select cell E5 and enter this formula to get the state from the address.
=LEFT(RIGHT(B5,9),2)
  • Hit the Enter key.

Step-by-Step Procedures to Separate Address Using Formula in Excel

  • Drag the Fill Handle to the bottom to reproduce the formula throughout the whole range.

  • Here’s the next value.

How Does the Formula Work?

  • RIGHT(B5,9): It returns the last character of the text string or the address.
  • LEFT(RIGHT(B5,9),2): This will extract the zip code from the address.

Read More: How to Separate City and State in Excel


Step 4 – Use the RIGHT Function to Separate the Zip Code from the Address

  • Enter the following formula into E5:
=RIGHT(B5,5)
  • Press Enter.

Step-by-Step Procedures to Separate Address Using Formula in Excel

  • Drag the Fill Handle down or double-click on the plus (+) sign to AutoFill the range.

  • Here’s the result.

Read More: How to Separate City State and Zip from Address Using Excel Formula


Things to Remember

  • The #N/A error occurs in Excel even when a value cannot be found in the relevant cell.
  • When the cell reference is blank, the #DIV/0! error occurs.

Download the Practice Workbook


Related Articles


<< Go Back to Address Format | Text Formatting | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sabrina Ayon
Sabrina Ayon

Sabrina Ayon, a Computer Science and Engineering graduate from United International University, has been an integral part of the ExcelDemy project for two years. She authored 150+ articles, excelling in instructing through visually engaging Excel tutorials. With a passion for teaching, Sabrina conducted sessions on Excel VBA, sharing her knowledge and insights with others. Currently holding the position of Project Manager for the ExcelDemy Visual Development Project, she oversees various aspects of the project, ensuring its smooth operation... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo