rjplante
Well-known Member
- Joined
- Oct 31, 2008
- Messages
- 576
- Office Version
- 365
- Platform
- Windows
I have a column of numbers and I would like them joined together into a single cell with two single quote mark at the front and each number surrounded by a single quote mark, and a column in between each number. The data below demonstrates my input and output.
Col A
BZX654456D
BZX123321D
BZX789987D
joined into Cell E1 as
' 'BZX654456D', 'BZX123321D', 'BZX789987D'
I am currently using the Textjoin function (see below) which works in Excel 2016, but not in Excel 2010. My end users are in Excel 2010 so I need to convert this formula into something that works for them. I do not care if it is a formula, a combination of formulas, or some elegant VBA code to make this happen. I currently have VBA in the spreadsheet so VBA might be the best way to get this done, however, I am open to suggestions.
My current formula: ="''" & TEXTJOIN("', '",TRUE,A1:A100) & "'"
Thanks for the help.
Robert
Col A
BZX654456D
BZX123321D
BZX789987D
joined into Cell E1 as
' 'BZX654456D', 'BZX123321D', 'BZX789987D'
I am currently using the Textjoin function (see below) which works in Excel 2016, but not in Excel 2010. My end users are in Excel 2010 so I need to convert this formula into something that works for them. I do not care if it is a formula, a combination of formulas, or some elegant VBA code to make this happen. I currently have VBA in the spreadsheet so VBA might be the best way to get this done, however, I am open to suggestions.
My current formula: ="''" & TEXTJOIN("', '",TRUE,A1:A100) & "'"
Thanks for the help.
Robert