I would like you to modify this formula so that it checks cell A11inthecurrentsheettodeterminethenameoftheexpensecategory(inthiscase,"AccountinH3:INDEX(Helpers!H3:H1000,COUNT(Helpers!H3:H1000)))=G1),INDEX('FS P&L'!I1:I1000,Helpers!G3:INDEX(Helpers!G3:G1000, COUNT(Helpers!G3:G1000))))
Notice how once it determined that Accounting was in E1 (really E1:H1), the formula determined that while it was previously looking in D of the Helpers sheet for certain information (the fourth column of A1:D1), it really needed to look in H (the fourth column of E1:H1), and while it was previously looking in C of the Helpers sheet for certain information (the third column of A1:D1), it really needed to look in G (the third column of E1:H1). I would like it to be able to dynamically adjust where it's looking in the Helpers sheet based on where the Expense Category from $A11 in the current sheet is located in the Helpers sheet.
This adjusted formula will now automatically update the columns it references in the "Helpers" sheet based on where the expense category specified in $A11 is found in row 1, ensuring it always pulls the relevant information for that category.