Counting in EXCEL

Closed
Excel - 9 Dec 2008 à 02:18
TheParoxysm Posts 169 Registration date Sunday 7 December 2008 Status Member Last seen 25 March 2011 - 9 Dec 2008 à 14:01
Hi

Having a problem,
I want to count the number of cells that starts with a certain figure,

Example

90500-3
90400-3
400000-3
50000-3
30000-5

I want to count the number of cells that starts with 90, how do I do that in Excel.

Thanks for any help
Related:

2 responses

aquarelle Posts 7185 Registration date Saturday 7 April 2007 Status Moderator Last seen 14 February 2026 491
9 Dec 2008 à 13:02
Hello,
If I suppose that your data are in the column A like above and that you want to get the result in A7, you have to put the following formula in A7 =COUNTIF(A1:A6;"90*")
               A                  B
1            90500-3
2            90400-3
3            400000-3
4            50000-3
6            30000-5
7           =COUNTIF(A1:A6;"90*")


Now, you have to adapt it to your problem. Hope this help you.
Best regards
TheParoxysm Posts 169 Registration date Sunday 7 December 2008 Status Member Last seen 25 March 2011 74
9 Dec 2008 à 14:01
Or if they are scattered you could just put it out normally =COUNTIF(A1, B2, C3;"9.0*")
TheParoxysm Posts 169 Registration date Sunday 7 December 2008 Status Member Last seen 25 March 2011 74
9 Dec 2008 à 12:15
I know you're going to need to use wildcards. Other than that, I'm sorry. This is a job better suited for a database.