Excel2007Filter: I want to be able to search information between two things in a single cell in Excel.
So a cell may have 4-9 typed in it, but I want that cell to be highlighted if a user searches for 7. Or 4. Or anything between 4 and 9 inclusively. (More details and a screenshot of the spreadsheet inside.)
This is for running Excel 2007 on Windows XP, in case it matters.
I have a spreadsheet with 127 rows and 97 columns. Just about each cell has some sort of range of data in it.
Here's some examples of the data:
just numbers (1-26)
combinations (3263 #141-170)letters and numbers (A. A45 #1323-1349)
dates (E 203 Oct 16, 1991-Nov 30, 1992)
letters and numbers (E1411-E1415)
words and numbers (C. 2906 Units 59-64)
Ideally, what I want to have happen is that there will be a set of cells that will be used for searching. The user would type in the data they have (example: E 203 November 1, 1991), the cell with that information would light up.
I'm pretty sure that I'll have to have different search cells that will have to be filled in different ways in order to get all the information searchable. So there would be a cell for the category (E), a cell for the series (203), and a cell for the date (November 1, 1991).
The problem is, I'm not sure how to get Excel to recognize the information in the middle. I'm sure searching for Oct 16, 1991 will make the cell light up, but I want to get the information in between Oct 16, 1991-Nov 30, 1992 to be picked up by the searching as well.
Here's a screenshot of part of the spreadsheet for more detail.
I've got a passing familiarity with Excel and formulas, but I have zero knowledge of VBA.
Please help me Mefi!
Basically, the new sheet would be computed using formulae to split each source cell into the low value and the high value as two cells in the new sheet.
For more complex combinations, you will need more than two cells in the new sheet.
Then, your searching is really a matter of using the Excel Data Filter command appropriately. It's much better than searching.
If you have Excel 2007, and if you format the data as a "table", then Filtering becomes more obvious because Excel automatically sets the filtering option to "on" for the table.
I do not see a simpler way of doing this. Although I'm certainly eager to see what others have to say.
posted by blue_wardrobe at 10:19 AM on September 2