CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We consent to the references to our firm under the captions "Financial Highlights" in the Prospectus and "Counsel and Independent Registered Public Accounting Firm" in the Statement of Additional Information, each dated September 30, 2026, and each included in this Post-Effective Amendment No. 258 to the Registration Statement (Form N-1A, File No. 33-43846) of BNY Mellon Investment Funds III (the “Registration Statement”).
We also consent to the incorporation by reference of our report dated July 22, 2026, with respect to the financial statements and financial highlights of BNY Mellon Equity Income Fund (one of the funds comprising BNY Mellon Investment Funds III) included in the Annual Report (Form N-CSR) for the year ended May 31, 2026, into this Registration Statement, filed with the Securities and Exchange Commission.
/s/ ERNST & YOUNG LLP
New York, New York
September 24, 2026