In a first transfer station, a second transfer station, and a third transfer station, a plurality of sample containers are transferred while being stored from a transfer source rack to a transfer destination rack row. In this case, for each of the sample containers to be a transfer target, a specific transfer destination rack is selected from the transfer destination rack row based on a content of processing to be applied in the future to a sample within the sample container.