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!)
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!)