0

Use a variable with a Join - NL("join",B6:B23)

I have a report that uses a range of rows as a filter. Sales numbers are copied & pasted into column B starting at B6, and then the report is run on those numbers. The number of rows can vary.

I currently have this that works:
=NL("join",B6:B23,"|")
The cell that contains that formula is used as a filter. Right now I have to edit the last row each time I get a new set of numbers. If the last row is 50, B23 is changed to B50.
I would like for the user to be able to enter the last row in a cell and then use a variable or a cell reference in place of B23. Say the user enters 50 in cell C3. Is there a way to reference that cell in the formula above?

Something like this:
=NL("join",B6:=C3,"|")
That of course is incorrect syntax.

Thanks for any help.
David

7 comments

Please sign in to leave a comment.