Count Records

amerifax

Board Regular
Joined
Dec 17, 2008
Messages
247
I have a very large file . I am looking for a way to page through my records by the first letter of the last name which is Column A. Is there a Hotkey or macro I can use to do this? Or is there a general way to do this? In other words I need to end up with a count of all names that start with the letter A, B, C as A = 10,050, B = 1079, C = 9473 etc...

This isn't an everyday occurrence that we need to look up this kind of information so we are just looking for a quick easy fix, something simple.

Thanks in advance for any help.

Bob
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi Bob,

Does this work?...

=SUMPRODUCT(--(LEFT($A$2:$A$100,1)=B2))

B2 houses A

Change your range to suit.

I hope that helps.

Ak
 
Upvote 0
Hello, try

B2, enter

=CHAR(64+ROWS(B$2:B2))

Copy down until get Z

C2, copy down

=COUNTIF(A:A,B2&"*")
 
Upvote 0
One minute I got it next mintue...

I did have it working and it was great.

What is it the code is doing?

A:A is looking at the Letter to count>

=COUNTIF(A:A,CHAR(ROWS($1:65))&"*")

My thoughts are the range as in A1:A137729

My next concern is the $1:65
I was thinking it might be characters 1 to 65.

Any way it was working until I moved it.

Bob
 
Upvote 0
I seem to have an update problem. That's why it was not working. I found that if i go to the command line and edit the formula the cell will update. Is there some place I can have the sheet update it's self automaticaly. Can I also do a manual update. Ctr Alt does nothing.

But if I change one charector it up dates.

=COUNTIF($A$1:$A$137730,I5&"*")

Just by backspacing on the 5, see code above, and retyping the 5 the cell will update.

Bob
 
Upvote 0
I seem to have an update problem. That's why it was not working. I found that if i go to the command line and edit the formula the cell will update. Is there some place I can have the sheet update it's self automaticaly. Can I also do a manual update. Ctr Alt does nothing.

But if I change one charector it up dates.

=COUNTIF($A$1:$A$137730,I5&"*")

Just by backspacing on the 5, see code above, and retyping the 5 the cell will update.

Bob

You probably need to set Calculation on Automatic. Would you check that?
 
Upvote 0
I have. Thanks. I also saved the file to a new spreadsheet. I felt that more than likely there might have been some corruption involved.

But now for some reason I cannot get the sort icon to show, it's grayed out. I've been trying to sort the phone column, and just cannot get that sort icon to show.

Talk about feeling stupid. I've been working with computers since the beginning. But tonight, I feel like the guy that called tech support and got a problem fixed when the technician asked if the computer was plugged in.

Bob
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

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