Selling, General and Administrative Expense. Selling, general and administrative expenses increased by 1.2% from $2.5 million in the three months ended September 30, 2023 to $2.6 million in the three months ended September 30, 2024. Selling, general and administrative expenses included a decrease of $24,000 in the value of contingent consideration in the three months ended September 30, 2024 compared to a decrease of $279,000 in the quarter ended September 30, 2023. Decreases of $224,000 in professional fees and $51,000 in outside sales representative commissions were partially offset by increases in payroll related expenses and facility related expenses. Selling, general and administrative expenses included stock-based compensation expense of $250,000 and $276,000 for the three months ended September 30, 2023 and 2024, respectively. Selling, general and administrative expenses decreased by 6.7% from $5.5 million in the six months ended September 30, 2023 to $5.2 million in the six months ended September 30, 2024. Selling general and administrative expenses included decreases of $368,000 in professional fees, $129,000 in outside sales representative commissions and a lesser decrease in payroll related expenses. Selling, general and administrative expenses included a decrease of $109,000 in the value of contingent consideration in the six months ended September 30, 2024 compared to a decrease of $324,000 in the six months ended September 30, 2023. Selling, general and administrative expenses included stock-based compensation expense of $617,000 and $588,000 for the six months ended September 30, 2023 and 2024, respectively.
Gain from Sale and Leaseback Transaction. Gain from sale and leaseback transaction represents the gain from the sale of our headquarters building located at 1213 Elko Drive in Sunnyvale, California. The sale and leaseback transaction was completed on June 6, 2024. For further discussion of the sale and leaseback transaction, see Note - 8 Leases to the Condensed Consolidated Financial statements contained elsewhere in this report.
Interest Income and Other Expense, Net. Interest and other income, net increased by $78,000 from $71,000 in the three months ended September 30, 2023 to $149,000 in the three months ended September 30, 2024. Interest income increased by $31,000 primarily due to higher interest rates received on our cash invested in money market funds. Foreign exchange losses were $60,000 for the three months ended September 30, 2023 compared to $13,000 for the three months ended September 30, 2024. Interest and other income, net increased by $53,000 from $151,000 in the six months ended September 30, 2023 to $204,000 in the six months ended September 30, 2024. Interest income decreased by $25,000 primarily due lower cash balances invested in money market funds in the six months ended September 30, 2024 compared to the six months ended September 30, 2023. Foreign exchange losses were $123,000 for the six months ended September 30, 2023 compared to $45,000 for the six months ended September 30, 2024. The exchange losses in each period were related to our Taiwan branch operations and our operations in Israel.
Provision for Income Taxes. The provision for income taxes decreased from $33,000 in the three months ended September 30, 2023 to $23,000 in the three months ended September 30, 2024 and decreased from $84,000 in the six months ended September 30, 2023 to $80,000 in the six months ended September 30, 2024.
Net Loss. Net loss was $4.1 million in the three months ended September 30, 2023 compared to $5.5 million in the three months ended September 30, 2024 and was $9.2 million in the six months ended September 30, 2023 compared to $4.4 million in the six months ended September 30, 2024. These fluctuations were primarily due to the changes in net revenues, gross profit and operating expenses discussed above.
Liquidity and Capital Resources
As of September 30, 2024, our principal sources of liquidity were cash and cash equivalents of $18.4 million compared to cash and cash equivalents $14.4 million as of March 31, 2024.
Net cash used in operating activities was $7.7 million for the six months ended September 30, 2024 compared to $6.3 million for the six months ended September 30, 2023. The primary uses of cash in the six months ended September 30, 2024 were the net loss of $4.4 million and a decrease of $1.6 million in accrued expenses. The primary sources of cash in the six months ended September 30, 2024 were reductions in accounts receivable, inventories and prepaid expenses and other current assets. Cash from operations in the six months ended September 30, 2024 was adjusted for the non-cash gain on the sale and leaseback transaction in the amount of $5.7 million.
The primary uses of cash in the six months ended September 30, 2023 were the net loss of $9.2 million and a reduction in accrued expenses and other liabilities of $326,000. The reduction in accrued expenses and other