I have the following interesting problem which I would like to solve within Excel without going to VBA or human intervention.
I have a data table (DT) with one variable but many outputs in each row.
The DT is very long in terms of length of columns (thousands)
each row in the DT refers to one case in a model that has many entries.
The variable used are integers 1, 2, 3 .... 1 for row 1, 2 for row 2 and so on.
The variable refers to a cell $G$8 in which the values 1, 2, 3 ... are entered as the DT is invoked.
The model uses the entry in $G$8 using VLOOKUP, to pick the row in the DT from which to enter inputs to the model. The model returns into the DT the many outputs it generated.
A new row always refers to earlier rows to pick the inputs for the model. Row 1 gets special treatment as it does not have earlier rows.
I have two questions:
1. How can I debug the sheet so that I see what entered the model and what came out from the model? I tried to have separate input columns and output columns in the DT, but they produce the same values (they should be different)
2. Is this a scheme that works in general? i.e. can earlier rows in a DT be used as inputs to later rows? If not why not and is there an alternative way?
I have a data table (DT) with one variable but many outputs in each row.
The DT is very long in terms of length of columns (thousands)
each row in the DT refers to one case in a model that has many entries.
The variable used are integers 1, 2, 3 .... 1 for row 1, 2 for row 2 and so on.
The variable refers to a cell $G$8 in which the values 1, 2, 3 ... are entered as the DT is invoked.
The model uses the entry in $G$8 using VLOOKUP, to pick the row in the DT from which to enter inputs to the model. The model returns into the DT the many outputs it generated.
A new row always refers to earlier rows to pick the inputs for the model. Row 1 gets special treatment as it does not have earlier rows.
I have two questions:
1. How can I debug the sheet so that I see what entered the model and what came out from the model? I tried to have separate input columns and output columns in the DT, but they produce the same values (they should be different)
2. Is this a scheme that works in general? i.e. can earlier rows in a DT be used as inputs to later rows? If not why not and is there an alternative way?