Populating cell value with matching criteria into a result column

Copper Contributor

I have occurrences of the same person but with a different value in a column(condition column in example below) and I'd like to show all the results for the individual people on one row with the different values in cells within the same row.

The first three columns is the data I have to work with and I want to show the conditions that the same person has across from their name in one row but in different columns.

ConditionNameDOBDiabetesAsthmaIHDA FibCOPD 
DiabetesJoe Bloggs01/01/1981Diabetes     
AsthmaJoe Bloggs01/01/1981 Asthma    
IHDJoe Bloggs01/01/1981  IHD   
A FibJoe Bloggs01/01/1981   A Fib  
COPDJoe Bloggs01/01/1981    COPD 
DiabetesJohn Smith19/12/1965Diabetes     
COPDJohn Smith19/12/1965    COPD 
IHDMary James11/07/1978  IHD   
A FibMary James11/07/1978   A Fib  
COPDMary James11/07/1978    COPD 
IHDPolly Kettle14/02/1976  IHD   
DiabetesPolly Kettle14/02/1976Diabetes     
A FibPolly Kettle14/02/1976   A Fib  
AsthmaLaine Street29/11/1970 Asthma    
DiabetesLaine Street29/11/1970Diabetes     
3 Replies

Hi @aod2020 

 

Assuming you run a recent version of Excel on Windows, with Get & Transform aka Power Query

 

Screenshot.png

 

Sample attached

Thanks a million Liz, I was lost in never ending formula and data sorting. Your solution looks like just what I need. I will try that out.
Welcome @aod2020. Just be aware this is a mock-up that will fail if you have duplicates, i.e. John Smith listed 2, 3... times with the same Conditions