Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Display state abbreviation from full name

I need a formula that will replace the full name of a state with it's
abbreviation after importing data from a source I can't alter.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Display state abbreviation from full name

Try with data in cell A1
=SUBSTITUTE(A1,"NEWYORK","NY")

If this post helps click Yes
---------------
Jacob Skaria


"rhmartin" wrote:

I need a formula that will replace the full name of a state with it's
abbreviation after importing data from a source I can't alter.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Display state abbreviation from full name

If you have a list of states and its abbreviations in Sheet2 say colA and B
try the below instead

If A1 is having state; insert an additional column and use the below formula.
=VLOOKUP(A1,Sheet2!A:B,2,FALSE)

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Try with data in cell A1
=SUBSTITUTE(A1,"NEWYORK","NY")

If this post helps click Yes
---------------
Jacob Skaria


"rhmartin" wrote:

I need a formula that will replace the full name of a state with it's
abbreviation after importing data from a source I can't alter.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Display state abbreviation from full name

This will work for a few cells, but I have multiple states and multiple
cells. I am looking for a way to use the full list of states and
abbreviations, and compare to every cell I import with a State's name in it.
For example, if cell A1 is New York, the formula would change it to NY, but
if cell A1 is Rhode Island, the answer would be RI.

"Jacob Skaria" wrote:

Try with data in cell A1
=SUBSTITUTE(A1,"NEWYORK","NY")

If this post helps click Yes
---------------
Jacob Skaria


"rhmartin" wrote:

I need a formula that will replace the full name of a state with it's
abbreviation after importing data from a source I can't alter.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Display state abbreviation from full name

If you have a list of states and its abbreviations in Sheet2 say colA and B
try the below instead

If A1 is having state; insert an additional column and use the below formula.
=VLOOKUP(A1,Sheet2!A:B,2,FALSE)

--
If this post helps click Yes
---------------
Jacob Skaria


"rhmartin" wrote:

This will work for a few cells, but I have multiple states and multiple
cells. I am looking for a way to use the full list of states and
abbreviations, and compare to every cell I import with a State's name in it.
For example, if cell A1 is New York, the formula would change it to NY, but
if cell A1 is Rhode Island, the answer would be RI.

"Jacob Skaria" wrote:

Try with data in cell A1
=SUBSTITUTE(A1,"NEWYORK","NY")

If this post helps click Yes
---------------
Jacob Skaria


"rhmartin" wrote:

I need a formula that will replace the full name of a state with it's
abbreviation after importing data from a source I can't alter.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Display state abbreviation from full name

Another option would be to create a lookup table somewhere, and use a LOOKUP
function (described in XL help file fully)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"rhmartin" wrote:

I need a formula that will replace the full name of a state with it's
abbreviation after importing data from a source I can't alter.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I show state-by-state data (as silos) on a map of NA Rob Charts and Charting in Excel 0 November 5th 07 03:41 PM
How can I control the full screen display width ? Al B Excel Discussion (Misc queries) 0 March 10th 07 07:53 PM
Converting State Names to State Abbreviations aznate Excel Discussion (Misc queries) 1 October 20th 06 06:52 AM
spell out state name from an abbreviation julieb Excel Discussion (Misc queries) 2 May 19th 05 05:16 PM
Worksheet won't display full screen Timbo New Users to Excel 1 April 24th 05 02:22 AM


All times are GMT +1. The time now is 02:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"