Is there a way to count numbers in a cell separated by commas but also by a range ( dashes) ? for example:
Tx# (H10) Total (I10)
_____ ____
1,2,3,4,5-10 9
So that a person does not have to enter 1,2,3,4,5,6,7,8,9,10 It would just count the span?
The formula I currently have to calcualte them separated by commas is :
=if(SUMPRODUCT((LEN(H10)-LEN(SUBSTITUTE(H10,",",""))))=0,if(count(H10)=1,sumproduct((len(H10)-LEN(substitute(H10,",",""))+1)),"0"),sumproduct((len(H10)-len(substitute(H10,",",""))+1)))
Bookmarks