<TABLE> <S> <C>

<PAGE>
<ARTICLE> 9
<LEGEND>
THIS SCHEDULE CONTAINS SUMMARY FINANCIAL INFORMATION EXTRACTED FOR UNION
NATIONAL BANCORP'S FORM 10-Q FOR THE NINE MONTHS ENDED SEPTEMBER 30, 1998 AND IS
QUALIFIED IN IT'S ENTIRETY BY REFERENCE TO SUCH FINANCIAL STATEMENTS.
</LEGEND>
<CIK> 0000919871
<NAME> UNION NATIONAL BANCORP
       
<S>                             <C>
<PERIOD-TYPE>                   9-MOS
<FISCAL-YEAR-END>                          DEC-31-1998
<PERIOD-START>                             JAN-01-1998
<PERIOD-END>                               SEP-30-1998
<CASH>                                       8,194,097
<INT-BEARING-DEPOSITS>                          21,005
<FED-FUNDS-SOLD>                            17,212,898
<TRADING-ASSETS>                                     0
<INVESTMENTS-HELD-FOR-SALE>                 63,802,018
<INVESTMENTS-CARRYING>                      21,890,789
<INVESTMENTS-MARKET>                                 0
<LOANS>                                    162,121,655
<ALLOWANCE>                                  1,772,536
<TOTAL-ASSETS>                             279,220,788
<DEPOSITS>                                 213,519,610
<SHORT-TERM>                                22,555,966
<LIABILITIES-OTHER>                          1,331,039
<LONG-TERM>                                 20,000,000
<PREFERRED-MANDATORY>                                0
<PREFERRED>                                          0
<COMMON>                                        18,495
<OTHER-SE>                                  21,795,678
<TOTAL-LIABILITIES-AND-EQUITY>             279,220,788
<INTEREST-LOAN>                             10,935,310
<INTEREST-INVEST>                            3,774,789
<INTEREST-OTHER>                               528,616
<INTEREST-TOTAL>                            15,238,715
<INTEREST-DEPOSIT>                           6,139,321
<INTEREST-EXPENSE>                           7,309,304
<INTEREST-INCOME-NET>                        7,929,411
<LOAN-LOSSES>                                  186,000
<SECURITIES-GAINS>                              21,281
<EXPENSE-OTHER>                              6,139,567
<INCOME-PRETAX>                              2,690,746
<INCOME-PRE-EXTRAORDINARY>                           0
<EXTRAORDINARY>                                      0
<CHANGES>                                            0
<NET-INCOME>                                 1,947,471
<EPS-PRIMARY>                                     1.05
<EPS-DILUTED>                                     1.05
<YIELD-ACTUAL>                                     769
<LOANS-NON>                                    265,958
<LOANS-PAST>                                 2,535,829
<LOANS-TROUBLED>                                     0
<LOANS-PROBLEM>                              1,078,436
<ALLOWANCE-OPEN>                             1,793,112
<CHARGE-OFFS>                                (307,920)
<RECOVERIES>                                   101,344
<ALLOWANCE-CLOSE>                            2,388,376
<ALLOWANCE-DOMESTIC>                         2,388,376
<ALLOWANCE-FOREIGN>                                  0
<ALLOWANCE-UNALLOCATED>                              0
        

</TABLE>