#1
|
|||
|
|||
Search Engine based on multiple critiria
Hi all,
Hoping you can help, I need to build a search engine into my spreadsheet. I have attached the tables below for you to get an idea what I am after. I need to be able to fill in the top boxes with some or all information and it return a list below it based on those criteria and taking it from the table of information. Hope that makes sense. Cheers Mac |
#2
|
|||
|
|||
It is not obvious to me what you want.
In your example (with H5 = Orange) - what if I5 = Juice or K5 = Apple or L5 = 6 etc. etc? Please give more examples of expected results. |
#3
|
|||
|
|||
Hi,
The idea is that the person searching might not know all 5 items so they can put in some info and it will return a list with anything that is close to it but still based on the items they do know. I have attached another sheet to look at, at the top is where the user would type what they are looking for below that is what I want it to return and the last table is where the information is pulled from. I have done 6 Examples using the same data but with different search criteria each time so you can see what the results should be. Cheers Mac |
#4
|
|||
|
|||
I regret, but I can't help you.
|
#5
|
|||
|
|||
Thanks for having a go.
|
#7
|
|||
|
|||
when I send the file off via email I have multiple accounts that block any macro or vba based spreadsheets.
Can you do it without macro or vba? |
#8
|
|||
|
|||
OK, I can understand that, makes sense.
Sorry, a formula solution is beyond my ability. |
#9
|
|||
|
|||
Can you do it with macro/vba? I may have to find a new way of distributing it. At least it will work.
Cheers for your help |
#10
|
|||
|
|||
Yes, but this has nothing dynamic, uses hard coded ranges of the file you attached.
|
#11
|
|||
|
|||
That works perfectly, now how do I do that on the actual spread sheet lol.
|
#12
|
|||
|
|||
Very carefully
Can't really tell you without knowing the precise layout of things. Can you mock up a workbook with sheets indicative of what you actually have re: location and sheet names ? |
#13
|
|||
|
|||
I tried to modify your code and kept getting debugged
I have uploaded a mock up of the workbook I am working on. I have blacked out fields in the search engine as they will never be used to search so can be ignored. The master dataset is where the information is coming from and will be 1000 rows. Everything is in the right place. Hope this is not too complicated. Cheers for your help, really appreciated |
#14
|
|||
|
|||
Hi Mac
Think this works, hope I've commented the code well enough to follow. Any issues let me know. Good luck with the project. NoSparks |
#15
|
|||
|
|||
Perfect, copied it over to my spread sheet and it works perfectly. Thank you so much, it is much appreciated.
Mac |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA code to compile one document based on multiple search terms | Hoxton118 | Word VBA | 4 | 04-04-2021 06:02 AM |
I need to count based on multiple criteria in multiple columns | rachaels54 | Excel | 1 | 04-18-2017 03:20 PM |
I need to add multiple values based on multiple criteria in a cell not sure what to do | AUHAMM | Excel | 3 | 10-27-2014 09:11 PM |
Character based Search and Replace font size | anacond11 | Word | 2 | 08-08-2013 08:10 AM |
Access database engine with Streets and Trips 2009 | dreemsnake | Misc | 3 | 05-26-2009 10:25 AM |