How to install your UDF code
- Copy the Excel VBA code as posted in post #2
- 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)
You can then use the SUMMARY formula anywhere in this workbook:
The formula will check all cells in the first specified range (rngMatch), and for each non-blank cell will return the first characters of the matching cells in the second specified range (rngHeaders).
Bookmarks