Hi,
How do you count rows in a column that contain 2205, 3959 or 3858 only if the first 4 digits are one of this three numbers?
The column contains either 13 or 15 character numbers. But, each number is preceded by =" and ends with ".
Two example cells: A2 and A3
="3959506134974"
="2205253647730"
I tried
=IF(LEFT($A:$A,4) = "2205", COUNTIF($A:$A,"*2205*"))
=IF(LEFT($A:$A,4) = "3959", COUNTIF($A:$A,"*3959*"))
=IF(LEFT($A:$A,4) = "3858", COUNTIF($A:$A,"*3858*"))
but it seems to work for 2205 but not for the other two numbers, I am not sue why.
I also tried
=IF(LEFT($A:$A,4) = "3959", COUNTIF($A:$A,"*3959*"))
but it returned FALSE.
Any help. Thanks
How do you count rows in a column that contain 2205, 3959 or 3858 only if the first 4 digits are one of this three numbers?
The column contains either 13 or 15 character numbers. But, each number is preceded by =" and ends with ".
Two example cells: A2 and A3
="3959506134974"
="2205253647730"
I tried
=IF(LEFT($A:$A,4) = "2205", COUNTIF($A:$A,"*2205*"))
=IF(LEFT($A:$A,4) = "3959", COUNTIF($A:$A,"*3959*"))
=IF(LEFT($A:$A,4) = "3858", COUNTIF($A:$A,"*3858*"))
but it seems to work for 2205 but not for the other two numbers, I am not sue why.
I also tried
=IF(LEFT($A:$A,4) = "3959", COUNTIF($A:$A,"*3959*"))
but it returned FALSE.
Any help. Thanks