Can you explain what you mean by "current cell" in this case?how do I get the current cell's column name?
Can you explain what you mean by "current cell" in this case?
Are you looking for a vba solution?
Where do you want the result (header name) to go?
I also suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Date | AAPL | AMC |
8/25/2021 | 148.36 | 43.96 |
8/26/2021 | 147.54 | 40.31 |
8/27/2021 | 148.6 | 40.84 |
Mr. Snrub.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Date | AAPL | AMC | ||
2 | 25/08/2021 | $ 148.36 | $ 43.96 | ||
3 | 26/08/2021 | $ 147.54 | $ 40.31 | ||
4 | 27/08/2021 | $ 148.60 | $ 40.84 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B4 | B2 | =INDEX(STOCKHISTORY(Table1[[#Headers],[AAPL]],Table1[@[Date]:[Date]]), 2, 2) |
C2:C4 | C2 | =INDEX(STOCKHISTORY(Table1[[#Headers],[AMC]],Table1[@[Date]:[Date]]), 2, 2) |
No you don't. In cell B2 I typed =INDEX(STOCKHISTORY(With the solution you provided above you still have to manually enter the ticker symbol.