+ Reply to Thread
Results 1 to 2 of 2

Assigning Values

  1. #1
    Registered User
    Join Date
    04-17-2011
    Location
    denver, colorado
    MS-Off Ver
    Excel 2003
    Posts
    1

    Assigning Values

    Hi.

    The situation I'm having is this:

    In column A, I have 24,000 miscellaneous [and repeating] zip codes, which need to be translated to their appropriate state. In column B I have all the zip codes [3267 in total], and in column C I have the various states which correspond to the zip codes in column B.[ For example, b2 [91360] = c2 [CA] ] Is there any way I can use the information in columns B and C, and 'assign' the appropriate state in column A?

    Hoping you can help, otherwise I'm in for a looong night.

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Assigning Values

    Hi

    The following code needs to be added to a VBA module, Hit Alt+F11 to go to the VBA Editor and in the project explorer pane right click and select "Insert Module".

    Please Login or Register  to view this content.
    The code will replace the zipcode with the state, or substitute another column number to keep the zipcode and add the state.

    Regards

    Jeff

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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