I am using below formula which is working very fine. But it is just loading the single column Data which is Column W3:W500 I want to get the other columns Data as well that are X, Y, Z and AA, AB.
I tried by expanding this range W3:W500 to W3:AA500 but nothing worked. Your help will be appreciated.
=ArrayFormula(IF(B3:B501="",,vlookup(trim(B3:B501&" "&C3:C501&" "&text(F3:F501, "mm/dd/yyyy")&" "&G3:G501), {transpose(QUERY(TRANSPOSE(query(IMPORTRANGE("Sheetname","Sheet1!A3:W500"), "Select Col2, Col3, Col6, Col7")),,9^9)), IMPORTRANGE("Sheetname","Sheet1!W3:AA500")} ,2,0)))