Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=MID(A2,FIND(", ",A2,FIND(",",A2))+2,2)Computed by a real spreadsheet engine on the sample data below.
| Address |
| 123 Main St, Austin, TX 78701 |
| 456 Oak Ave, Miami, FL 33101 |
| 789 Pine Rd, Denver, CO 80201 |
| 321 Elm Blvd, Seattle, WA 98101 |
=MID(A2,FIND(", ",A2,FIND(",",A2))+2,2)→Au
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Use a RIGHT-based approach instead: =TRIM(MID(A2,LEN(A2)-FIND(" ",TRIM(SUBSTITUTE(A2,",",REPT(" ",100)),MAX(1,LEN(TRIM(SUBSTITUTE(A2,",",REPT(" ",100))))-99)))+1,2)) — or clean the data first.
Not directly from the address without a lookup table. Extract the abbreviation first, then use VLOOKUP or XLOOKUP against a state code table to get the full name.
Split a full name or any delimited text into separate columns. Google Sheets uses SPLIT; Excel uses TEXTSPLIT — here is each.
How-toClean leading, trailing, and double spaces with TRIM — the usual fix for lookups that fail on values that look identical.
How-toTurn numbers stored as text into real numbers with VALUE or by multiplying by 1 — the fix for sums that ignore values.
How-toPull everything after the @ from an email using FIND and MID. Works the same in Excel and Google Sheets.
How-toGet the first name from a full name with LEFT and FIND, splitting on the first space. Works in Excel and Google Sheets.
How-toPad numbers to a fixed width with leading zeros using TEXT, or a custom number format. Works in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: