Need to copy data from multiple rows to a single column in a specific order

bradshk

New Member
Joined
Mar 15, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Web
Hi everyone, Im looking for some VBA help to copy data from multiple columns to a single column in a specific order for a Pool Tournament spreadsheet Im working on. In the example Pic, I have pairs of names in Column M&N (generated by a Macro). Player 59 and Player 16 are a pair for example. I want to copy the pairs from M5&N5 to column C in C5&C6 and so on down the list, appending all the pairs to the end of the values already in Column C. The number of pairs in Columns M&N will vary as players drop out . I need the data in Column C to be values and not a formula. The idea is the pairs in Column C are the previous pairs to not repeat. Im limited to this format by the Random Pairs VBA script that im currently using. Any help would be appreciated.

Tks
 

Attachments

  • 2023-03-15_11-56-04.jpg
    2023-03-15_11-56-04.jpg
    65 KB · Views: 8

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hello, You can use something like this:
VBA Code:
=TOCOL(M2:N100)

P.S Failed to realize you were looking for a VBA Code.
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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