PC Review


Reply
Thread Tools Rate Thread

A counting function

 
 
Bobby
Guest
Posts: n/a
 
      15th Dec 2005
Hi! Is there in EXCEL(VBA) a builtin function that count the occurences
in a string. I.E.:
var1 = "Monday Tuesday Wednesday"
Tthe builtin would return the number 3(for 3 words in the string).
Thank's ahead

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      15th Dec 2005
One way

var1 = "Monday Tuesday Wednesday"
ary = Split(var1, " ")
MsgBox UBound(ary) - LBound(ary) + 1

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Bobby" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi! Is there in EXCEL(VBA) a builtin function that count the occurences
> in a string. I.E.:
> var1 = "Monday Tuesday Wednesday"
> Tthe builtin would return the number 3(for 3 words in the string).
> Thank's ahead
>



 
Reply With Quote
 
Bobby
Guest
Posts: n/a
 
      15th Dec 2005
Thank's Bob! I would love to "remove nothere from email address if
mailing direct" but where do I go for that change?( I did look in my
profile and cannot fing it there)

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      15th Dec 2005
Sorry, are you asking what to do with that code?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Bobby" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank's Bob! I would love to "remove nothere from email address if
> mailing direct" but where do I go for that change?( I did look in my
> profile and cannot fing it there)
>



 
Reply With Quote
 
Bobby
Guest
Posts: n/a
 
      15th Dec 2005
No no Bob! I know and understand your code it's great! I think I miss
interpreted the inscription under your answer(the written comment in
parenthesis) Sorry for the confusion I created.

 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      15th Dec 2005
Hi Bob,

I suspect that Bobby has interpreted your:

> (remove nothere from email address if mailing direct)


as an instruction to amend *his* details: he did not appreciate that it
represents a means of deciphering your email address.


--
---
Regards,
Norman



"Bob Phillips" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sorry, are you asking what to do with that code?
>
> --
> HTH
>
> Bob Phillips
>
> (remove nothere from email address if mailing direct)
>
> "Bobby" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thank's Bob! I would love to "remove nothere from email address if
>> mailing direct" but where do I go for that change?( I did look in my
>> profile and cannot fing it there)
>>

>
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      15th Dec 2005
No problems mate, I just didn't want to leave you stranded if there was more
help required.

Regards

Bob

"Bobby" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> No no Bob! I know and understand your code it's great! I think I miss
> interpreted the inscription under your answer(the written comment in
> parenthesis) Sorry for the confusion I created.
>



 
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
counting function but not double counting duplicates =?Utf-8?B?SlJE?= Microsoft Excel Worksheet Functions 2 7th Nov 2007 06:43 PM
Counting Function =?Utf-8?B?TUFC?= Microsoft Excel Worksheet Functions 10 25th Jan 2006 04:53 PM
counting function nespa Microsoft Excel Worksheet Functions 1 11th Oct 2004 07:35 PM
counting function nespa Microsoft Excel Worksheet Functions 2 11th Oct 2004 07:04 PM
Counting function Mike P Microsoft Excel Worksheet Functions 1 16th Aug 2003 01:00 AM


Features
 

Advertising
 

Newsgroups
 


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