+ Reply to Thread
Results 1 to 8 of 8

Create a drop-down cell that brings information from other sheets on-click

  1. #1
    Registered User
    Join Date
    10-17-2023
    Location
    Baku
    MS-Off Ver
    2019
    Posts
    4

    Red face Create a drop-down cell that brings information from other sheets on-click

    Hi Everyone!

    I am new to Excel and trying to find a way to do the following:
    I have a Master List document which has several sheets (with information like - numbers codes et.). On the first Sheet I need to create somethin like a table and second row has to be a list where one can choose the desired department to display the data (that is on other sheets) related to that department.
    P.S. when i create a list through data validation, i can't choose all the rows, or other sheets.

    Below is the general look of the ML.
    Capture.JPG

    On the second row (A2), I need to display Department names, that you can choose, and after you choose one (let's say you choose Security Department), it brings all the info listed in SEC sheet for example to the SHEET1.
    This info:
    Capture2.JPG
    To this sheet & cells.
    Capture3.JPG

    I am not sure if I could explain the problem clearly, as English is not my first language. Any help is appreciated. Thanks!
    Attached Files Attached Files
    Last edited by elgarnan; 10-18-2023 at 02:28 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Create a drop-down cell that brings information from other sheets on-click

    HOW TO ATTACH YOUR SAMPLE WORKBOOK: elgarnan, Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-17-2023
    Location
    Baku
    MS-Off Ver
    2019
    Posts
    4

    Re: Create a drop-down cell that brings information from other sheets on-click

    I have attached a sample. Thanks!

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

    Re: Create a drop-down cell that brings information from other sheets on-click

    Perhaps the following will help.
    1. Populate cell G1 on Sheet1 using: =INDEX('List of Departments'!A2:A20,MATCH(A2,'List of Departments'!B2:B20,0))
    2. Populate cells A3:E20 using: =INDIRECT($G$1&"!"&ADDRESS(ROWS(A$2:A4),COLUMNS($A3:A3)))
    Note that cells A3:D20 are custom formatted: General;;
    Note that cells E3:E20 are custom formatted: m/d/yyyy;;
    Note that for this to work the codes on the List of Departments sheet must match the sheet tab names.
    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.

  5. #5
    Registered User
    Join Date
    10-17-2023
    Location
    Baku
    MS-Off Ver
    2019
    Posts
    4

    Re: Create a drop-down cell that brings information from other sheets on-click

    Thank you very much, it works perfectly well. Although, when I try to enter formulae manually myself I get errors, but yours works.

    I don't get how =INDIRECT($G$1&"!"&ADDRESS(ROWS(A$2:A4),COLUMNS($A3:A3))) is related to other sheets, perhaps trough INDEX&MATCH in G1?
    And how I can display empty cells to be empty instead of 0?

    Thanks a lot!

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

    Re: Create a drop-down cell that brings information from other sheets on-click

    "I don't get how =INDIRECT($G$1&"!"&ADDRESS(ROWS(A$2:A4),COLUMNS($A3:A3))) is related to other sheets, perhaps trough INDEX&MATCH in G1?"
    > Correct, but again for this to work the codes on the List of Departments sheet must match the sheet tab names and at the moment only the SEC and DSP codes match.
    And how I can display empty cells to be empty instead of 0?
    > Select cell A3 and press the Shift and right arrow keys until A3:D3 are selected and then press the Ctrl, Shift and down arrow keys
    > Press the Ctrl and 1 keys
    > Select Custom
    > Under "Type:" the dialog box should display General, change that to display General;;
    > Select cell E3 and press the Ctrl, Shift and down arrow keys
    > Press the Ctrl and 1 keys
    > Under "Type:" the dialog box should display m/d/yyyy, change that to display m/d/yyyy;;
    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    10-17-2023
    Location
    Baku
    MS-Off Ver
    2019
    Posts
    4

    Re: Create a drop-down cell that brings information from other sheets on-click

    Helped me a lot, Many thanks!

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

    Re: Create a drop-down cell that brings information from other sheets on-click

    You're Welcome. 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. Need to create a pop-up window for showing the information after click on header.
    By Pankaj jaswani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2022, 11:58 PM
  2. Search button/Find Box which brings up information
    By jamie_pidgley in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2017, 12:47 AM
  3. Replies: 1
    Last Post: 10-04-2012, 03:24 PM
  4. [SOLVED] One drop box, one click displays information in excel fields.
    By drarmy in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-20-2012, 03:18 AM
  5. Replies: 3
    Last Post: 09-03-2010, 08:00 AM
  6. [SOLVED] click on a cell to expand with more information
    By Dodge Lisa in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-06-2005, 05:06 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