As my title suggests I'm wanting to concatenate data that is in a single column. (e.g. Column A:A)
But I only want to concatenate data in every second row (i.e. A1,A3,A5,etc...)
I have another cell (e.g. B1) that contains an inputted number by the user. I'm looking for this number to limit the amount of cells that are concatenated. (i.e. if "B1 = 6" then I want to concatenate "A1,A3,A5,A7,A9,A11" and if "B1 = 2" then concatenate "A1,A3")
I have tried a simple concatenate function and selected the cells that I want, but I'm looking to automate it using a function (not a macro as I find other users don't appreciate macro-enabled workbooks, therefore don't enable them, therefore miss out on the functions they provide).
I have tried concatenate(transpose) but with the same result as above.
I have tried the following formula:
but it only outputted the final value, not all of them, which wasn't desired.
And then from that I've taken various edits of the OFFSET section of the formula and used with the CONCATENATE and TRANSPOSE functions and had no luck.
I feel like I'm fairly close, but just falling short every time. Any help would be greatly appreciated.
But I only want to concatenate data in every second row (i.e. A1,A3,A5,etc...)
I have another cell (e.g. B1) that contains an inputted number by the user. I'm looking for this number to limit the amount of cells that are concatenated. (i.e. if "B1 = 6" then I want to concatenate "A1,A3,A5,A7,A9,A11" and if "B1 = 2" then concatenate "A1,A3")
I have tried a simple concatenate function and selected the cells that I want, but I'm looking to automate it using a function (not a macro as I find other users don't appreciate macro-enabled workbooks, therefore don't enable them, therefore miss out on the functions they provide).
I have tried concatenate(transpose) but with the same result as above.
I have tried the following formula:
Code:
=CONCATENATE((MOD(ROW(OFFSET($A$1,,,1+2*($B$1-1)))-ROW($A$1),2)=0)*OFFSET($A$1,,,1+2*($B$1-1)))
but it only outputted the final value, not all of them, which wasn't desired.
And then from that I've taken various edits of the OFFSET section of the formula and used with the CONCATENATE and TRANSPOSE functions and had no luck.
I feel like I'm fairly close, but just falling short every time. Any help would be greatly appreciated.
Last edited by a moderator: