The rule as per Irctc says :-
Part confirm/RAC/Waiting List:-
If On one PNR there is more than one passenger and one passenger is having confirmed/RAC status and rest is on waiting list or vice-versa, names of all the passengers booked on such PNR will appear in the chart.
A certificate can be obtained from the Ticket Checking staff in the train regarding non-travelling...
more... of wait-listed passengers on such tickets. Refund will be processed through TDR refund only after receiving the original certificate. IRCTC will forward the claim to Concerned Railways along with original certificate to process the refund and money of refund amount will be credited back to same account through which payment was made after receiving the same from the concerned Railways.
If all such passengers do not want to travel before chart preparation, online cancellation can be done as at present. However, after chart preparation, online request can be sent to IRCTC through TDR refund for seeking refund. IRCTC will forward the claim to Concerned Railways to process the refund and money of refund amount will be credited back to same account through which payment was made after receiving the same from the concerned Railways.
click here