A couple of items to mention:
1. for the following code to work, you will need to change the value in L1 from 15 to .15
2. I scoured your data and could not find the expected results that you show in H18 and accross
3. While my code does exactly what you asked, it returns no results as I could not find any of the expected results in the highlighted section of your sheet.
I have the data posted to Sheet1 in your workbook. You may wish to change the criteria in H1 and I1 and be assured you have expected results to match up.
How to install your new code
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:- Press Alt-F8 to open the macro list
- Select a macro in the list
- Click the Run button
Bookmarks