+ Reply to Thread
Results 1 to 2 of 2

Creating a search cell.

  1. #1
    Registered User
    Join Date
    01-04-2017
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    1

    Creating a search cell.

    Hi all,

    I had a quick browse and it doesn't seem like my specific issue has been covered from what I saw so here goes.

    I want to create a search engine of sorts within my spreadsheet. I want that when I type in a keyword in that engine it would show me all the rows that contain that keyword while hiding the rest.

    If not I'd like the results to show at the top.

    At this point I've used the box at the top left (where it shows the name of the cell) and through renaming the cells in my first column (all unique numbers) I've managed to jump to the row I wanted. I wanted to use the same process for the second column but that one is filled with names, some of which are identical and since a cell needs a unique name I cant use that.

    I'm pretty new to excel but it does seem like just about anything is doable it's just a matter of knowing how.

    Thanks for the help.

    Mally34
    Last edited by Mally34; 01-04-2017 at 08:36 PM. Reason: additional information

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Creating a search cell.

    Hi, welcome to the board

    See if you can adapt this to your needs...
    A
    B
    C
    D
    E
    1
    Code value code value
    2
    aa
    1
    aa
    1
    3
    bb
    0
    6
    4
    cc
    2
    4
    5
    aa
    6
    10
    6
    bb
    3
    7
    cc
    7
    8
    aa
    4
    9
    bb
    9
    10
    cc
    5
    11
    aa
    10

    E2=IFERROR(INDEX(B:B,SMALL(IF($A$2:$A$11=$D$2,ROW($A$2:$A$11)),ROWS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Creating a Search Box
    By Mazzaaa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2016, 08:55 AM
  2. Replies: 14
    Last Post: 10-30-2014, 02:38 PM
  3. Replies: 4
    Last Post: 05-20-2014, 10:03 AM
  4. Creating search box in cell - Currently using Macro 'Range to search' *HELP*
    By jacko058 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2014, 05:24 AM
  5. [SOLVED] Creating a VBA loop to search for values, stop when a cell value is 0
    By jfgay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2013, 10:30 AM
  6. Replies: 0
    Last Post: 03-05-2009, 01:43 PM
  7. Creating Search Bar
    By kiany406 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2007, 03:21 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