In AI 12 (CS2): Pathfinder | Subtract from shape area
The example above shows three objects -- red and black rectangles and text (from bottom to top). Pathfinder subtract was applied with black rectangle and text selected. Bottom example is a copy with black rectangle displaced. Note that text remains live (editable).
There are other ways to do this in Illustrator.
Please state Illustrator version in future posts.