+ Reply to Thread
Results 1 to 3 of 3

Smart search to enter data

  1. #1
    Registered User
    Join Date
    08-15-2019
    Location
    Pachuca; Mexico
    MS-Off Ver
    2021
    Posts
    8

    Smart search to enter data

    Hello everyone.
    First of all it is an honor to belong to this great Excel forum. A few days ago I registered and the truth is that I was very surprised.
    I see that incredible things can be achieved that I had no idea could be done.

    This is my first publication and it is to ask for your help.

    I have to work in construction and I am constantly accessing a book (database) to enter these in other books.

    1.jpg
    Database Example: With information in A, B, C and D
    Someone can help me create an intelligent search engine that is linked to my database and works with keywords; where throw all the possibilities and allow which to use; and as that returns me the values according to the following criteria in rows: A = A, B = B, C = C, D = Q
    2.jpg
    Example of how you should insert the information.

    In the database I only added a few as an example; However, I have many coincidences so I would like to throw all the possibilities and allow me to choose which one to use; and then proceed with the data.

    I enclose the sample files. Any help will be greatly appreciated. I say goodbye and thank you in advance.
    Attached Files Attached Files
    Last edited by AliGW; 08-19-2019 at 01:25 AM. Reason: Formatting removed for legibility.

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Smart search to enter data

    Quote Originally Posted by Romero14 View Post
    Database Example: With information in A, B, C and D
    Someone can help me create an intelligent search engine that is linked to my database
    and works with keywords; where throw all the possibilities and allow which to use;
    and as that returns me the values according to the following criteria in rows: A = A, B = B, C = C, D = Q
    A. If the "keywords" you mean is a unique identifier, then maybe you can use vlookup formula.

    Something like this when you are in Ejemplo.xlsx :
    - type "D001" anywhere in a row of column A
    - the text "demolicion a mano de piedra....." appear in the same row but column B
    - the text "M3" appear in the same row but column C
    - the text "$353.86" appear in the same row but column Q

    - type "D057" anywhere in a row of column A
    - the text "desmontaje de saude....." appear in the same row but column B
    - the text "SAL" appear in the same row but column C
    - the text "$125.66" appear in the same row but column Q

    and so on.

    B. If the "keywords" you mean is anything as long as it match the value which is in BaseDatos.xlsx,
    so it's something like this when you are in Ejemplo.xlsx :

    - a dialog box appear for the you to type
    - you type "mano", which you expect :

    IF the words "mano" exist in BaseDatos.xlsx in any row and in any column
    Then the first found row which consist "mano" in the BaseDatos.xlsx will be shown in row 8 of ejemplo.xlsx sheet, where
    found row value in column A of BaseDatos.xlsx is shown in column A of ejemplo.xlsx row 8
    found row value in column B of BaseDatos.xlsx shown in column B of ejemplo.xlsx row 8
    found row value in column C of BaseDatos.xlsx shown in column C of ejemplo.xlsx row 8
    found row value in column D of BaseDatos.xlsx shown in column Q of ejemplo.xlsx row 8

    IF the code doesn't find another row consists "mano" in the BaseDatos.xlsx
    then the code finish/stop/

    IF the code find another row consists "mano" in the BaseDatos.xlsx
    then this row will be shown in the next row of Ejemplo.xlsx sheet (row 9 in this case).

    IF the code find another row again consists "mano" in the BaseDatos.xlsx
    then this row will be shown in the next row of Ejemplo.xlsx sheet (row 10 in this case).

    and so on.
    So, the code will loop to each row and columns of BaseDatos.xlsx to check whether the word "mano" exist or not.
    If found, then the code will put it into the next available blank row of ejemplo.xlsx sheet.
    If not found, the code will stop or give a message box something like "the word you search is not found in BaseDatos.xlsx".

    In B, it's like typing any word in Google Search Box, then Google will list the result.
    So the question in B, what if a user type "mano" again the next day in Ejemplo.xlsx search dialog box ?
    Will the code check first whether the word "mano" already exist or not in Ejemplo.xlsx ?
    If found, then the code stop or maybe give a message box "mano already exist here" ?
    or the code will continue fill the next blank available row ?
    so then there are duplicate rows (consist the same value) in Ejemplo.xlsx.


    To be honest, I am sorry as I don't know how to do it if it's B
    Last edited by karmapala; 08-19-2019 at 08:28 AM.

  3. #3
    Registered User
    Join Date
    08-15-2019
    Location
    Pachuca; Mexico
    MS-Off Ver
    2021
    Posts
    8

    Re: Smart search to enter data

    Hi Kampala. First of all, thank you very much for taking the trouble to help and respond in this thread.

    Quote Originally Posted by karmapala View Post

    Something like this when you are in Ejemplo.xlsx :
    - type "D001" anywhere in a row of column A
    - the text "demolicion a mano de piedra....." appear in the same row but column B
    - the text "M3" appear in the same row but column C
    - the text "$353.86" appear in the same row but column Q

    - type "D057" anywhere in a row of column A
    - the text "desmontaje de saude....." appear in the same row but column B
    - the text "SAL" appear in the same row but column C
    - the text "$125.66" appear in the same row but column Q

    and so on.
    You interpret it correctly so I would like it to work.

    now with respect to the search box you also interpret it well.


    Quote Originally Posted by karmapala View Post

    - a dialog box appear for the you to type
    - you type "mano", which you expect:
    I would like to see a list of possible matches first where the word "mano" appears.

    From that list let me choose an option; and according to the option you choose to apply the criteria that you mentioned before.

    if the code finds nothing with the search term; Then the legend "not found" appears and allows me to enter a new search.

    Quote Originally Posted by karmapala View Post

    what if a user type "mano" again the next day in Ejemplo.xlsx search dialog box ?
    Check if it already exists in the current book, and I get a warning message. But that allows me to continue with a new row if I wish, because there will be occasions where I have to repeat the same concept more than 1 time in example.

    Quote Originally Posted by karmapala View Post

    To be honest, I am sorry as I don't know how to do it if it's B
    Good; You mentioned clearer ideas. I will try to find more help with a code. Maybe someone can show me the way

+ 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: 1
    Last Post: 03-25-2016, 01:31 AM
  2. Replies: 1
    Last Post: 03-25-2016, 01:16 AM
  3. Search for empty cells in row and enter data in last column when the row is full
    By chassintails in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2015, 07:11 PM
  4. Replies: 0
    Last Post: 02-27-2014, 04:43 PM
  5. Search Chart and enter data.. Detailed sample attachment included
    By AeroTheManiac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2014, 04:32 PM
  6. I need info to search and enter data.
    By AeroTheManiac in forum Excel General
    Replies: 1
    Last Post: 02-06-2014, 01:54 PM
  7. Replies: 6
    Last Post: 12-15-2011, 05:08 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