Morning all,
I am hitting a bit of a wall with regards to a recent project and hoping you could help.
In short, I have a database of over 500,000 rows that I want to search based upon multiple criteria. I tried using a Countif solution which works, but its so resource heavy that the end users just crash their tiny PCs.
I was therefore hoping to use a filter solution
Sheet 1 contains the data to be searched:
Column A contains a unique reference number
Column E contains a Date of Birth
Column I contains a Postcode
Sheet 2 contains the input data the end user wants searches
Column A is where they add any references numbers they have (up to 20)
Column B is where they add any DOBs they have (up to 20)
Column C is where they add any Postcodes they have (up to 20)
I want it so that on Sheet 2, the end user can type in any references they may have into 1 column, any dates of birth in the second and any postcodes in the third. They press a button, a Macro runs and applies a Filter on Sheet 1 for the above.
To make matters more complex, I want it to return any rows with at least 1 match and for the Unique Reference and Postcode filters to be a "contains" rather than exact match. This means it must also include blanks
Normally I would just record a macro and manually do it the first time, but it wont allow me to select a cell reference and as said, I used the Countif method which works excellently but because of the file size is far too resource heavy.
Any help appreciated
I am hitting a bit of a wall with regards to a recent project and hoping you could help.
In short, I have a database of over 500,000 rows that I want to search based upon multiple criteria. I tried using a Countif solution which works, but its so resource heavy that the end users just crash their tiny PCs.
I was therefore hoping to use a filter solution
Sheet 1 contains the data to be searched:
Column A contains a unique reference number
Column E contains a Date of Birth
Column I contains a Postcode
Sheet 2 contains the input data the end user wants searches
Column A is where they add any references numbers they have (up to 20)
Column B is where they add any DOBs they have (up to 20)
Column C is where they add any Postcodes they have (up to 20)
I want it so that on Sheet 2, the end user can type in any references they may have into 1 column, any dates of birth in the second and any postcodes in the third. They press a button, a Macro runs and applies a Filter on Sheet 1 for the above.
To make matters more complex, I want it to return any rows with at least 1 match and for the Unique Reference and Postcode filters to be a "contains" rather than exact match. This means it must also include blanks
Normally I would just record a macro and manually do it the first time, but it wont allow me to select a cell reference and as said, I used the Countif method which works excellently but because of the file size is far too resource heavy.
Any help appreciated