+ Reply to Thread
Results 1 to 17 of 17

Search and Display

  1. #1
    Registered User
    Join Date
    03-01-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    9

    Search and Display

    Good Day,

    I need some help, I am handling a records of students and I want to create a search and display form that would help me to lessen my work, I am using pivot table to get the summary but I want to try to have a template that would display a selected data,

    I want to have a search box (cell) that if you would type a data as a keyword, multiple or selected data associated to the keyword that I entered on the search box (cell) will display below.

    I know it is very simple to all experts here :D

    To explain more here is my example.

    ex.

    I have 50 students divided into 5 different class (class 1-5 as class name)
    I have a data of their Name,Address,Telephone No.,Email Add.,Mobile No.
    I want to have a search box which if I entered a class name, their data will return or display below. If I type "Class 1" all students in that class will display below (i want to select only what data would display)

    Many thanks and hopefully someone could help me.

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Search and Display

    If you attach a workbook (not pictures) with some data and the expected output it will be much easier to help you.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    03-01-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Search and Display

    Hello,

    Thanks for your reply, I cannot attach the file

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Search and Display

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    03-01-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Search and Display

    Thanks Sir and Ma'am

    Here is my sample.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Search and Display

    Hi

    B17
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy down and cross
    H17
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy down and cross

    Regard
    Attached Files Attached Files
    Last edited by micope21; 03-15-2017 at 06:28 AM.
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Search and Display

    or... use this array formula in I3 (I changed the layout for your results slightly), copied across and down:

    =IFERROR(INDEX(A:A,SMALL(IF($H$1=$A$3:$A$12,ROW($A$3:$A$12)),ROWS(I$3:I3))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-01-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Search and Display

    Thank you very much!

    Thanks to all of you. God bless :D
    Hopefully I can ask you again if I'm in trouble hehe

  9. #9
    Registered User
    Join Date
    03-01-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Search and Display

    Good Day again,

    Last one thing, is it possible to search different category on the search box then display its corresponding data? for example i will search by age or location or any of my category on my database, instead of making more sheets by having a search box per category i want to have a one sheet that can search different category.

    Thanks again

  10. #10
    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,197

    Re: Search and Display

    See attached based on Glenn's reply:

    Created named range "Category" (column P) which is used in the Data Validation in G1

    Select from G1 then Criteria value in H1 e.g. Age / 10
    Attached Files Attached Files

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Search and Display

    Really the easiest way to do that is just to apply filters to your original data: filtering at A2 and C2, to show Class one's 10 year olds... see sheet. I have hidden my results table so you are looking just at the effect of the combined filters

    If you're wanting to do this on another sheet, it would be possible... just. So what exactly would you want to do. You would need to be 100% specific about your requirements AND you would need to include desired ALL searchable fields in your specification.

    If you want to do multiple criteria searches (several criteria at once), you're probably better of just filtering the data....
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 03-17-2017 at 04:45 AM.

  12. #12
    Registered User
    Join Date
    03-01-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Search and Display

    Sorry if I did not explain it clearly.

    I want to have a 1 search box that can accept any of my category. Here is my Column/Field name

    Ex.

    Class
    Name
    Agency
    Region
    Age
    Gender

    Then I have 1 search box that can search by those field names, if I search by Gender (Male), all males would be display. The one that you (Sir Glenn) did was good to search only by class (that's because of my first question i think)

    But I think the file attached by Sir John was closer to what I'm thinking hehe :D

    Thanks

  13. #13
    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,197

    Re: Search and Display

    Can you please post file showing expected output for your last search requirement.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Search and Display

    Right-eo. I'll leave you in John's capable hands...

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Search and Display

    Nice work John. A keeper...

  16. #16
    Registered User
    Join Date
    03-01-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Search and Display

    I used your file Sir Glenn,

    That's amazing and help me alot, I am working on it and just thinking how to be creative on it I attached my last file here hope you understand it clearly :D

    Thanks Sir Glenn and Sir John
    Attached Files Attached Files

  17. #17
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Search and Display

    Try this ...

    =IFERROR(INDEX(A:A,SMALL(IF($L$2=$A$3:$G$13,ROW($A$3:$G$13)),ROWS(I$3:I3))),"")

    Enter with C+S+E
    Attached Files Attached Files

+ 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] Display occurrences of text and then display it on search page
    By murray83 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-14-2017, 05:21 AM
  2. Search and display box.
    By jamiemulcahy in forum Excel General
    Replies: 1
    Last Post: 11-14-2013, 10:19 AM
  3. Search Box to Search and Display Data
    By kimhan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-16-2013, 08:11 PM
  4. [SOLVED] Search and display all
    By tiny4725 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 05-23-2012, 03:27 PM
  5. [SOLVED] Search and display
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-18-2012, 08:59 AM
  6. Search and Display only Search Results
    By Atalanta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2011, 10:43 AM
  7. Search and Display
    By jacknjob in forum Excel General
    Replies: 4
    Last Post: 05-13-2007, 11:23 PM

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