xenium
asked on
Custom Excel lookup function (part 2)
follow-up to https://www.experts-exchange.com/questions/28339566/Custom-Excel-lookup-function.html?anchorAnswerId=39784131#a39784131
If i wanted to return more than one column (the join range), eg to concatenate a few columns, would this be possible with a simple variation?
If i wanted to return more than one column (the join range), eg to concatenate a few columns, would this be possible with a simple variation?
ASKER
Works great thanks! Simple question (i hope) how can I enter a discontiguous JoinRange, eg if i want to return columns B and D for example.
Cheers
Cheers
That is not as simple as you would hope, you could add a variable for columns to include/exclude.
But passing a group of ranges is not so easy as they get separated by commas which ruins the formula.
How many columns need to be joined? Do they change?
But passing a group of ranges is not so easy as they get separated by commas which ruins the formula.
How many columns need to be joined? Do they change?
ASKER
Maybe 3 or 4 columns. They probably won't change. Solution needs to be fairly user-friendly as I won't be doing the updates to rows etc, and user will just copy-paste formulae down etc.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Works great thanks again!
Open in new window
This will allow for a Range to be concatenated.
It does have the optional second line joiner (set to default to crlf).
It should be quite apparent how it works from the examples in the workbook.
Any questions let me know.
Example.xlsm