For an example of a sale of a membership interest in an S corporation with multiple lines of business requiring the allocation of goodwill, see Proposed Regulation Section 1.1411-7(e), Example 8.
FORBES: Mailbag: Is Gain Attributable To The Sale Of Goodwill Included In Net Investment Income?