Please help!

hultgrenrn

New Member
Joined
Jan 3, 2012
Messages
5
I am looking to write a macro which will write information from 7 columns of information into a new spreadsheet. For example, my data is:
Col A Col B Col C Col D Col E Col F Col G
Name1 Measure 1 Length 1 Width 1 Height 1 Diameter 1 Radius1
Name 2 Measure 2 Length 2 Width 2 Height 2 Diameter 2 Radius 2
Width 3 Height 3 Diameter 3
Height 4 Diameter 4
Ht 5
Ht 6




WHat I want this macro to do is write them like such:
Name1 Measure1 Length1 Width1 Height1 Diameter1 Radius1
Name1 Measure1 Length1 Width1 Height1 Diameter1 Radius2
Name1 Measure1 Length1 Width1 Height1 Diameter2 Radius1
Name1 Measure1 Length1 Width1 Height1 Diameter2 Radius2

I need it to move from Right to Left, changing one column at a time. Once Radius' two unique values have been expressed, it moves to diameter and expresses the next value with each of the radius values expressed, and so on, looping and changing the values so that all combinations of the variables are written.
(I hope this request makes sense!)
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,216,524
Messages
6,131,176
Members
449,629
Latest member
Mjereza

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