+ Reply to Thread
Results 1 to 14 of 14

How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

  1. #1
    Registered User
    Join Date
    08-13-2016
    Location
    NAGPUR
    MS-Off Ver
    MS OFFICE 2007
    Posts
    49

    Post How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    Hi Everybody...,
    In my adjoining Excel Sheet (SortSubjectList.xlsx) on Sheet 1 i have the list of students with their respective subject.
    And on Sheet 2 I make a data validation list in A1 and B1.

    So, is it possible to fetch the list of whole students from Column B4 to number of total students on Sheet 2 as per the combination of A1 & B1??
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    Formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    In A4

    =IF(B4="","",COUNTIF($B$4:B4,"<>"))

    ib B4

    =IFERROR(INDEX(Sheet1!$J$2:$J$165,AGGREGATE(15,6,ROW($A$1:$A$165)/(Sheet1!$B$2:$B$165=$B$1)/(Sheet1!$F$2:$F$165=$A$1),ROWS($1:1))),"")
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    08-13-2016
    Location
    NAGPUR
    MS-Off Ver
    MS OFFICE 2007
    Posts
    49

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    No Sir... It is not working properly...

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    .. So what is not working ????

    Post file with "error" results.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    b4:
    Please Login or Register  to view this content.
    a4:
    Please Login or Register  to view this content.
    Quang PT

  7. #7
    Registered User
    Join Date
    08-13-2016
    Location
    NAGPUR
    MS-Off Ver
    MS OFFICE 2007
    Posts
    49

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    As I copied the above formula in in A4 and B4 and drag it till B170.. It is not show the the list of students in Column B as per the combination of A1 & B1..
    Attached Files Attached Files

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    Quote Originally Posted by vijubhau View Post
    As I copied the above formula in in A4 and B4 and drag it till B170.. It is not show the the list of students in Column B as per the combination of A1 & B1..
    I guess my post in #6 have not been updated, till your last post...
    Hope it works!

  9. #9
    Registered User
    Join Date
    08-13-2016
    Location
    NAGPUR
    MS-Off Ver
    MS OFFICE 2007
    Posts
    49

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    Quote Originally Posted by bebo021999 View Post
    I guess my post in #6 have not been updated, till your last post...
    Hope it works!
    No.. Sir.. Whenever I change the value of A1 & B1.. It it showing nothing in B4 to Last B Column...

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    Are you still using Excel 2007? If so you don't have the Aggregate function.

  11. #11
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    Formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    If you have 2007

    =IFERROR(INDEX(Sheet1!$J$2:$J$166,SMALL(IF((Sheet1!$B$2:$B$165=$B$1)*(Sheet1!$F$2:$F$165=$A$1),ROW($A$2:$A$165)-ROW($A$2)+1,""),ROWS($1:1))),"")

    Enter with Ctrl+Shift+Enter

    If NOT 2007,please update your profile

  13. #13
    Registered User
    Join Date
    08-13-2016
    Location
    NAGPUR
    MS-Off Ver
    MS OFFICE 2007
    Posts
    49

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    Thanks a Lot Sir... But there is a little bit problem.. and the problem is that, the formula is taking only the value from column F [I Want all value from Column C to Column I] from Sheet1..
    As I choose the different from dropdown in Sheet2 From A1 or B1, the result is showing Blank
    Attached Files Attached Files
    Last edited by AliGW; 07-05-2022 at 05:49 AM. Reason: PLEASE don't quote unnecessarily!

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: How to fetch the Student Name List from Sheet 1 to Sheet 2 by choosing dropdown list

    Your data is "inconsistent": for example "SOC" appears in Columns E and F as does "POL" so this means searching ALL columns C:G to find any match.

    This checks columns E & F

    =IFERROR(INDEX(Sheet1!$J$2:$J$165,SMALL(IF((Sheet1!$B$2:$B$165=$B$1)*((Sheet1!$E$2:$E$165=$A$1)+(Sheet1!$F$2:$F$165=$A$1)),ROW($A$2:$A$165)-ROW($A$2)+1,""),ROWS($1:1))),"")
    Last edited by JohnTopley; 07-05-2022 at 07:43 AM.

+ 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. Fetch the data from another sheet based on drop down list
    By sreejeshc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2015, 02:26 AM
  2. I need a macro that prints an invoice after choosing a sheet from a drop-down list
    By Robert1311 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2014, 04:49 PM
  3. Replies: 4
    Last Post: 08-14-2013, 09:14 PM
  4. Need a Dropdown list that can edit cells on another sheet based on sheet name
    By draegen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2012, 02:46 PM
  5. UDF in excel to use a dropdown list in a sheet, to push data to other sheet.
    By elnicko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2011, 08:13 PM
  6. Combing Student list and Classes they took to one sheet
    By minimacros in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-13-2010, 01:20 PM
  7. run macro after choosing in a dropdown list
    By Spencinator in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-28-2008, 10:07 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