Hi there,
I need to pull off rows of numbers, one row at a time, into one unique file name at a time. Each file would have the same couple-line header. All this is in excel starting in column A. Each value is in a cell. They're all real values. Each uniqueName file would be stored in the current folder. Column B would be ignorSo (sorry for the messy format paste):
uniqueName1 ignore -834.6 112.9 156.7 2280.7 376.0 1825.6
uniqueName2 ignore 903.9 -13.1 94.9 -280.9 -358.0 1416.1
uniqueName3 ignore 99.3 -823.8 307.6 618.4 2504.2 2468.6
uniqueName4 ignore 17.8 881.1 96.2 1856.6 -2654.3 -22.7
uniqueName5 ignore 411.0 476.0 -284.2 843.5 502.2 -965.9
uniqueName6 ignore 191.3 707.8 597.2 -446.0 -667.2 2316.2
uniqueName7 ignore -462.0 306.5 57.0 -4823.3 -2045.2 15.4
uniqueName8 ignore -169.3 -659.8 241.5 4385.2 -1286.1 2360.4
uniqueName9 ignore -478.9 -390.4 56.5 856.6 -7230.6 1764.7
uniqueName10 ignore 203.5 455.2 134.9 -2254.1 5008.6 1908.2
uniqueName11 ignore 822.8 41.5 80.2 -155.4 -66.8 -2415.9
uniqueName12 ignore 673.8 -274.8 399.5 -36.2 -827.9 3535.6
uniqueName13 ignore -14.4 -320.0 34.5 162.5 853.0 -372.3
uniqueName14 ignore 903.9 -13.1 94.9 -280.9 -358.0 1416.1
uniqueName15 ignore 595.9 -207.1 32.6 -0.9 0.4 -20.8
uniqueName16 ignore -478.9 -390.4 56.5 856.6 -7230.6 1764.7
So uniqueName1.txt would look like:
General Title Line
time 251 252 253 254 255 256
T FxR0 FyR0 FzR0 MxR0 MyR0 MzR0
[sec] [kN] [kN] [kN] [kNm] [kNm] [kNm]
1 -834.6 112.9 156.7 2280.7 376.0 1825.6
So there's a 1 prefixing the line where that is the file number. I think the best way to for-next it is to highlight the filenames in column A and for the selection just use a loop counter to store each line to each file and the loop counter would be that number prefixing each line.
Let me know if any info is missing, and thanks a lot!
I need to pull off rows of numbers, one row at a time, into one unique file name at a time. Each file would have the same couple-line header. All this is in excel starting in column A. Each value is in a cell. They're all real values. Each uniqueName file would be stored in the current folder. Column B would be ignorSo (sorry for the messy format paste):
uniqueName1 ignore -834.6 112.9 156.7 2280.7 376.0 1825.6
uniqueName2 ignore 903.9 -13.1 94.9 -280.9 -358.0 1416.1
uniqueName3 ignore 99.3 -823.8 307.6 618.4 2504.2 2468.6
uniqueName4 ignore 17.8 881.1 96.2 1856.6 -2654.3 -22.7
uniqueName5 ignore 411.0 476.0 -284.2 843.5 502.2 -965.9
uniqueName6 ignore 191.3 707.8 597.2 -446.0 -667.2 2316.2
uniqueName7 ignore -462.0 306.5 57.0 -4823.3 -2045.2 15.4
uniqueName8 ignore -169.3 -659.8 241.5 4385.2 -1286.1 2360.4
uniqueName9 ignore -478.9 -390.4 56.5 856.6 -7230.6 1764.7
uniqueName10 ignore 203.5 455.2 134.9 -2254.1 5008.6 1908.2
uniqueName11 ignore 822.8 41.5 80.2 -155.4 -66.8 -2415.9
uniqueName12 ignore 673.8 -274.8 399.5 -36.2 -827.9 3535.6
uniqueName13 ignore -14.4 -320.0 34.5 162.5 853.0 -372.3
uniqueName14 ignore 903.9 -13.1 94.9 -280.9 -358.0 1416.1
uniqueName15 ignore 595.9 -207.1 32.6 -0.9 0.4 -20.8
uniqueName16 ignore -478.9 -390.4 56.5 856.6 -7230.6 1764.7
So uniqueName1.txt would look like:
General Title Line
time 251 252 253 254 255 256
T FxR0 FyR0 FzR0 MxR0 MyR0 MzR0
[sec] [kN] [kN] [kN] [kNm] [kNm] [kNm]
1 -834.6 112.9 156.7 2280.7 376.0 1825.6
So there's a 1 prefixing the line where that is the file number. I think the best way to for-next it is to highlight the filenames in column A and for the selection just use a loop counter to store each line to each file and the loop counter would be that number prefixing each line.
Let me know if any info is missing, and thanks a lot!
Last edited: