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)
The UDF accepts 4 inputs, all are required. The first input is the criteria. Second is the Criteria Range (what the criteria is compared to). The third is the Join Range (What is being joined based on the criteria). Lastly is the Delim, which allows you to put in text between values.
The above was with inspiration from here: http://www.mrexcel.com/forum/excel-q...y-formula.html
Bookmarks