1 EXHIBIT 23.1 CONSENT OF ERNST & YOUNG LLP, INDEPENDENT AUDITORS Regarding: 1) Registration Statement on Form S-8 relating to the F.N.B. Corporation Voluntary Dividend Reinvestment and Stock Purchase Plan (File #333-00943). 2) Registration Statement on Form S-8 relating to F.N.B. Corporation 1990 Stock Option Plan (File #33-78114). 3) Registration Statement on Form S-8 relating to F.N.B. Corporation Restricted Stock Bonus Plan (File #33-78134). 4) Registration Statement on Form S-8 relating to F.N.B. Corporation 1996 Stock Option Plan (File #333-03489). 5) Registration Statement on Form S-8 relating to F.N.B. Corporation Restricted Stock and Incentive Bonus Plan (File #333-03493). 6) Registration Statement on Form S-8 relating to F.N.B. Corporation Directors Compensation Plan (File #333-03495). 7) Registration Statement on Form S-8 relating to F.N.B. Corporation 401(k) Plan (File #333-03503). 8) Post-Effective Amendment No.1 on Form S-8 to Registration Statement on Form S-4 (File #333-01997). 9) Post-Effective Amendment No.1 on Form S-8 to Registration Statement on Form S-4 (File #333-22909). 10) Registration Statement on Form S-3 relating to the F.N.B. Corporation Subordinated Notes and Daily Cash Accounts (File #333-31909). 11) Registration Statement on Form S-3 relating to the Voluntary Dividend Reinvestment and Stock Purchase Plan (File #333-35637). 12) Registration Statement on Form S-8 relating to stock options assumed in the acquisition of Mercantile Bank of Southwest Florida (File #333-42333). We consent to the incorporation by reference in the above listed Registration Statements of our report dated February 19, 1998, with respect to the consolidated financial statements of F.N.B. Corporation and subsidiaries incorporated by reference in this Annual Report (Form 10-K) for the year ended December 31, 1997. /s/ ERNST & YOUNG LLP Pittsburgh, Pennsylvania March 13, 1998