Google Sheets - Build Your Own Search Box

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ค. 2024
  • Create a search box that takes user input and highlights the rows where the word or number is found in the data.
    🕒 Timestamps:
    0:00 Intro
    0:45 SEARCH Function
    2:30 Make the Input Box
    2:58 Conditional Formatting
    Learn more from Prolific Oaktree:
    🌳 Next Video - Google Drive - Free vs. Paid Versions • Google Drive - Free vs...
    🌳 Related Playlist - Google Apps | Full Tutorials - bit.ly/google-tutorials
    #googleseets #spreadsheet #tutorial
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 110

  • @goombah_
    @goombah_ 2 ปีที่แล้ว +10

    Is there any way to make data appear un-highlighted until the search function is used?

    • @oxpey4473
      @oxpey4473 ปีที่แล้ว

      Following the example of the video you have to put and AND condition on your formula, just only checks if the search box "IS TEXT" it will be drop False when is empty... so it works!!! Here u have the form: =AND(SEARCH($F$3,$C2)>0,ISTEXT($F$3))

  • @spookybooscarystorytime
    @spookybooscarystorytime 2 ปีที่แล้ว

    Is there a way to do all of this by creating a front end using Google forms? I'm trying to find a cheap, decent database that has a great front end but nothing compares to filemakre pro. I tried the form but it only lets me back in with a link or the spreadsheet itself which is quite infuriating because I'm not sending it to others, it's only for myself. Thanks

  • @vianca811
    @vianca811 3 ปีที่แล้ว +1

    Thanks for this!! It's very clear and easy to follow!

  • @daklaker2287
    @daklaker2287 3 ปีที่แล้ว

    Thank you master!! Would you pls show me how to indicating just only row having data that we search, so how could i do that? Thank you!!

  • @Maidenas05
    @Maidenas05 8 หลายเดือนก่อน +4

    Hello !! That is perfect well done ! How can we change , when the SearchBox is empty not to highlight everyting ?

    • @EamonnCottrell
      @EamonnCottrell 5 หลายเดือนก่อน

      You can do this with and and statement so that it checks if F3 isn't blank too =AND(SEARCH($F$3,$C2)>0,$F$3"")

  • @saasaaluv
    @saasaaluv 10 หลายเดือนก่อน +1

    thanks for the guideline! Its very easy to understand and helpful

  • @claudiacolati8810
    @claudiacolati8810 3 ปีที่แล้ว +2

    Hi! Love the videos, they are super helpful!
    I am currently having difficulty with texts moving from their spot whenever I write something above it on Google docs. I have currently began writing a novel and made a table of contents with bookmarks and links to go along with it (with the help of your videos!). I have placed this table of contents as the first page to the document, which will be regularly updated as I write new chapters and add each one to the table of contents. My problem is that because the TOC starts as the first page and the "first page" to chapter 1 starts on the next page, how do I prevent that first page of chapter 1 from moving down every time I add to the TOC? I've tried searching the internet, mostly people suggesting I do a page break, but every time I try using it, it just doesn't seem to work for me (I'm probably just doing it wrong).
    Thanks in advance for the advice!

    • @ProlificOaktree
      @ProlificOaktree  3 ปีที่แล้ว +1

      Thank you, I'm glad you have enjoyed my videos. You may want to try a Section Break. See how they can work with custom page numbering here: th-cam.com/video/fDqm49_bD6M/w-d-xo.html

  • @nature_through_my_lens
    @nature_through_my_lens ปีที่แล้ว

    Can I add this search box on my google site and it directly shows the result based on the conditional formatting?

  • @jeronimolopes
    @jeronimolopes ปีที่แล้ว

    Great content, but I have one question, there is any way to put some text placeholder like "type to search" in the search box?

  • @reading265days2
    @reading265days2 2 หลายเดือนก่อน

    Hey! I'm trying to make a search bar for a homemade book catalog. Every time I do this though only some bars gets highlighted, and when I search it gives me a book two bars above the actual thing I am searching for. Is there a way to fix this?

  • @hga5734
    @hga5734 2 ปีที่แล้ว +1

    Hello. This is very helpful!! Can we also search for data from a range of cells ? ex. C2 to M1000

  • @jj000999able
    @jj000999able 2 ปีที่แล้ว +1

    Hi sir. Thank you for the tutorial. Have one doubt. Can you plz tell how to search multiple text or number in the search box?

  • @ianmccusker8092
    @ianmccusker8092 3 ปีที่แล้ว +1

    Hi Adam, Enjoyed the tutorial thanks. I'm not a coder or anything but I was trying to create a search box facility on my website (like google search) that using Google Sheets could link to an external website that will have over 400 pages. The way I want it to work is the person would type their name in the box and if it was on the Google sheet it would appear in the box and once they clicked on it it would take them to that particular web page. Just wondered if you were able to point me in the direction of where I can find a video where someone explains how to do this. Thanks for your help in advance.

    • @ConsulthinkProgrammer
      @ConsulthinkProgrammer 3 ปีที่แล้ว

      Hmm, use Apps Script and build some webApp to recall the particular data from Google Sheets.

  • @daklaker2287
    @daklaker2287 3 ปีที่แล้ว

    i cant lock highlight the collumns, can you explain me clearly sir?

  • @xoterra_space
    @xoterra_space ปีที่แล้ว +9

    Thank you for very helpful video!
    But what should I do if I want to leave the cell not in highlight when search box is empty?

    • @CurranOC
      @CurranOC 2 หลายเดือนก่อน +1

      1. Create another conditional formatting rule and place it before the SEARCH() function's conditional formating.
      You can drag and drop by using the 4 dots on the left of each conditional format rule.
      2. Apply to the same range you are using in the SEARCH() function.
      3. Custom formula is... "=ISBLANK($B$1)" .
      Replace $B$1 with whichever cell your search box is located in.
      4. Set formatting style to None or White.

    • @donk73
      @donk73 หลายเดือนก่อน

      @@CurranOC Thanks for that additional function and for continuing to support your tutorial even though it's several years old.

  • @sakmberjoshi978
    @sakmberjoshi978 11 หลายเดือนก่อน

    THANK YOU SO MUCH SIR REALLY THANKFUL FOR THE INFORMATION !

  • @bmmusic
    @bmmusic ปีที่แล้ว

    thank you. needed this.

  • @Kumarmullackal
    @Kumarmullackal 3 ปีที่แล้ว

    Thanks a lot. It helped me out !!

  • @KeraniganjDhaka
    @KeraniganjDhaka 3 ปีที่แล้ว

    Any way to add search option in google form?

  • @amagdenovski
    @amagdenovski ปีที่แล้ว

    Very helpful, thank you!

  • @KwinDecipulo
    @KwinDecipulo ปีที่แล้ว

    THANKS!

  • @loussaiefraouf3252
    @loussaiefraouf3252 ปีที่แล้ว

    please what is the formula to make it search in all of the columns not only in the name column?
    For example, I want to search with names maybe date maybe amount

  • @OurTayloredHome
    @OurTayloredHome 3 ปีที่แล้ว +1

    Thanks for the video. Very helpful. How would I need to change the formula if I wanted to search the text of multiple columns instead of just one like in this example?

    • @OurTayloredHome
      @OurTayloredHome 3 ปีที่แล้ว +2

      Wait! I figured it out. In case you are wondering... =SEARCH($A$2,$B2&$C2&$E2)>0 My search box is in A2 and the fields it searches are column B, C, and E starting on row 2.

    • @hannah51238
      @hannah51238 2 ปีที่แล้ว

      @@OurTayloredHome Legend, ty!

    • @hannah51238
      @hannah51238 2 ปีที่แล้ว +3

      The forumla just highlights everything. Do we need to change the '0' to a letter value?

  • @malin380jey
    @malin380jey 2 ปีที่แล้ว

    can we get a search box to find multiple names at the same time using same box ?

  • @TheBookTeller
    @TheBookTeller 3 ปีที่แล้ว

    Thank you

  • @melvinrsmith
    @melvinrsmith 3 ปีที่แล้ว

    This is great and I've got it to work. I must be missing something but when I go back to edit the conditional formula, it doesn't show. It just shows a blank one and no others. Is it hidden somehow? If I want to change it, how do I do it without retyping? Lastly, could I use this formula to search across multiple sheets if the spreadsheet has them? If so, how? Thanks!

    • @ProlificOaktree
      @ProlificOaktree  3 ปีที่แล้ว +1

      Make sure you highlight the range that is getting the highlighting applied. If you do that first, the conditional formatting rule should show up.

  • @AdithyaShreshti
    @AdithyaShreshti 2 ปีที่แล้ว +4

    This is brilliant, can we do something like this to find different tabs available in one google sheet?
    I don’t want to get into searching the content in each tabs though

    • @juantapia3351
      @juantapia3351 2 ปีที่แล้ว +1

      I've been searching for something similar for weeks. No luck!
      Please let me know if you're able to find something along these lines.

  • @034242024
    @034242024 ปีที่แล้ว

    thank you , you help me you great

  • @user-uy4qb7lt6b
    @user-uy4qb7lt6b 8 หลายเดือนก่อน +2

    Hi, This is perfect thank you, is there anyway to get rid of the extra highlighting when there isn't anything in the search box?

    • @donk73
      @donk73 2 หลายเดือนก่อน

      I have the same question. If the search box is empty, the entire search field is highlighted

  • @melvinrsmith
    @melvinrsmith 3 ปีที่แล้ว

    Oh, and when I use this search method, the cursor drops to the cell below the search box. Is there a way to move the cursor back up to the search box so I don't have to move it back up manually each time?

  • @larocque3600
    @larocque3600 9 หลายเดือนก่อน

    I was able to get this to work, but it only searches one column. Which is fine. I’m wanting a second box to search the second column, but using the same formula and altering it to match my parameters is not working. Suggestions??

  • @shitallohakare9328
    @shitallohakare9328 2 ปีที่แล้ว

    Wow that's nice, Thank you Sir.

  • @tcz1713
    @tcz1713 3 ปีที่แล้ว

    This was super helpful, thank you!

  • @vianca811
    @vianca811 3 ปีที่แล้ว

    I have a question! When you delete what's written on the search box, all of the range will still be highlighted right? Then when you do type something, it will just highlight what you've written. Is there a way that nothing will be highlighted until I type something in the search box? Like it will remain its original color.

    • @ProlificOaktree
      @ProlificOaktree  3 ปีที่แล้ว

      That's a great question. I can't think of any way to do that off the top of my head.

    • @ConsulthinkProgrammer
      @ConsulthinkProgrammer 3 ปีที่แล้ว +1

      Use REGEX and IF function to do that

    • @titunbandhu7174
      @titunbandhu7174 3 ปีที่แล้ว +5

      =IF(ISBLANK($F$3)," ",SEARCH($F$3,$C2)>0)

    • @Tanorov
      @Tanorov 2 ปีที่แล้ว +1

      @@titunbandhu7174 Cheers dude! Saved me so much time!

    • @oxpey4473
      @oxpey4473 ปีที่แล้ว

      Following the example of the video you have to put and AND condition on your formula, just only checks if the search box "IS TEXT" it will be drop False when is empty... so it works!!! Here u have the form: =AND(SEARCH($F$3,$C2)>0,ISTEXT($F$3))

  • @carrietam6121
    @carrietam6121 2 ปีที่แล้ว

    I followed your tutorial but why is it not working for my google sheets?

  • @jonlawrance8383
    @jonlawrance8383 2 ปีที่แล้ว +4

    Great video, helped me create a search box that works so thanks! The only problem now is that I have a large sheet with thousands of entries and the search doesn't automatically scroll down to the result so I'm scrolling manually looking for the highlighted item. How can I make it scroll to the result automatically?

    • @ProlificOaktree
      @ProlificOaktree  2 ปีที่แล้ว

      Maybe go back to using the control F key combination.

    • @jonlawrance8383
      @jonlawrance8383 2 ปีที่แล้ว

      @@ProlificOaktree ah maybe that would be better in that case, shame there isn't a way to display the results as it's satisfying to make something work, but thanks for your help and reply!

    • @mobi47
      @mobi47 ปีที่แล้ว

      search box with vlookup

    • @2trailertrucker983
      @2trailertrucker983 ปีที่แล้ว +2

      @@mobi47 Do you know how to set that up?

    • @mobi47
      @mobi47 ปีที่แล้ว +1

      @@2trailertrucker983 yes its easy email me

  • @hamjalalsarker1241
    @hamjalalsarker1241 ปีที่แล้ว

    Very helpful

  • @varuncd1096
    @varuncd1096 3 หลายเดือนก่อน

    But, it does not filter the data with the same name. In a big raw data, we might need that. Please suggest something.

  • @rishalchand9510
    @rishalchand9510 2 ปีที่แล้ว

    He can we make it possible, if i share this sheet with many people and i only want each person to see their pay only, based on the email they sign in maybe? Or how so others don't enter other employees name and see their pay

    • @ProlificOaktree
      @ProlificOaktree  2 ปีที่แล้ว +1

      That doesn't sound like something that I would try to do in one spreadsheet.

    • @rishalchand9510
      @rishalchand9510 2 ปีที่แล้ว

      @@ProlificOaktree Please do, looking forward for the video

  • @StaceysDogGrooming
    @StaceysDogGrooming 2 ปีที่แล้ว

    is there a way to have a search box on one page, when you search it looks in page 2, but then displays the results on page one?

    • @demosss5717
      @demosss5717 2 ปีที่แล้ว +1

      You can do this by using queries

  • @JDeWittDIY
    @JDeWittDIY ปีที่แล้ว +1

    Thanks for the video, works great! Is it possible to hide rows that do not match the search text?

    • @ProlificOaktree
      @ProlificOaktree  ปีที่แล้ว

      I don’t think so

    • @JDeWittDIY
      @JDeWittDIY ปีที่แล้ว

      @@ProlificOaktree That's a bummer. Thanks for the reply though!

    • @agoogleuser6937
      @agoogleuser6937 11 หลายเดือนก่อน

      Yes with a GAS that creates a filter.

    • @JDeWittDIY
      @JDeWittDIY 11 หลายเดือนก่อน

      @@agoogleuser6937 Thanks. Any more details on how to go about that? What is a GAS?

  • @anitabisht547
    @anitabisht547 2 ปีที่แล้ว

    It is not working it just moves up and down to different rows but does not find the correct one. Please help sir

  • @gokum7955
    @gokum7955 3 ปีที่แล้ว

    Second view!!!! Thank you for the info teacher!!

  • @prashantcreative5901
    @prashantcreative5901 3 ปีที่แล้ว

    👍.......but how to convert image table into Google sheets

  • @mustakimali836
    @mustakimali836 ปีที่แล้ว

    Tnx

  • @andreanicagelacio5202
    @andreanicagelacio5202 ปีที่แล้ว

    How to remove the background color and just highlight the one that I search for?

    • @reasonerkevin
      @reasonerkevin ปีที่แล้ว

      I poked around for the same thing and found this to work: =IF ($B$1>$C$1,SEARCH($B$1,$A4)) It's sloppy and requires that C1 block be empty but it does the trick. Basically If your cell has a greater value than the empty cell next to it, do the search. So as the two fields when blank are equal, it won't do the search until you put a value in the field.
      Hopefully someone will come along and improve this as I'm just learning myself and I'm sure there's a better way.

    • @oxpey4473
      @oxpey4473 ปีที่แล้ว

      Following the example of the video you have to put and AND condition on your formula, just only checks if the search box "IS TEXT" it will be drop False when is empty... so it works!!! Here u have the form: =AND(SEARCH($F$3,$C2)>0,ISTEXT($F$3))

  • @marksawesomeadventures
    @marksawesomeadventures 2 ปีที่แล้ว +4

    This is Click Bait this is NOT a search Box! If you have an Inventory of a Thousand items just "Highlighting" the item ain't gonna make it.

  • @NDK0
    @NDK0 3 ปีที่แล้ว

    It just says the formula is invalid

  • @joefromdc
    @joefromdc 2 ปีที่แล้ว

    Only isssue I have is how to highlight the box for results and not when the box is empty

  • @damodarbangalore7003
    @damodarbangalore7003 3 ปีที่แล้ว

    First view and first Comment 👍

  • @selvarajandiappa3143
    @selvarajandiappa3143 2 ปีที่แล้ว

    Hi.. Just to check.. can you help us set up..we give you the fields and requirements..we will be happy to pay you for the services

    • @ProlificOaktree
      @ProlificOaktree  2 ปีที่แล้ว +1

      Thanks for asking, I appreciate the compliment. I don't do individual consulting as my focus is creating content.

  • @stevensousa5622
    @stevensousa5622 2 ปีที่แล้ว +1

    Awesome but in my case the key cell (F3 in your example) will be empty most of the time. How do I not let it highlight everything when its in its empty state .

    • @andya6021
      @andya6021 2 ปีที่แล้ว +5

      Here's my solution: Create 2 key cells. Key Cell #1 (F3) is for user input, Key Cell #2 (F4) is the one used by conditional formatting. In Key Cell #2 insert the formula (=IF(F3=0,"@",F3). This means if the input cell (Key cell #1) is empty, Key Cell #2 will be "@" and therefore not trigger the formatting. When the user types a search query into Key Cell #1, Key Cell #2 will mirror it and trigger conditional formatting as intended. (You can use any symbol you want, as long as it won't trigger formatting).
      You can completely hide Key Cell #2 by changing the font to white

    • @collaredkeeper
      @collaredkeeper 2 ปีที่แล้ว +1

      @@andya6021 This is the correct Answer to alot of people's questions regarding removing highlighting! Nice Idea.

    • @oxpey4473
      @oxpey4473 ปีที่แล้ว

      Following the example of the video you have to put and AND condition on your formula, just only checks if the search box "IS TEXT" it will be drop False when is empty... so it works!!! Here u have the form: =AND(SEARCH($F$3,$C2)>0,ISTEXT($F$3))

    • @tsuxcreative7335
      @tsuxcreative7335 ปีที่แล้ว

      @@andya6021 Thanks Andy! Believe it or not I've been trying to get rid of the highlight for like 45 min now. lol

  • @syaifulkhusna7299
    @syaifulkhusna7299 ปีที่แล้ว

    the formula's is not valid, why?

  • @beastrider4839
    @beastrider4839 ปีที่แล้ว

    THIS SEARCH BOX IS SEARCHING THE CONTACT NUMBER???

  • @ragibnoorantor417
    @ragibnoorantor417 2 ปีที่แล้ว

    just press ctrl+f, and search

  • @syaifulkhusna7299
    @syaifulkhusna7299 ปีที่แล้ว

    help please