v3.26.1
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Millions
9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Cash flows from operating activities:    
Net earnings $ 1,656 $ 1,734
Adjustments to reconcile net earnings to net cash provided by operating activities:    
Depreciation, amortization and impairment 722 708
Stock-based compensation expense 389 432
Restructuring and other charges 539 302
Deferred taxes on earnings (110) (67)
Other, net 126 103
Changes in operating assets and liabilities, net of divestitures:    
Accounts receivable (1,531) 54
Inventory (1,902) (671)
Accounts payable 3,323 94
Net investment in leases from integrated financing (69) (71)
Taxes on earnings (184) (360)
Restructuring and other (256) (238)
Other assets and liabilities 341 53
Net cash provided by operating activities 3,044 2,073
Cash flows from investing activities:    
Investment in property, plant, equipment and purchased intangibles (590) (700)
Purchases of available-for-sale securities and other investments (21) (23)
Maturities and sales of available-for-sale securities and other investments 32 69
Collateral returned (posted) for derivative instruments 98 (343)
Payments made in connection with business acquisitions, net of cash acquired (10) (116)
Proceeds from business divestitures, net 26 0
Net cash used in investing activities (465) (1,113)
Cash flows from financing activities:    
Proceeds from debt, net of issuance costs 291 1,248
Payment of debt (770) (1,312)
Stock-based award activities and others (94) (113)
Repurchase of common stock (725) (350)
Cash dividends paid (825) (818)
Settlement of cash flow hedges 0 6
Net cash used in financing activities (2,123) (1,339)
Increase (decrease) in cash, cash equivalents and restricted cash 456 (379)
Cash, cash equivalents and restricted cash at beginning of period [1] 3,713 3,253
Cash, cash equivalents and restricted cash at end of period $ 4,169 $ 2,874
[1] Includes cash held for sale of $8 million recorded within Other current assets as of October 31, 2025