Pipes rename based on sizes

Hello, could anyone advise on how to select pipes based on the part size and how to rename the pipe names and description?
Select Pipe as per Size