Macro Help Please

Neverland

New Member
Joined
Apr 20, 2010
Messages
8
Hi,

I was wondering if anyone could help me with a macro, haven't been able to find a solution so far.

I have 5 numbers '1', '2', '3', '4', '5' in cells a1-a5.

I want to find all the possible ways you can add 2 of these together.

I want the macro to type the output into column C:D.

So, for this example, the output would be:

1 in c1, 1 in d1
1 in c2, 2 in d2
1 in c3, 3 in d3
1 in c4, 4 in d4
1 in c5, 5 in d5
2 in c6, 1 in d6 and so on until we get to '5' in cX and '5' in dX.

One last thing, when it gets to the 1,000th row, id like to move the output to cells E:F.

Does anyone have any idea how to do this? I would be very grateful.

Thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
First of all, thanks. However, this defines array 1 & 2 as 'B' and 'S'. if there are a number of different characters, how could you go about it? I am going to have around 300 numbers. I may do it manually, but if theres a more efficient way of doing it, i wouldnt mind knowing.
 
Upvote 0

Forum statistics

Threads
1,215,577
Messages
6,125,637
Members
449,242
Latest member
Mari_mariou

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