VBA Macro code for =Concat(Transpose) formula

Browneh89

Board Regular
Joined
Mar 8, 2019
Messages
55
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am having trouble recording a macro that separates a list of value in one cell separated by a comma.

the formula I use is =CONCAT(TRANSPOSE(ARRAY)&",") I use Shift and down arrow to select the array and F9 to convert that into separate values however the macro recorder seems not to understand these actions.

Can anyone please help me with this, would be much appreciated?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I suppose CONCAT will not return a comma separated list of values.
 
Upvote 0
I suppose CONCAT will not return a comma separated list of values.
Well This formula does work, you need to press F9 within the Array (B1:B100) and it breaks it down into the list of values but these actions are not recorded within the macro.
 
Upvote 0
What exactly are you trying to do?
 
Upvote 0
What exactly are you trying to do?
What exactly are you trying to do?
I am attempting to make a Macro which will do the following automatically,

1609184004697.png


When I press F9 within the Array (A2:A8) I get the result in C4.

The list can vary in length, I used shift and down arrow to select the list and F9 when I attempted to record the macro however the recorder does not detect these actions.
 
Upvote 0
I understand what you are doing the question is why? What do you want to do with the comma separated list?
 
Upvote 0
I understand what you are doing the question is why? What do you want to do with the comma separated list?
Oh just to copy and paste it into a separate system. the comma allows you to select the values in a group where as otherwise you would need to select them individually which is time consuming.
 
Upvote 0
OK, I don't understand why you need to use F9, as the formula will give you the comma separated list, but will you always be looking at A2 down to the last used row, or could the start point be anywhere?
 
Upvote 0
OK, I don't understand why you need to use F9, as the formula will give you the comma separated list, but will you always be looking at A2 down to the last used row, or could the start point be anywhere?
Yeah it will always be from A2 and below.

That's strange because without the F9 I don't get the desired result I just get the first value and a comma (Shown in the picture above in C2).
 
Upvote 0
Just realised you profile is showing that you are using 2013, is that correct?
Just that 2013 doesn't have the Concat function.
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top