The chemical reactions and pathways involving sesquiterpenoid compounds, terpenoids with three isoprene units.