+ Reply to Thread
Results 1 to 5 of 5

Please help: autopopulating a column on one sheet depending on values in another

  1. #1
    Forum Contributor
    Join Date
    08-23-2010
    Location
    uk
    MS-Off Ver
    365 on Mac
    Posts
    146

    Please help: autopopulating a column on one sheet depending on values in another

    I have a worksheet I need to autopopulate to save me spending another few nights manually copying and pasting! Can someone please help me?

    Worksheet has sheet 1 containing:

    Column A - business ID
    Column B - companies

    Each company has a unique company number.

    Sheet 2 contains

    Column B - person ID (each person has a unique number
    Column C - business ID

    One or in most cases several people will belong to one company.

    I want to populate column A in sheet 2 with company names according to the company ID.

    So I'm saying - if on sheet 2 cell in column c has such and such an ID, look at sheet 1 to find the matching ID in column a and see which company is on the same row in column b, then return that value in the relevant cell in sheet 2 column a.

    Make sense? Can some kind soul help?

    Best wishes...

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Please help: autopopulating a column on one sheet depending on values in another

    I think YES. This makes sense. Look's like an INDEX & MATCH issue..but it will be better if you upload a sample workbook.

    To attach a small sample workbook.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,933

    Re: Please help: autopopulating a column on one sheet depending on values in another

    =vlookup(Sheet2!C2,Sheet1!$A$1:$B$50,2,False)

    I am assuming there are only 50 rows of data. Adjust as necessary. Also look here

    http://www.techonthenet.com/excel/formulas/vlookup.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    08-23-2010
    Location
    uk
    MS-Off Ver
    365 on Mac
    Posts
    146

    Re: Please help: autopopulating a column on one sheet depending on values in another

    Thanks alansidman
    Actually, i should have made it clear that the sheet 2 and sheet 1 are in two different worksheets.
    Worksheet sheet 2 is 'people' and worksheet sheet 1 is 'organisations'. I guess I need to specify that in the code.
    when i paste the code in a dialog box pops up asking for a file name.
    Thanks
    Last edited by Supersadie; 07-15-2013 at 08:50 AM.

  5. #5
    Forum Contributor
    Join Date
    08-23-2010
    Location
    uk
    MS-Off Ver
    365 on Mac
    Posts
    146

    Re: Please help: autopopulating a column on one sheet depending on values in another

    Fixed!!

    Just moved the columns from the other spreadsheet onto a new sheet in the existing doc for the sake of simplicity and changed the reference in the formula. Thanks so much!

+ 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. [SOLVED] Sorting data from a master sheet to multiple sheets depending on values in a given column
    By kodos10 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-30-2013, 05:46 AM
  2. Replies: 3
    Last Post: 03-28-2013, 11:30 AM
  3. Autopopulating table from previous sheet
    By craxykitten in forum Excel General
    Replies: 0
    Last Post: 09-20-2012, 11:23 AM
  4. Replies: 15
    Last Post: 01-03-2012, 01:23 PM
  5. Autopopulating cells based on values of a range?
    By iDealEyes in forum Excel General
    Replies: 5
    Last Post: 01-09-2009, 09:20 AM

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