+ Reply to Thread
Results 1 to 29 of 29

Creating a search method in an excel sheet to identify things according to a specific id.

  1. #1
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Creating a search method in an excel sheet to identify things according to a specific id.

    Hello everybody!
    I am very new to VBA programing . Basically I am a Mechanical Engineer. I have been assigned a project wherein I have to create a search engine for the database I have created. The search should be based upon the text . Also I want all of this to look aesthetically good and want the columns to be separated out into boxes when a search is done.
    Any help would be very appreciated.
    Thank you
    Last edited by Moh13; 09-24-2013 at 06:31 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Search Engine

    Just confirm what do you mean by the word "Database"?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Search Engine

    sorry for not being clear...it is an excel sheet

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Search Engine

    Yes surely we can do it...

    Please attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Search Engine

    give me 2-3 hours..I ll finalize the layout and reply back as soon as possible
    BTW thanks for the quick response

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Search Engine

    No issue we wait for it

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Search Engine

    Hello Moh13,


    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)


    You could consider using something like - "Create Search Engine Form Excel Spreadsheet Data" or what ever you may feel would be more appropriate.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  8. #8
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Okay I have created a sample sheet here...there are many rows and columns in my database..i have picked up some things..
    Worksheet 1 has the table
    Worksheet 2 has the result which I need to be displayed

    In sheet 1 ..there should be a blank space to fill..Enter Material No..where you can write the material no..
    When you press enter..or click further..the program should display all the data in the rows as shown on sheet 2..
    the design of this should be aesthetically pleasing ..i don't know much about excel..so I have made a very crude and basic thing as to what I want...
    plz help me with the code..thank you
    Attached Files Attached Files

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Thanks for changing the Thread title

    Refer the attached file for Non VBA solution

  10. #10
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Thank you very much.... almost there.. I just needed that when we enter the number in the material search box..the sheet should automatically change and show the other one which has all the information.
    And can you please help me with improving the interface on the sheet...it looks very basic...I know it is a very basic thing : P.. you haven't even had to write any code....but I would like it to be more presentable ..so can you give me some tips to make it look like a real program or something..
    Thanks again (Y)

  11. #11
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    can you make the cell where we write the material number look like a blank ?...and also can there be a choice like 'reset choice' so that the written matter in the material entry cell/blank automatically clears...?
    Also I was thinking if the sheet 1 can be a welcome sheet..having company logo and all..but with the material choice blank..that would look nice..
    and if i can get a button or something so that when we press it it gives the complete stock of everything that we have...i plan to shift the data base to sheet 2 or 3..plz help
    Last edited by Moh13; 09-25-2013 at 03:01 AM.

  12. #12
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    He bro...need it to done quickly..please help

  13. #13
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Hello Moh13,

    Please see the attached Workbook.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    oh man..this is awesome..really..everything is here ...thank you a lot..thanks Winnon and Sixthsense as well...
    BTW the red blocks are nothing special..they are just the same ones..which I forgot to edit..
    only one more thing I require..can we add a 'enter new value' block on sheet 2 so that after the 1sst result..it takes back to the sheet1 where we enter the material value..?

  15. #15
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Creating a search method in an excel sheet to identify things according to a specific

    I have made the changes for you, as per the revised attached sample Workbook.
    Attached Files Attached Files

  16. #16
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Hello Moh13,


    If you are satisfied with the solution given to you, then please mark your Thread as Solved.

    Thank you.

    Regards

  17. #17
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    hey Winon..thank you very much..you saved me..
    I understood how you did..but I can't figure out how did you manage to change the sheet when we enter the material id..can you explain plz?

  18. #18
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Hey Winon..I am having a little trouble..I created a reset option to clear the contents..I moved the enter material no from sheet1 to sheet main..but when I execute the macro it is giving some error..also the same error is ther enter new value (sheet2)..can you help me with that..?
    Also, when the correct id is selected..the program doesnot seem to be moving directly to the display sheet..how did you do that..can you tell plz?
    thank you
    (see the file attached)
    Attached Files Attached Files

  19. #19
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Hello Moh13,

    Please try it now. I have Created a named Range called MatNumbers, based on the Data in Column B of Sheet 1, for the DropDown on the Main Sheet.

    To see what the Code looks like, that activates Sheet 2, when you enter a number on the Main Sheet, right-click on the Tab of the Main Sheet, and then select view Code.

    Hope that helps!
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    awesome.....many thanks

  21. #21
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Hello Moh13,

    You are welcome.


    If you are satisfied with the solution, then please do mark your Thread as Solved.

    Thank you.

    Regards

  22. #22
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    i just need 1 more thing from you fantastic guys..Winon I wanted to use the value of rectangle 16 and 8 in another sheet in the same file for some calcualtion..only the value..how can I do that?..and the change in revenue column is showing a lot of digits after the decimal point..i tried to format the cell but to no effect...how to do it?
    thanks

  23. #23
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Hello Moh13,

    See Sheet3 of the attached sample Workbook, for the answer.

    Regards
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    thanks for the help again....
    I ll close the thread in 2-3 days so that if I have any last minute hiccups I can contact you awesome guys for help

  25. #25
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    need help again...in 7th row sheet 1 ..where you the cells pick up data..I need the numbers to be in 2 decimal and thousand format..like Average price 2,345.94,,
    currently it is showing Average Price 2345.94556756 something like that .
    I need this because it you have used these values in sheet 3 rectangles...so how can we do it?..I am not able to format the cells or rectangles for this..
    thank you

  26. #26
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Hello Moh13,

    O.K. I have changed things a little bit for you, and hopefully the attached Workbook would be more to your liking.

    Regards
    Attached Files Attached Files

  27. #27
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    hey thanks bro..that is what I was looking for..but can you tell me what did you do..as I have made a different sheet..and I need to do this in that one..
    thanks

  28. #28
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Creating a search method in an excel sheet to identify things according to a specific

    Hi Moh13,

    ..but can you tell me what did you do..
    The changes to your previous Workbook, took me more than an hour, and to now eplain everything in detail, will require far too much time.

    In short. Unhide Rows 6 and 7 on Sheet1, and there you will see the formulas. All the Cells in Row 6 have been formatted to Number, with two decimal points. Column A, automatically inserts a Ser. No. as soon as Data is enterd into Column B. Check the Formulas down Column A, and while in one of those cells, also check the Data Validation, which "Locks" and cancels any attempted entry.

    I have deleted the Shapes Rectangles, and replaced it with standard Excel worksheet formats, formulas and so on.

    Compare the two Workbooks, and pick up the differences from there.

    Regards

  29. #29
    Registered User
    Join Date
    09-24-2013
    Location
    Baroda,
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Creating a search method in an excel sheet to identify things according to a specific

    okay thanks man!

+ 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 engine
    By Ryan_Bernal in forum Excel General
    Replies: 8
    Last Post: 12-24-2012, 03:14 AM
  2. Search engine
    By zplugger in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-11-2009, 01:16 PM
  3. Developing Search Engine to search several Excel sheets
    By cruiser102 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2009, 09:30 AM
  4. Search Engine Analysis
    By vikas.bhandari in forum Excel General
    Replies: 2
    Last Post: 01-16-2007, 05:45 AM
  5. [SOLVED] Search Engine in a Workbook
    By Nova in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2005, 05:06 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