+ Reply to Thread
Results 1 to 16 of 16

Data Extraction from Other Sheets Based on the Value from the Dropdown List

  1. #1
    Registered User
    Join Date
    08-03-2017
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    14

    Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Hi Everyone

    I'm facing a problem while trying to extract the data from other sheets based on the value from the dropdown list. I'd be really grateful if anyone can guide me how to do it properly.

    I've attached the sample workbook, and there's the sheet named "Result" where I wrote the result manually.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by franceslin; 09-13-2021 at 11:32 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Please try at

    A3
    =SORT(CHOOSE(1+(B1="All"),FILTER(FILTER('Active Staff w Salary'!A2:F999,D1='Active Staff w Salary'!B2:B999),ISNUMBER(MATCH('Active Staff w Salary'!A1:F1,A2:F2,))),FILTER('ALL Staff List'!A2:A999,'ALL Staff List'!B2:B999=D1)))

    C3
    =MMULT(N(+A3#),SEQUENCE(COLUMNS(A3#),,,0))
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,988

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    RESULT


    A3=IF(B1="ACTIVE",FILTER(FILTER('Active Staff w Salary'!$A$2:$F$35,'Active Staff w Salary'!B2:B35=RESULT!D1),{1,0,1,1,1,1}),FILTER('ALL Staff List'!A2:A121,'ALL Staff List'!B2:B121=RESULT!D1))
    Attached Files Attached Files
    Last edited by CARACALLA; 09-13-2021 at 01:43 AM.

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Worksheet name : RESULT
    Cell A2 formula , Drag right
    HTML Code: 
    Cell A3 formula , Drag down and across

    HTML Code: 
    Last edited by wk9128; 09-13-2021 at 04:03 AM.

  5. #5
    Registered User
    Join Date
    08-03-2017
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Quote Originally Posted by Bo_Ry View Post
    Please try at

    A3
    =SORT(CHOOSE(1+(B1="All"),FILTER(FILTER('Active Staff w Salary'!A2:F999,D1='Active Staff w Salary'!B2:B999),ISNUMBER(MATCH('Active Staff w Salary'!A1:F1,A2:F2,))),FILTER('ALL Staff List'!A2:A999,'ALL Staff List'!B2:B999=D1)))

    C3
    =MMULT(N(+A3#),SEQUENCE(COLUMNS(A3#),,,0))
    Attachment 747441

    Sorry. It doesn't work. When I changed the value in D1, it showed like that. Kindly look at the above pic.

  6. #6
    Registered User
    Join Date
    08-03-2017
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Quote Originally Posted by CARACALLA View Post
    RESULT


    A3=IF(B1="ACTIVE",FILTER(FILTER('Active Staff w Salary'!$A$2:$F$35,'Active Staff w Salary'!B2:B35=RESULT!D1),{1,0,1,1,1,1}),FILTER('ALL Staff List'!A2:A121,'ALL Staff List'!B2:B121=RESULT!D1))
    Attachment 747442

    Sorry. It doesn't work. When I changed the value in D1, it showed like that. Kindly look at the above pic.

  7. #7
    Registered User
    Join Date
    08-03-2017
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Quote Originally Posted by wk9128 View Post
    Worksheet name : RESULT
    Cell A2 formula , Drag right
    HTML Code: 
    Cell A3 formula , Drag down and across

    HTML Code: 
    Hello! Unfortunately, in my real workbook, the sheet name doesn't include "All" and "Active". I tried to type the sheet name instead of "&$B$1&"*"&" in the formula. But it doesn't work. So can you kindly tell me where to put the sheet name in the correct way? Thanks a lot.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Pls tell me your real workbook, what is the name of the worksheet label name ? B1 must correspond to your worksheet

    Please watch this animation teaching file FILE name as S17.gif
    After the file is downloaded and decompressed, you can use the left mouse button to click twice to watch the teaching file (video) or open it with explorer.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    In A3 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In B# copied for columns B to E
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Registered User
    Join Date
    08-03-2017
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Quote Originally Posted by wk9128 View Post
    Pls tell me your real workbook, what is the name of the worksheet label name ? B1 must correspond to your worksheet

    Please watch this animation teaching file FILE name as S17.gif
    After the file is downloaded and decompressed, you can use the left mouse button to click twice to watch the teaching file (video) or open it with explorer.
    The worksheet names are "Staff Data" and "Details of Salary" in my real workbook.
    Actually, the results that need to show have become much more complicated.
    I've attached another workbook. Kindly check it and I'd be really grateful if you can help me figure out the right formula.
    I wrote the results I wanted in the worksheet "Summary of Report".

    Thank you so much!
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-03-2017
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Quote Originally Posted by kvsrinivasamurthy View Post
    In A3 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In B# copied for columns B to E
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you so much for your answer.
    But the results that need to show have become much more complicated.
    I've attached another workbook. Kindly check it and I'd be really grateful if you can help me figure out the right formula.
    I wrote the results I wanted in the worksheet "Summary of Report".

    Thank you again!
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Why are you changing the tab names in the files. PL as for as possible keep the tab names same. In the original file when using formulas change the sheet names in formula as per your file.

  13. #13
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Pl see the file with formulas.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    08-03-2017
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see the file with formulas.
    Thank you so much for being this helpful.
    It works perfectly.

  15. #15
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,988

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Why in my file works ?

  16. #16
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Data Extraction from Other Sheets Based on the Value from the Dropdown List

    Thanks for feed back and rep.

+ 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: 3
    Last Post: 11-13-2015, 05:10 AM
  2. Data extraction based on drop down list - both vertical and horizontal
    By edv15 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-02-2015, 03:10 AM
  3. [SOLVED] Dropdown list to link specific data from other sheets
    By Thuch Vannarath in forum Excel General
    Replies: 9
    Last Post: 03-03-2015, 05:41 AM
  4. Replies: 0
    Last Post: 08-08-2014, 12:12 PM
  5. Dropdown List Extraction
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2013, 05:22 AM
  6. Retrieve Data from other sheets using dropdown list.
    By lemuel in forum Excel General
    Replies: 8
    Last Post: 09-28-2012, 09:35 AM
  7. Extraction of Data from sheets based upon Input Value
    By TYork in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2010, 10:03 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