Noninterest income during the second quarter of 2023 was comprised of $7.1 million in investment advisory fees from Wealth Management, $1.9 million in trust administrative and consulting fees, $1.8 million in loan and servicing fees, $0.5 million of deposit account fees and other income of $0.8 million.
Noninterest Expense
Noninterest expense was $272.8 million in the second quarter of 2023, which included $215.3 million in goodwill impairment charges. Excluding the goodwill impairment charge, noninterest expense was $57.5 million in the quarter, compared to $59.3 million for the prior quarter and $48.8 million for the second quarter of 2022. Goodwill is tested for impairment annually during the fourth quarter unless a triggering event occurs which requires an updated assessment. Given the drastic change in macroeconomic conditions and Fed rate hikes and their resultant effect on our market valuation, goodwill was evaluated for impairment as of June 30, 2023. As a result, the entire amount of our goodwill was determined to be impaired and written-off during the quarter. The goodwill impairment charge does not have an impact on our regulatory capital ratios, cash flows, or liquidity position.
Compensation and benefits were $21.0 million in the second quarter of 2023, compared to $25.3 million in the prior quarter and $27.6 million in the second quarter of 2022. The decrease in compensation and benefits is the result of efforts to maximize efficiency and optimize the workforce in the face of slowing loan growth and higher interest expense. Average FTEs totaled 615 in the second quarter of 2023, compared to 672 in the prior quarter and 727 in the fourth quarter of 2022. Current and prior quarter compensation and benefits expense includes approximately $280 thousand and $468 thousand, respectively in severance costs associated with reductions in force.
Customer service costs were $19.0 million in the second quarter of 2023, compared to $16.7 million in the prior quarter and $4.6 million in the second quarter of 2022. The increase in customer service costs was due to an increase in depository account balances receiving earnings credit on such accounts as well as an increase in the rates paid on such accounts.
Our efficiency ratio for the second quarter of 2023 was 92.5%, compared to 84.5% for the prior quarter, and 50.7% for the second quarter of 2022. The second quarter increase in the efficiency ratio is largely attributable to the aforementioned reduction in net interest income during the quarter, as the ratio is a measure of noninterest expense to revenue (net interest income plus noninterest income) on an adjusted basis.
Income Tax Expense
The year-to-date effective income tax rate as of June 30, 2023 is (0.94%), compared to 20.6% and 28.2% as of March 31, 2023, and June 30, 2022, respectively. The total year-to-date tax expense as of June 30, 2023 is $1.9 million compared to $2.2 million and $25.2 million as of March 31, 2023, and June 30, 2022, respectively. The decrease in the effective tax rate was predominately due to the goodwill impairment charge of $215.3 million, which is not deductible for tax purposes. Excluding the goodwill impairment, the year-to-date effective tax rate as of June 30, 2023 is 14.2%.
Asset Quality
Total nonperforming assets were $15.8 million as of June 30, 2023, compared to $17.4 million and $17.3 million as of March 31, 2023 and June 30, 2022, respectively. Our ratio of nonperforming assets to total assets was 0.12% as of June 30 2023, compared to 0.13% and 0.15% as of March 31, 2023 and June 30, 2022, respectively. Total delinquent loans were $5.2 million or 0.16% of total loans as of June 30, 2023, compared to $37.1 million or 0.45% of total loans as of March 31, 2023, and $8.7 million or 0.22% of total loans as of June 30, 2022.