+ Reply to Thread
Results 1 to 5 of 5

Creating 'Region' column and auto filling data. Please help.

  1. #1
    Registered User
    Join Date
    06-12-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    2

    Creating 'Region' column and auto filling data. Please help.

    Hello,

    New to the forum – thanks for having me!

    I’d be super grateful if someone could help me with a solution to the following problem -

    I’ve a set of personal data (UK). I have a column containing location - ‘County’ data - around 90 options (Essex, Lancashire, Merseyside etc). For around 100,000 rows of data – people.

    We didn’t collect region data for each of the people – North West, North East, Greater London etc.

    I’d like to add a region column and am looking for a solution to auto fill values rather than manually add across the 100,000 entries.

    I have a separate worksheet with all 90 of the ‘counties’ in column A, and their corresponding region in column B.

    example.PNG

    I guess I’m looking for a formula for ‘Worksheet 1’ C2 (new region column), that does something like:

    Look in Column B2 (county), if the value matches any of the values in Worksheet 2 Column A (county), Place the value that’s in the column next to it – B (region) - here.

    Thanks,
    Lee

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Creating 'Region' column and auto filling data. Please help.

    it appears a VLOOKUP would work, something like =VLOOKUP(B2,Worksheet2!A:B,2,False)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    06-12-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    2

    Re: Creating 'Region' column and auto filling data. Please help.

    Worked perfectly - thank you!

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Creating 'Region' column and auto filling data. Please help.

    Great! And being new to the forum just some helpful suggestions.
    Don't forget to mark your post as solved using the thread tools dropdown at the top of the post and you can thank any and all contributors by clicking on the "* Add Reputation" at the bottom of their posts.

  5. #5
    Registered User
    Join Date
    05-09-2015
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Office2007
    Posts
    47

    Re: Creating 'Region' column and auto filling data. Please help.

    Dear leepwbriggs,

    Also you can try with the below formula:

    =INDEX(Sheet2!B:B,MATCH(Sheet1!B:B,Sheet1!B:B,0))

    Test in the attached file with new data input and you will see the result.

    If this helps, then sending some reputation will be highly appreciated.

    Thanks.

    Sakib

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. auto filling info into next column
    By richpngu in forum Excel General
    Replies: 2
    Last Post: 06-20-2014, 07:19 AM
  2. [SOLVED] Creating a new tab and filling in one column based on user responses
    By goosetopher in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2013, 07:03 PM
  3. Excel 2007 : Auto - dynamic data filling
    By Arazmus in forum Excel General
    Replies: 0
    Last Post: 02-02-2009, 07:14 AM
  4. Filling last column outside a current region
    By Sudheerp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2007, 11:15 AM
  5. Replies: 1
    Last Post: 10-04-2007, 12:04 PM

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