What is the command in Minecraft to clone only one type of block in a certain area to another?

You can use the filtered parameter.

/clone <x> <y> <z> <x> <y> <z> <x> <y> <z> filtered sandstone