+ Reply to Thread
Results 1 to 34 of 34

Creating a searchable database

  1. #1
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Creating a searchable database

    Hi Team,
    I have 2 queries hoping to get it solved as always!
    1. I want to use excel as a searchable database .I have googled it but all their suggestions are to store data online (web forms ) which I don’t find useful. I searched this forum and here is the link which is nearly same(It only searches by name while I want the search to be based on two value ie name and paid or not).
    If you could design the code according to my attached Demo.xlsb would be cool as I would be able to figure out whether it suits my requirement or not. (The actual file contains thousand of data but the format is same)
    2. Second Question Is in the workbook itself.
    Waiting for your replies.
    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    Why not just filter on the criteria?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Hi thanks oeldere for your quick response !

    Well would you do that for me and upload here please so that I can figure out whether will that do or not... As I am not familiar to filter ..
    Also have a look at my second question that's most important
    Thanks

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    With an filter.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Ummm not exactly as I have huge list of around thousands of customers.and every time it would be tedious to go through all the name to get one single name is not logical ... beside the search criteria box remains unused ... I want to make use of it so that it becomes more user friendly..

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    With pivot table.

    See the attached file.

  7. #7
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Hi oeldere ...
    I feel I have made my issue a little complex ..my requirements can be achieved by pivot tables and even filter .
    I googled a lot and found the attached file (Invoice aging report.xltx) I want my workbook to be just like that except the paid column (column G of invoices) ..
    But still I have no replies of my second question need that solution badly.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    For your second question, see the yellow cells in the attached file.

  9. #9
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Wow that does what I want but still if I drag this formula for 1000 rows will that not slow up my workbook ??
    I feel it will and that's why I am searching for a macro that would do the same any idea how to achieve it!!

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    for that kind of rows (1000 row) that can't be a problem.

    but you will know if you test it on a dummy file.

  11. #11
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Okay it seems I have got my solution ... thanks oeldere for your kind effort to help me out .. I have few more questions that I would ask in my next post
    In Sha'a Allah will wait for your response

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    Please Login or Register  to view this content.
    What will this mean; I don't understand.

    You better post the questions related on this topic in the same topic, instead of making a new treat.

  13. #13
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    I meant to say "I have few more questions that I would ask in my next post In Sha'a Allah(if Allah wills), will wait for your response"
    By the way I worked out on my original workbook but yea one thing is missing I wanted the sorted data to copied to a new worksheet sadly your formula doesn't do so... Is there any macro or vba solution you must be wondering why this guy is stressing on macros its simply I love it.
    However if you could tell me how the sorted data be copied to a new worksheet would be great
    As I have dragged down the formula for 1000 rows what it does it calculates dues count even if there is no value in date column is there any way to avoid it ??
    Thanks
    Last edited by Khanzaki; 07-22-2013 at 07:43 AM.

  14. #14
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Why am I not getting any replies Oeldere where have you gone ?? need your all attention here

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    Post your file, wihtout confidentional information.

    Please also add the desired, expected result in the file.

  16. #16
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Did as you said
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    Plaese read #15 again.

    What should be done?

  18. #18
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    I have mentioned that in the workbook itself for better understanding of situation have a look

  19. #19
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    Why am I not getting any replies Oeldere where have you gone ?? need your all attention here


    Post your file, wihtout confidentional information.

    Please also add the desired, expected result in the file.

    Did as you said

    Plaese read #15 again.

    What should be done?

    I have mentioned that in the workbook itself for better understanding of situation have a look

  20. #20
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    what I want this worksheet to do is when I enter company name in column D1 of sheet1 it should return me value of only that particular company in Result worksheet and can the cell D1 be made a suggestion giving like when I enter Ad it should suggest me adi hardware

  21. #21
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creating a searchable database

    Since you don't put the desired result in the file (I asked you several times),

    and you don't feel the need to do that for me,

    I will quit with this question.

  22. #22
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Hi oeldere ,
    I have always mentioned my desired result. Have a look in cell L3 and also in #21 please correct me if I am wrong

  23. #23
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Okay I will try my best to be upto the mark this time .
    What I want from the attached worksheet is when i start typing in cell D1 of sheet 1 it should suggest me the matching companies name then I would choose one of it and soon as I press enter all the data of the selected company be copied to worksheet Result
    Attached Files Attached Files

  24. #24
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    I have tried once again to explain please have a look on the attached file .i would be glad if anybody comes out with a reply and oeldere i need your responses too .
    What this worksheet does is it collects data from different workbooks in Sheet DATA fine, ! now when i want to evaluate data i go to sheet RESULT and enter companies name in cell B1 and hit Search button it should return all the data related to that company.
    For example if I enter Adi Hardware it should collect all data from Data worksheet related to Adi Hardware and copy it in sheet Result as I have tried to show in the workbook ... Have a look this time its simpler and self explanatory (only after you confirm )
    Thanks i am in dire need of it
    Attached Files Attached Files

  25. #25
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Bump no response

  26. #26
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Creating a searchable database

    Why am I not getting any replies Oeldere where have you gone ?? need your all attention here
    I think your being a bit presumptuous that anyone here owes you their time.. the word ingrate is coming to mind....

    If you want help in a manner that is more suited to your impatience, then perhaps go to the "Commercial Services" section of the forum..

  27. #27
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Creating a searchable database

    A slight rearrangement of your input area on Result! works with this code
    Please Login or Register  to view this content.
    Attached Files Attached Files
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  28. #28
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Hi mikerickson you are genious it does exactly as I wanted now I will test it on my original template and will give the feedback ...
    @ apo I know I have been a bit crazy last two days but try to understand my situation too .. Last 10 days and still people are unable to understand my question that's pretty obvious for a person to make him go impatient ... and Ingrate ?? probably not but ya if you are happy with that assumption I say go ahead

  29. #29
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Hi mike !!
    The code you provided is just amazing its working smooth... Thanks a bunch man ..I was wondering if this macro could be run without clicking the search button ..I mean to say it costs me a trip to mouse to click and then I get data...I want this macro to run if I add few alphabets in cell A2 and data should be displayed is it possible ??

  30. #30
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Creating a searchable database

    Have you looked at the AutoFilter feature. If you apply AutoFilter to your data range, it might do what you want.

  31. #31
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Creating a searchable database

    I added some helper columns on a new sheet (Hide Me) to drive the dropdown list of unique company names.
    Then I added a Change event to Result's code sheet.
    Please Login or Register  to view this content.
    I think this will do what you want, but AutoFilter on sheet Data! would be more robust and stable.
    Attached Files Attached Files

  32. #32
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Hi mike,
    Your attached workbook is not working now here are the list of errors I am getting
    Capture.PNGError.PNGExcel stops working.PNG
    And regarding autofilter I don't want it to use I am happy with macros.
    Last edited by Khanzaki; 07-31-2013 at 01:54 PM.

  33. #33
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Hi mike,
    I made one change to the code you provided and now it's working wonders
    Original:
    Please Login or Register  to view this content.
    New:
    Please Login or Register  to view this content.
    The problem seems to have been solved but this only shows me the selected companies details ...What I need are criteria to resort the details of the selected company I know Autofilter are option but I don't want to go that way ....[Have a look on attached Searchable DataBase(mike).xlsb I tried using combobox and now its not working and if I use datavalidation it mysteriously works ]
    The other attached file is found on web and I discovered this is what I need ... so can you please have a look on it ..and modify it according to Searchable DataBase(mike).xlsb
    Thanks and regards

    See the attached file below
    Attached Files Attached Files

  34. #34
    Forum Contributor
    Join Date
    10-10-2012
    Location
    Mumbai,India
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    102

    Re: Creating a searchable database

    Bump no response

+ 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. Replies: 4
    Last Post: 01-29-2013, 05:11 PM
  2. Replies: 1
    Last Post: 01-02-2013, 12:40 PM
  3. Excel use as a searchable database on multiple criteria
    By dta in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-24-2009, 01:00 PM
  4. Searchable Excel Workbook Database
    By oneblueaugust in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-14-2009, 11:56 AM
  5. Creating a searchable training database
    By coldmove in forum Excel General
    Replies: 2
    Last Post: 01-05-2007, 11:14 AM

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