I think you'll want to use an IF(CONTAINS(....) function because I'm assuming the parent tasks aren't named on R1, R2, but that's part of the name? Something like this:IF(CONTAINS({parent}.{name},"R1"),"R1")...etc. That may not be exactly right because I don't have these naming conventions and can't...