A screenshot of my sample data is attached.
This is my formula that counts the number in the cell if it's preceeded with a 'H'.
=SUMPRODUCT((LEFT(B5:G5,1)="H")*(RIGHT(B5:G5,LEN(B5:G5)-1)))
The only problem is that it returns #VALUE if one of the cells in the range B5:G5 is blank.
The range is much larger on my actual data but I'm just working with sample data to get the formula right.
Any help much appreciated.
Bookmarks