Count items that begin with digit 7 (items could be number or text)

snd

New Member
Joined
Jan 24, 2010
Messages
44
Excel 2007
Row\Col
A
B
C
D
E
F
1
712345678​
2
712345678
3
123745678​
4
8234756​
5
6
8234756
7
712345​
8
LK
9
7123​
10
Y712345
11
12
13
Answer:
14
No. of items (that are numbers) that start with digit 7:
3​
15
No. of items (that are text) that start with digit 7:
1​
16
17
Please help me on this, (preferably, worksheet function.) Thanks.

<tbody>
</tbody>
Sheet: Sheet3

<tbody>
</tbody>
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Using your posted example...
Here's one approach:

count of numeric values beginning with 7
Code:
A14: =SUMPRODUCT(((SEARCH("7",A1:A10&"7")=1)*ISNUMBER(A1:A10)))
count of text values beginning with 7
Code:
A15: =COUNTIF(A1:A10,"7*")

For your data, those formulas return: 3 and 1, respectively.

Is that something you can work with?
 
  • Like
Reactions: snd
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,280
Members
449,220
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top