
How to I create the number column as in the table attached, which look into the Admi_num column and check if its the first admission and then put a 1 in the number column and similarly put a 2 ,3 and so on values based on the administration_num column. Thank you
 
     
    