From: Ron Rosenfeld on
On Tue, 4 May 2010 09:02:06 -0700, Bruce D. <BruceD(a)>

>I am using excel 2007 and I am trying to create a macro that will convert
>account numbers which are stored as text to a number format. I want to get a
>record count on how many account numbers there are. Any ideas?

If there are no duplicates, you can use COUNTA.

If there might be duplicates, you can use this formula which must be

To **array-enter** a formula, after entering
the formula into the cell or formula bar, hold down
<ctrl><shift> while hitting <enter>. If you did this
correctly, Excel will place braces {...} around the formula.

Be aware that if you use Paul C's solution (or any solution that involves
changing the text to numbers), you will drop any leading zeros, and any digits
after the first 15 will get changed to a zero.