+ Reply to Thread
Results 1 to 6 of 6

Populate one sheet with data from another based on matching column value

Hybrid View

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    23

    Arrow Populate one sheet with data from another based on matching column value

    So, I have a simple table with 5 columns ... "date" "well_number" "depth" "latitude" and "longitude"

    And another table that has a "well_number" column (IDs for each well will map).

    I want to populate the first table with a bunch of additional columns and data from the second where those IDs match (the second table will have many more well_number IDs than the 1st).

    What is the most straightforward way to do this?

    (see attached screenshot for tables)Attachment 418121

    Thanks!

    Added: Sorry, I think the figure is probably not helpful the way it is displayed)

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,933

    Re: Populate one sheet with data from another based on matching column value

    Which columns do you with to feed from the second table into the first and into which columns?

    BSB

  3. #3
    Registered User
    Join Date
    03-04-2015
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    23

    Re: Populate one sheet with data from another based on matching column value

    Well, I want to "add" the columns from table 2 to each matching well number in table 1 ... and there are quite a few ... (see list below)

    These columns do not exist in table 1; I want to add them:

    state_well_number county_code basin gma rwpa districtid previous_well_nu latitude lat_dec longitude long_dec owner_1 owner_2 driller_1 driller_2 source_of_coords aquifer_code aquifer_id1 aquifer_id2 aquifer_id3 elev_of_lsd meth_of_meas_elev user_code_econ date_drilled well_type well_depth source_of_depth type_of_lift type_of_power horsepower primary_water_use second_water_use tertia_water_use water_level_avail water_qual_avail well_logs_avail other_data_avail date_coll_or_updat reporting_agency well_sched_in_file construct_method completion casing_material screen_material todays_date user_name

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,933

    Re: Populate one sheet with data from another based on matching column value

    Have a look at the attached for a very basic example of how to do this.

    I've added INDEX/MATCH formulas to the yellow cells that will take the "State Well Number" and look that up in table 2. It then returns the corresponding data.

    The formula in F4 is =INDEX(K:K,MATCH($B4,$J:$J,0)) . You just need to change K:K to match whichever column you want to look up from.
    If the columns are in the right order already and without gaps between then you can just drag the formula to the right and down as needed.

    Hope that points you in the right direction.

    BSB
    Attached Files Attached Files

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Populate one sheet with data from another based on matching column value

    A picture is nice but no one can work with it.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

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

    View Pic
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Populate one sheet with data from another based on matching column value

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

+ 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] Creating New Worksheets, Copying Data to New Sheet Based on Matching Column Header
    By cbauer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2017, 03:21 AM
  2. Replies: 1
    Last Post: 09-09-2015, 10:36 AM
  3. [SOLVED] populate column data based on matching from other sheet
    By sarat47.dash in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2015, 10:36 AM
  4. Populate data in existing column if matching found using macro
    By abraham30 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2014, 03:52 AM
  5. Move Rows of Data from a Specific Column (Based on Matching Criteria) to a new Sheet
    By jordan1214 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2013, 02:30 AM
  6. [SOLVED] Loop Through Column, Populate Values In Another Sheet With Matching Identifiers
    By aeg_paul in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-15-2013, 02:10 PM
  7. Replies: 0
    Last Post: 07-18-2012, 10:28 AM

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