I want to query data from sheet 2, so when I enter "1" which means semester 1 in cell b2, sheet 1 should give me the result for class 1 semester 1. Moreover, so when I enter "1" in cell b8, sheet 1 should give me the result for class 2 semester 1. Lastly, I want to copy the results of class 1 semester 1 into a new sheet, but when I do that, the tables will be pasted just as text or values and the link to the query will break.
Solved by Z. S. in 26 mins