I am trying to extract data from a cell(s) that contains surname, first name, middle name. e.g
bloggs, john charles
I am just after the surname e.g. bloggs
The following formula works well for my data.
=TRIM(MID(SUBSTITUTE(SUBSTITUTE($H12020,",","")," ",REPT(" ",100)),1+100*COLUMNS($H:H)-100,100))
However, I have now noticed some of my data has been entered as;
de smith, LH
The above formula is not working for this type of entered data and I now get an "N/A"
I have tried to manipulate the formula without success. Therefore, can anyone assist in my issue.
I thank you in anticipation.
bloggs, john charles
I am just after the surname e.g. bloggs
The following formula works well for my data.
=TRIM(MID(SUBSTITUTE(SUBSTITUTE($H12020,",","")," ",REPT(" ",100)),1+100*COLUMNS($H:H)-100,100))
However, I have now noticed some of my data has been entered as;
de smith, LH
The above formula is not working for this type of entered data and I now get an "N/A"
I have tried to manipulate the formula without success. Therefore, can anyone assist in my issue.
I thank you in anticipation.