+ Reply to Thread
Results 1 to 12 of 12

Display occurrences of text and then display it on search page

  1. #1
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Display occurrences of text and then display it on search page

    Hi/Evening All

    i have data on a sheet a list of video games and i would like to be able to type in the name or just a part name so for example just sonic rather then sonic 2 and 3 etc

    is this possible with vlookup have tried the match function in the past but just said yes or no

    thanks for the help
    Attached Files Attached Files

  2. #2
    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,209

    Re: Display occurrences of text and then display it on search page

    ... and expected output is ??????

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Display occurrences of text and then display it on search page

    Enter array formula in B6 and coy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ***Array formula
    ...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.

    v B C
    1
    2
    3 Insert Game Here sonic
    4
    5
    6 Sonic Adventure
    7 Sonic Adventure 2 - Birthday Pack (Limited Edition)
    8 Sonic The Hedgehog 2
    9 Sonic The Hedgehog 2
    10 Sonic The Hedgehog Chaos
    11 Sonic Chaos
    12 Sonic the Hedgehog
    13 Sonic the Hedgehog 2
    14 Sonic CD
    15 Sonic & Knuckles
    16 Sonic 3D Flickie's Island
    17 Sonic Spinball
    18 Sonic The Hedgehog
    19 Sonic The Hedgehog
    20 Sonic The Hedgehog 2
    21 Sonic The Hedgehog 2
    22 Sonic The Hedgehog 3
    23 Sonic The Hedgehog 3
    24 Sonic Jam
    25
    26
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: Display occurrences of text and then display it on search page

    thank you, just what i wanted

    one additionally question? if i was to fill the columns to either side would this pull the system and region so to show the version of said game and what platform it is on ?

    again thanks

  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,209

    Re: Display occurrences of text and then display it on search page

    If you want the platform and year, use the same formula but change the D:D (Sega!D:D) to the appropriate column in "Saga".

    OR use ..

    =INDEX(Sega!$C$2:$C$419,MATCH(search!$B6,Sega!$D$2:$D$419,0))

    which matches the title (B6) with titles in SAGA and returns the plaform (column C of "Saga"))
    Last edited by JohnTopley; 01-07-2017 at 04:27 PM.

  6. #6
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: Display occurrences of text and then display it on search page

    see attached for what i mean
    Attached Files Attached Files

  7. #7
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: Display occurrences of text and then display it on search page

    You Legend i could kiss you

  8. #8
    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,209

    Re: Display occurrences of text and then display it on search page

    System (Platform ?)

    =IFERROR(INDEX(Sega!$C$2:$C$419,MATCH(search!$B6,Sega!$D$2:$D$419,0)),"")

    region (Nationality ?)

    =IFERROR(INDEX(Sega!$A$2:$A$419,MATCH(search!$B6,Sega!$D$2:$D$419,0)),"")
    Attached Files Attached Files

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Display occurrences of text and then display it on search page

    Do it with one formula
    Enter in B6 and copy across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ***Array formula
    ...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.

    v B C D
    3 Insert Game Here sonic
    4
    5 Game System Region
    6 Sonic Adventure Dreamcast Europe
    7 Sonic Adventure 2 - Birthday Pack (Limited Edition) Dreamcast Japan
    8 Sonic The Hedgehog 2 Game Gear Europe
    9 Sonic The Hedgehog 2 Game Gear USA
    10 Sonic The Hedgehog Chaos Game Gear Europe
    11 Sonic Chaos Master System Europe
    12 Sonic the Hedgehog Master System Europe
    13 Sonic the Hedgehog 2 Master System Europe
    14 Sonic CD Mega CD Europe
    15 Sonic & Knuckles Mega Drive Europe
    16 Sonic 3D Flickie's Island Mega Drive Europe
    17 Sonic Spinball Mega Drive Europe
    18 Sonic The Hedgehog Mega Drive Europe
    19 Sonic The Hedgehog Mega Drive Japan
    20 Sonic The Hedgehog 2 Mega Drive Europe
    21 Sonic The Hedgehog 2 Mega Drive Japan
    22 Sonic The Hedgehog 3 Mega Drive Europe
    23 Sonic The Hedgehog 3 Mega Drive Japan
    24 Sonic Jam Sega Saturn Europe
    25
    26
    27
    28
    29

  10. #10
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: Display occurrences of text and then display it on search page

    its OK i shall stick with the first way using the array and match.

    however how do i get so it shows correct data, is there an option for a unique key like in
    access.

    as you can see from attached, when i search for sonic i get 19 results which is correct but the data shown is incorrect for instance i only have "sonic 2" for game gear twice one USA and one Europe but it shows it 3 times and all Europe
    Attached Files Attached Files

  11. #11
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: Display occurrences of text and then display it on search page

    Quote Originally Posted by AlKey View Post
    Do it with one formula
    Enter in B6 and copy across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ***Array formula
    ...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.

    v B C D
    3 Insert Game Here sonic
    4
    5 Game System Region
    6 Sonic Adventure Dreamcast Europe
    7 Sonic Adventure 2 - Birthday Pack (Limited Edition) Dreamcast Japan
    8 Sonic The Hedgehog 2 Game Gear Europe
    9 Sonic The Hedgehog 2 Game Gear USA
    10 Sonic The Hedgehog Chaos Game Gear Europe
    11 Sonic Chaos Master System Europe
    12 Sonic the Hedgehog Master System Europe
    13 Sonic the Hedgehog 2 Master System Europe
    14 Sonic CD Mega CD Europe
    15 Sonic & Knuckles Mega Drive Europe
    16 Sonic 3D Flickie's Island Mega Drive Europe
    17 Sonic Spinball Mega Drive Europe
    18 Sonic The Hedgehog Mega Drive Europe
    19 Sonic The Hedgehog Mega Drive Japan
    20 Sonic The Hedgehog 2 Mega Drive Europe
    21 Sonic The Hedgehog 2 Mega Drive Japan
    22 Sonic The Hedgehog 3 Mega Drive Europe
    23 Sonic The Hedgehog 3 Mega Drive Japan
    24 Sonic Jam Sega Saturn Europe
    25
    26
    27
    28
    29
    yeah sorry guys ignore my previous email fixed it with this cheers

  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,209

    Re: Display occurrences of text and then display it on search page

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. search for text and if found display the same
    By mbassler in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-09-2016, 08:21 AM
  2. VBA to search for a row of text, then display that row for manual data entry
    By dezkane in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-29-2016, 03:41 PM
  3. Search and Display certain text
    By jpullen88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2015, 06:57 PM
  4. how to add a search option in userform and display it in text box
    By ruveenck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2014, 04:33 AM
  5. [SOLVED] Not Display of Occurrences, After SortUniq UDF Added
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2014, 12:49 PM
  6. Replies: 11
    Last Post: 11-03-2013, 09:16 PM
  7. Search Text for Value and Display a Value
    By LukeThorn in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-16-2012, 05:00 PM

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