+ Reply to Thread
Results 1 to 2 of 2

Fill Col B based on Col A text

  1. #1
    Registered User
    Join Date
    07-16-2010
    Location
    New Jersey
    MS-Off Ver
    Excel 2008 / Mac
    Posts
    1

    Fill Col B based on Col A text

    Hi, all!
    I'm sure this is an easy thing to do, but I just can't figure it out. Here's the deal:

    Client has a list of data that's currently sorted by State Abbreviation. Unfortunately, sorting alphabetically by the two-letter State Abbreviation doesn't give you the same order as by the full name of the state [e.g. Alabama - AL, Alaska - AK]. For some reason, Client now needs to be able to sort by full state name.

    Since I have the first column [abbreviations] already set up - it actually uses a drop down list to select from - can I write a function that will read Col A's text and fill Col B with the correct full state name? Is this a VB thing? I'm a little lost

    Thanks so much for reading, and even more for helping!

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Fill Col B based on Col A text

    Try this

    1/. Create a Lookup Sheet with the State Names & Codes

    2/. Create named ranges within this sheet.

    3/. In the sheet you wish to find full State Names
    Assuming your State Codes are in Column A and the literal name goes in Column B

    In B2
    Please Login or Register  to view this content.
    Drag/Fill Down

    "CodeList" is the name given, in this demo, to the whole lookup table.

    4/. "Codes" is the named range used for the Data Validation in Column A. (Abreviations)

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1