+ Reply to Thread
Results 1 to 5 of 5

Assigning Values from Fixed Data Set to Variable Data Set

  1. #1
    Registered User
    Join Date
    01-26-2010
    Location
    LA
    MS-Off Ver
    Excel 2003
    Posts
    16

    Assigning Values from Fixed Data Set to Variable Data Set

    So if I have fixed data like this: (2 columns always, up to 50K rows)

    00001 R
    00002 S
    00003 U

    Is there a formula, vba, pivot, ANYthing that I can use so that when I get a new list of, in this case, numbers, I can automatically assign it the correct letter? I basically have a list of every ZIP code in the US, and it's corresponding classification. When I get a list of ZIPs with no classification, I have to assign them from the existing list. I can do this with sorting and a specific formula, but I wanted to know if there is something easier as this method can get a bit tedious. Something where I can just paste in the new data and a column will populate with the correct designation....

    Thanks in advance!
    Last edited by Jaricketts; 04-21-2010 at 01:25 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Assigning Values from Fixed Data Set to Variable Data Set

    vlookup will probably work but a bit more info is required. post a workbook with examples
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-26-2010
    Location
    LA
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Assigning Values from Fixed Data Set to Variable Data Set

    Here is what I mean. The 'fixed' tab is a portion of data I have already. The 'variable' tab is new data I get in, and I need to assign a 'class' to each zip.
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Assigning Values from Fixed Data Set to Variable Data Set

    perhaps like this
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-26-2010
    Location
    LA
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Assigning Values from Fixed Data Set to Variable Data Set

    Wonderful, thank you so much!!

+ 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