+ Reply to Thread
Results 1 to 4 of 4

Bring a list of cells where column in 2nd Sheet matches a cell value in first sheet

  1. #1
    Registered User
    Join Date
    01-31-2022
    Location
    Mesa, AZ
    MS-Off Ver
    Office 365
    Posts
    46

    Bring a list of cells where column in 2nd Sheet matches a cell value in first sheet

    Hello,

    In a quandary here. I have a DistanceCalutatorByZip sheet that has a Site ID column. I have another sheet that houses all those site ID's. I would like to populate the Site ID column from the TI (sheet that houses all the Site IDs for all markets) based on Market (listed in Cell E2). Markets can have up to 2000 sites. The end result would be when the user selects the market in Cell E3, the entire list of sites in market CHI populate in Col C.


    User changed entry: E2 on DistanceCalutatorByZip tab
    Site list source: TI Tab
    Market in Col A
    Site ID in Col B
    Destination: starts at Q8 on DistanceCalculatorbyZip tab
    Attached Files Attached Files
    Last edited by sharonca; 10-21-2022 at 05:38 PM. Reason: To attach a file

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Bring a list of cells where column in 2nd Sheet matches a cell value in first sheet

    I feel that this could be accomplished using spill formulas, however as I don't have those in my version I'll offer a power query based solution.
    1. Convert the data on the TI sheet into an Excel table (tbl_SiteID)
    2. Convert cells E1:E2 on the DistanceCalculatorByZip sheet into an Excel table (tbl_MarketSelection)
    3. Make a connection only to tbl_MarketSelection
    4. Use the following power query editor code to produce the table in column N:
    Please Login or Register  to view this content.
    Note that after the text in cell E2 is changed the table in column N will need to be refreshed.
    Here is a link to a video tutorial that may better explain the process.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    01-31-2022
    Location
    Mesa, AZ
    MS-Off Ver
    Office 365
    Posts
    46

    Re: Bring a list of cells where column in 2nd Sheet matches a cell value in first sheet

    I actually used the FILTER array to accomplish what I wanted. Worked like a charm. Definitely keeping the code for my arsenal.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Bring a list of cells where column in 2nd Sheet matches a cell value in first sheet

    Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Replies: 4
    Last Post: 05-12-2017, 09:24 AM
  2. Replies: 2
    Last Post: 01-10-2017, 10:25 AM
  3. Replies: 3
    Last Post: 08-22-2016, 02:12 PM
  4. Replies: 1
    Last Post: 04-21-2015, 04:45 PM
  5. Replies: 8
    Last Post: 03-16-2015, 08:39 AM
  6. [SOLVED] Copy Column A data to Sheet 2 where rows matches Sheet 2 headers
    By SCDE in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2015, 12:14 AM
  7. Replies: 1
    Last Post: 10-30-2009, 10:58 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