Hello All,
I have a spreadsheet where the cells in a row contain either a number or text and a number. I use the following formula to sum the total of any cell which contains both text and a number:
=SUM(IF(b26:ac26<>"",IF(NOT(ISNUMBER(--LEFT(b26:ac26,1))),--MID(b26:ac26,2,256))))
Can anyone please advise on how I can change this so that I can get it to sum only the cells that contain a specific text, e.g. anything that contains 'M' so just the cells that say M15, M20, M21, etc.
Hope someboday can help - it would be very much appreciated.
Thank you
I have a spreadsheet where the cells in a row contain either a number or text and a number. I use the following formula to sum the total of any cell which contains both text and a number:
=SUM(IF(b26:ac26<>"",IF(NOT(ISNUMBER(--LEFT(b26:ac26,1))),--MID(b26:ac26,2,256))))
Can anyone please advise on how I can change this so that I can get it to sum only the cells that contain a specific text, e.g. anything that contains 'M' so just the cells that say M15, M20, M21, etc.
Hope someboday can help - it would be very much appreciated.
Thank you