Quick Answer
If 24 oz means US fluid ounces, it equals approximately 3 cups.
If 24 oz means ounces by weight, the answer depends on the ingredient. For example, 24 ounces by weight is about 5.44 cups of all-purpose flour, 3.4 cups of granulated sugar, and 3 cups of butter.
The first step is always to confirm whether the recipe means fluid ounces or weight ounces.