EX-23 5 ex23.txt CONSENT OF EXTERNAL AUDITORS Exhibit 23 INDEPENDENT AUDITOR'S CONSENT We consent to the incorporation by reference in Registration Statement No. 333-79979 of National Bankshares, Inc. on Form S-8 of our report, dated January 23, 2003, relating to the consolidated balance sheets of National Bankshares, Inc and subsidiaries as of December 31, 2002 and 2001, and the related consolidated statements of income, changes in stockholders' equity and cash flows for the years ended December 31, 2002, 2001 and 2000 appearing in this Annual Report on Form 10-K of National Bankshares, Inc. for the year ended December 31, 2002. /s/ Yount, Hyde & Barbour, P.C. Winchester, Virginia March 31, 2003