progress on ADI specific price optimization efforts and expansion of private brands all contributed to margin expansion in the second quarter. ADI continues to invest in digital tools and systems to improve selling efficiency. This includes implementing a global artificial intelligence pricing system in 14 countries, which brings a consistent set of tools with business intelligence dashboards to drive accountability. Operating profit of $86 million for second quarter 2022 was up 30% from $66 million in the second quarter 2021, exceeding 9% of revenue.
At the beginning of the third quarter, ADI acquired Electronic Custom Distributors (ECD), a regional distributor of residential audio, video, automation, security, wire, and telecommunication products. With four branch locations and a 30,000 sq. ft. distribution center, the acquisition adds to ADI’s growing capabilities in the audio visual market. ECD is the fifth acquisition for ADI since 2020.
Second Quarter 2022 Financial Performance
Consolidated revenue of $1.69 billion in the second quarter 2022 grew 14% compared with the prior year of $1.48 billion. Gross profit margin for the second quarter 2022 was 27.7%, up 160 basis points compared to 26.1% in the prior year. Resideo’s operating profit of $186 million in the second quarter 2022 compared to a prior year operating profit of $121 million. Total Corporate costs were $54 million, down from $74 million in the prior year primarily due to the net costs associated with the class action legal settlement in the second quarter 2021. Net income for the second quarter 2022 was $94 million, or $0.63 per diluted common share, compared with $58 million, or $0.39 per diluted common share, in the prior year.
Cash Flow and Liquidity
Second quarter 2022 net cash provided by operating activities of $35 million compared to cash provided by operating activities of $94 million in the prior year comparable period. The reduction in cash generation was primarily due to investments made in working capital to support growth and a strategic decision to increase inventory levels to help mitigate supply chain constraints. At July 2, 2022, Resideo had cash and cash equivalents and restricted cash of $255 million and total outstanding debt of $1.4 billion.
Outlook
Based on first half results and the outlook for the remainder of 2022, the company expects full year 2022 revenue to be in the range of $6.45 billion to $6.65 billion, gross profit margin in the range of 27.5% to 28.5% and operating profit in the range of $690 million to $720 million.