You can use either assuming you have the concentration and volume to calculate the number of moles (work through the calculation with both to satisfy yourself that you get the same answer). If the question tells you that one of the reagents was added in excess, then obviously don't use that number of moles.