PC Review


Reply
Thread Tools Rate Thread

Counting based on characters.

 
 
Sinner
Guest
Posts: n/a
 
      16th Feb 2008
I have the following list. I want VBA solution to get a count of first
7 characters.


List
03439061122
03439061122
03439061122
03449831122
03452401122
03455251122
03455251122
03455251122
03455251122
03455251122
03455691122
03457711122
03458331122
-----------------------------
Count
0343906 3
0344983 1
0345240 1
0345525 5
0345569 1
0345771 1
0345833 1
________________

Thx.
 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      16th Feb 2008
Since the last 4 characters are all the same, the count would be the same, if
they are included. If this is not acceptable, you might think of pulling the
first 7 characters out into another column with =left(CellAddress, 7), then
doing a =CountIf(characters, Range). No VBA involved.

David

"Sinner" wrote:

> I have the following list. I want VBA solution to get a count of first
> 7 characters.
>
>
> List
> 03439061122
> 03439061122
> 03439061122
> 03449831122
> 03452401122
> 03455251122
> 03455251122
> 03455251122
> 03455251122
> 03455251122
> 03455691122
> 03457711122
> 03458331122
> -----------------------------
> Count
> 0343906 3
> 0344983 1
> 0345240 1
> 0345525 5
> 0345569 1
> 0345771 1
> 0345833 1
> ________________
>
> Thx.
>

 
Reply With Quote
 
Sinner
Guest
Posts: n/a
 
      17th Feb 2008
On Feb 16, 11:41*pm, David <Da...@discussions.microsoft.com> wrote:
> Since the last 4 characters are all the same, the count would be the same,if
> they are included. If this is not acceptable, you might think of pulling the
> first 7 characters out into another column with =left(CellAddress, 7), then
> doing a =CountIf(characters, Range). No VBA involved.
>
> David
>
>
>
> "Sinner" wrote:
> > I have the following list. I want VBA solution to get a count of first
> > 7 characters.

>
> > List
> > 03439061122
> > 03439061122
> > 03439061122
> > 03449831122
> > 03452401122
> > 03455251122
> > 03455251122
> > 03455251122
> > 03455251122
> > 03455251122
> > 03455691122
> > 03457711122
> > 03458331122
> > -----------------------------
> > * *Count
> > 0343906 * *3
> > 0344983 * *1
> > 0345240 * *1
> > 0345525 * *5
> > 0345569 * *1
> > 0345771 * *1
> > 0345833 * *1
> > ________________

>
> > Thx.- Hide quoted text -

>
> - Show quoted text -


Can we put this left & countif in background (VB) so that calculation
time is minimised?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Counting Characters Pete_UK Microsoft Excel Worksheet Functions 2 23rd Jan 2007 04:01 PM
Counting based upon 2 conditions that are text based walkerdayle Microsoft Excel Misc 7 22nd Aug 2006 01:29 AM
Counting Characters =?Utf-8?B?U3RlZmFu?= Microsoft Access Queries 3 23rd Nov 2005 10:36 PM
Counting Characters mstover34 Microsoft Excel Discussion 1 5th Apr 2004 11:01 PM
Counting Characters Mr. Novice Microsoft Windows 2000 CMD Promt 9 8th Nov 2003 08:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:06 PM.