Hi,
I have an excel file with 1500 columns and each column has 4500 rows of data. Here is an example of what my spreadsheet looks like:
https://imgur.com/a/n9mZ7
Here is what i'm looking to do.
1. I want excel to look at every 4th column starting from B. So the first column excel would look at is column E.
2. From this 4th column, I want excel to retrieve the Column header (in the first row of that column).
3. Then, i want excel to look for the first occurrence of the word "Buy" in the column.
4. If a buy cell is found in the column, then retrieve the value of the column that is 3 columns to the left of the "Buy" cell.
5. In addition to that, I want the the corresponding value from that row but in Column A (i have the date there).
6. Then repeat the same thing for the word "Sell". Making sure that the "Sell" that is taken into consideration is the first "Sell" that has occurred in a row after "Buy". (not before the "Buy").
Essentially what I want to do is, get all the buy and sell points for given stocks so I could analyze to see if the signal is profitable or not.
Wondering if someone can help me figure this out?
Thanks
I have an excel file with 1500 columns and each column has 4500 rows of data. Here is an example of what my spreadsheet looks like:
https://imgur.com/a/n9mZ7
Here is what i'm looking to do.
1. I want excel to look at every 4th column starting from B. So the first column excel would look at is column E.
2. From this 4th column, I want excel to retrieve the Column header (in the first row of that column).
3. Then, i want excel to look for the first occurrence of the word "Buy" in the column.
4. If a buy cell is found in the column, then retrieve the value of the column that is 3 columns to the left of the "Buy" cell.
5. In addition to that, I want the the corresponding value from that row but in Column A (i have the date there).
6. Then repeat the same thing for the word "Sell". Making sure that the "Sell" that is taken into consideration is the first "Sell" that has occurred in a row after "Buy". (not before the "Buy").
Essentially what I want to do is, get all the buy and sell points for given stocks so I could analyze to see if the signal is profitable or not.
Wondering if someone can help me figure this out?
Thanks
Last edited: