EX-23.4 5 d51762dex234.htm EX-23.4 EX-23.4

Exhibit 23.4

Consent of Independent Registered Public Accounting Firm

We consent to the reference to our firm under the caption “Experts” in the Registration Statement (Form S-4) and related Prospectus of United Bankshares, Inc. for the registration of 7,696,236 shares of its common stock and to the incorporation by reference therein of our reports dated March 1, 2021, with respect to the consolidated financial statements of United Bankshares, Inc., and the effectiveness of internal control over financial reporting of United Bankshares, Inc., included in its Annual Report (Form 10-K) for the year ended December 31, 2020, filed with the Securities and Exchange Commission.

 

/s/ Ernst & Young LLP

Charleston, West Virginia

August 20, 2021