![]() |
Variable Incrementing
Not sure that I fully understand the question... Is it not just a case of setting up simple = formulae on your out sheet at the point of your choosing? -- mrice Research Scientist with many years of spreadsheet development experience ------------------------------------------------------------------------ mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931 View this thread: http://www.excelforum.com/showthread...hreadid=540019 |
Variable Incrementing
True for short output sheets. One just types each row.
If the out :In sheet's rows are verticle increments are 1:1 the link of row 1 can be cut and pasted to many (not all in this case do to headers) In summary In:rout row increments of 1:1 are easy. I have 2000+ lines of single spaced input data. It has to to be linked to the 3000+ line Out sheet . Each 2 row set is spaced 1:2 or 1:3 or 1:5 1:2 up to 1:6 with no pattern. (See snippet below) One would have to type ~1000 rows of links delineating which NON 1:1 rows to link. Any typing error can propagate to all following rows The dots ..... uniquely show the lines needing data. Something like If Trim ( Out:A1,5) = "....." get the correct In row. By getting the # of rows between the 2nd row ...... and the NEXT first ...... the variable row increment can be determined. I'm not sufficiently fluent in VBA to write this. There may be better approaches to this. The data in IN A1:E1 maps to Out C1:G1 Thanks in advance, John -- single row spaced In data that has to be linked to the to the 3000 lines "mrice" wrote: Not sure that I fully understand the question... Is it not just a case of setting up simple = formulae on your out sheet at the point of your choosing? -- mrice Research Scientist with many years of spreadsheet development experience ------------------------------------------------------------------------ mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931 View this thread: http://www.excelforum.com/showthread...hreadid=540019 |
Variable Incrementing
This macro should help Sub Populate() Sheets("OUT").Select Counter = 0 For N = 1 To Cells(65536, 1).End(xlUp).Row If Cells(N, 1) = "……." Then Counter = Counter + 1 Cells(N, 2) = Sheets("IN").Cells(Counter, 1) End If Next N End Sub I've assumed that the data in the IN sheet is in column A and also for the OUT sheet. -- mrice Research Scientist with many years of spreadsheet development experience ------------------------------------------------------------------------ mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931 View this thread: http://www.excelforum.com/showthread...hreadid=540019 |
All times are GMT +1. The time now is 02:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com