Would any body be able to advise me on the correct syntax for using the COUNTIF and MID functions simultaneously in Excel. My current attempt is as follows:
=COUNTIF(MID(A1:A6,1,1),"1")
I’m attempting to count the number of strings in a list with integer 1 as the first character.
Any help offered would be greatly appreciated.
Thanking you in advance,
Jared.
Try this
or if you are using excel 2007 or later
Note that this will match strings but not numbers
Update:
to count strings beginning with integers >1 try
A bit clunky I know, but it’s all I can think of for now