SUMPRODUCT will do it
=SUMPRODUCT(--(MID(A1:A10,2,1)="6"))
SUMPRODUCT will do it
=SUMPRODUCT(--(MID(A1:A10,2,1)="6"))
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
In VBA, Place the Keyboard cursor inside a word and press F1 for help on that word.I have to admit, this is awesomeI have never used VBA before, but your step by step guide is foolproof.
Thank you so much, it works great!
I wish I understood the code itself, but it's a different matter, VBA is on to-do list.
Thanks again, SamT, you saved my dissertation.![]()
I expect the student to do their homework and find all the errrors I leeve in.
Please take the time to read the Forum FAQ
Last edited by fleskj; 08-09-2013 at 09:55 AM.
It doesn't work for the same reason that your original formula doesn't work, you are comparing numeric items with strings. You need to string it
=SUMPRODUCT(--(MID(A1:A10,2,1)=TEXT(B6,"General")))
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber