Excel Formulas, help?

sloppy

New Member
Joined
Apr 2, 2011
Messages
8
<table border="0" cellpadding="0" cellspacing="0" width="162"><col style="width: 122pt;" width="162"> <tbody><tr style="height: 15.75pt;" height="21"> <td style="height: 15.75pt; width: 122pt;" width="162" height="21">Worcester, MA 01602</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">Sacramento, CA 95814</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">Bloomington, IN 47401</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">Indianapolis, IN 46201</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">Kaneohe, HI 96744</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">Worcester, MA 01602</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">Bloomington, IN 47401
<table border="0" cellpadding="0" cellspacing="0" width="162"><col width="162"><tbody><tr height="20"> <td style="height: 15pt; width: 122pt;" width="162" height="20">Long Beach, CA 90745</td> </tr></tbody></table>

I have to use a function that will just show the state abbreviations, Example: MA I think you use the MID function but its hard for me to find a formula that will work for all of them, any ideas?
</td> </tr> </tbody></table>
 
Last edited:

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about =right(a1, 2)

Or (if the zip is in the same cell),

=MID(A1, FIND(",", A1) + 2, 2)
 
Last edited:
Upvote 0
yes, the zipcode is all in the same column. The MID formula that you posted works, thanks so much!
 
Upvote 0
If your Zips are always the same and the abreviations and space are always the same then this will work as well

Excel Workbook
DE
8Worcester, MA 01602MA
9Sacramento, CA 95814CA
10Bloomington, IN 47401IN
11Indianapolis, IN 46201IN
12Kaneohe, HI 96744HI
13Worcester, MA 01602MA
14Bloomington, IN 47401IN
15Long Beach, CA 90745CA
Sheet3
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,245
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top