CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We hereby consent to the incorporation by reference in this Registration Statement on Form N-1A of T. Rowe Price All-Cap Opportunities Fund, Inc., of our report dated February 16, 2023, relating to the financial statements and financial highlights, which appears in T. Rowe Price All-Cap Opportunities Fund, Inc.’s Annual Report on Form N-CSR for the year ended December 31, 2022. We also consent to the references to us under the headings “Financial Highlights”, “Independent Registered Public Accounting Firm”, and “Fund Service Providers” in such Registration Statement.
/s/PricewaterhouseCoopers
LLP
PricewaterhouseCoopers LLP
Baltimore, Maryland
April 27, 2023