Hi all,
I have a user who wishes to have an input cell and a macro will automatically filter input data based on the value in the cell.
The input data that he would like to filter on is numerical but his input will be a text string.
For example, user inputs: "1-3, 6" in the input cell. My data should be filtered on when the column contains numbers 1, 2, 3 and 6.
For example, user inputs: "1, 2,5-7,10 in the input cell. Data should be filtered on numbers 1, 2, 5, 6, 7 and 10.
So, whenever 2 numbers have a "-" in between it will be the numbers containing and in between the 2 numbers.
Each of the values/ranges will be split by a ",". The only values allowed are whole numerical numbers, "-" and ",". Spaces are also allowed by the way but not required. If there is anything else it should throw an error message.
For now i would like to have the result (all separate numbers) in separate cells on a different sheet.
I will then build on from there... (actual filtering and the rest...)
Any ideas?
Thanks!
Hans
I have a user who wishes to have an input cell and a macro will automatically filter input data based on the value in the cell.
The input data that he would like to filter on is numerical but his input will be a text string.
For example, user inputs: "1-3, 6" in the input cell. My data should be filtered on when the column contains numbers 1, 2, 3 and 6.
For example, user inputs: "1, 2,5-7,10 in the input cell. Data should be filtered on numbers 1, 2, 5, 6, 7 and 10.
So, whenever 2 numbers have a "-" in between it will be the numbers containing and in between the 2 numbers.
Each of the values/ranges will be split by a ",". The only values allowed are whole numerical numbers, "-" and ",". Spaces are also allowed by the way but not required. If there is anything else it should throw an error message.
For now i would like to have the result (all separate numbers) in separate cells on a different sheet.
I will then build on from there... (actual filtering and the rest...)
Any ideas?
Thanks!
Hans