I want to generate all possible combinations of names. for example if i input a name "Jean Sam Paul" i want all possible combination, that is

Jean Sam Paul
Jean
Sam
Paul
Jean Paul
Jean Sam
Sam Paul

Is there a way for excel to generate a list of all possible combination..Thank you