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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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