Hi all,I have two sheets one is called Data and the other is Report (see below tables).
I have three of each reports i.e. 3 for TMT, 3 for hybrids, 3 for autos and so on. They are all WTD, QTD and YTD for each report.
I need to pull the data into the report tab using a formula. Vlookup works for cell B2 and C2 in the report tab but when I am trying to pull in the AT3 QTD (cell E3) from the data tab into cell D2 of the report tab, the vlookup will not work as it will return the first result i.e. lookup value in the vlookup will be 'TMT'.
Given I have a number of rows 70+ because of different reports (column A) I need a dynamic formula please which will pull in QTD A3 (cell E3) value and the YTD AT4 (cell F4) values from the Data tab into the Report tab (cells D2 and E2).
I did try using the match and index together but it did not work due to my limitations.
Thanks
DATA tab
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Report[/TD]
[TD]Period[/TD]
[TD]AT1[/TD]
[TD]AT2[/TD]
[TD]AT3[/TD]
[TD]AT4[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]TMT[/TD]
[TD]WTD[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]100[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]TMT[/TD]
[TD]QTD[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]300[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]TMT[/TD]
[TD]YTD[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]500[/TD]
[TD]600[/TD]
[/TR]
</tbody>[/TABLE]
REPORT tab
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Report[/TD]
[TD]WTD AT1[/TD]
[TD]WTD A2[/TD]
[TD]QTD A3[/TD]
[TD]YTD AT4[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]TMT[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]300[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have three of each reports i.e. 3 for TMT, 3 for hybrids, 3 for autos and so on. They are all WTD, QTD and YTD for each report.
I need to pull the data into the report tab using a formula. Vlookup works for cell B2 and C2 in the report tab but when I am trying to pull in the AT3 QTD (cell E3) from the data tab into cell D2 of the report tab, the vlookup will not work as it will return the first result i.e. lookup value in the vlookup will be 'TMT'.
Given I have a number of rows 70+ because of different reports (column A) I need a dynamic formula please which will pull in QTD A3 (cell E3) value and the YTD AT4 (cell F4) values from the Data tab into the Report tab (cells D2 and E2).
I did try using the match and index together but it did not work due to my limitations.
Thanks
DATA tab
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Report[/TD]
[TD]Period[/TD]
[TD]AT1[/TD]
[TD]AT2[/TD]
[TD]AT3[/TD]
[TD]AT4[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]TMT[/TD]
[TD]WTD[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]100[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]TMT[/TD]
[TD]QTD[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]300[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]TMT[/TD]
[TD]YTD[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]500[/TD]
[TD]600[/TD]
[/TR]
</tbody>[/TABLE]
REPORT tab
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Report[/TD]
[TD]WTD AT1[/TD]
[TD]WTD A2[/TD]
[TD]QTD A3[/TD]
[TD]YTD AT4[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]TMT[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]300[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]