I have this issue on Google spreadsheets but I know spreadsheets and Excel are similar.
I generated this spreadsheet with pseudo-data but the problem remains the same.
I have a column where the rows have a string of words such as "Apple/5" where the category I want is before the "/". Each number that proceeds the "/" represents an instance of that category. So "Orange/2-3" represents 2 oranges and "Orange/6,7,8" represents 3 oranges so it would calculate to 5 oranges.
Is this even possible with Excel/google spreadsheet?