THis is the UDF I installed in your workbook:
You can see this by pressing Alt-F11 to open the VBEditor. It is installed in the new Module1 I added.
Once the VBEditor is closed, you use this new function in a cell, like so in AP2, then AP2 is copied downward:
=CONCATIFS($J$1:$AO$1, $J2:$AO2, "<>")
The first parameter is the range of values you want strung together and returned.
The second parameter is the range of cells on this row to test.
The third parameter is the "test" on the second parameter cells. In this test, I'm just testing for any value at all. "<>" simply means to Excel, this cell is not blank.
So, for every cell that is not blank on row 2, the value from row1 is added to the result. If no results, you will get a "none".
Bookmarks