A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

HOW MANY "/" IN THIS CELL A1 = "RG/351/87/11/3"



 
 
Thread Tools Display Modes
  #1  
Old February 12th, 2007, 09:26 AM posted to microsoft.public.excel.worksheet.functions
- - - - -
external usenet poster
 
Posts: 1
Default HOW MANY "/" IN THIS CELL A1 = "RG/351/87/11/3"

hi,
i want to calculate the following;
CELL A1 HAS A VALUE = RG/351/87/11/3
1- HOW MANY "/" (FORWARD SLASH) IN THIS CELL
2- HOW MANY "3" (THREE) IN THIS CELL.
ACTUALLY THIS QUESTION IS ABOUT TO COUNT/SUM ANY SPECIFIC
WORD/NUMERIC/SPECIAL CHARACTER IN A CELL.
THANKS FOR YOUR COOPERATION.
I HOPE I WILL GET IT SOON.

SAQIB YAQUB




  #2  
Old February 12th, 2007, 09:34 AM posted to microsoft.public.excel.worksheet.functions
mike
external usenet poster
 
Posts: 3,942
Default HOW MANY "/" IN THIS CELL A1 = "RG/351/87/11/3"

=LEN(A1)-LEN(SUBSTITUTE(A1,A2,""))

Put this in b1 and the character you want to count in A2

"- - - - -" wrote:

hi,
i want to calculate the following;
CELL A1 HAS A VALUE = RG/351/87/11/3
1- HOW MANY "/" (FORWARD SLASH) IN THIS CELL
2- HOW MANY "3" (THREE) IN THIS CELL.
ACTUALLY THIS QUESTION IS ABOUT TO COUNT/SUM ANY SPECIFIC
WORD/NUMERIC/SPECIAL CHARACTER IN A CELL.
THANKS FOR YOUR COOPERATION.
I HOPE I WILL GET IT SOON.

SAQIB YAQUB




  #3  
Old February 12th, 2007, 11:04 AM posted to microsoft.public.excel.worksheet.functions
- - - - -
external usenet poster
 
Posts: 1
Default HOW MANY "/" IN THIS CELL RANGE A1:A5

Dear Mike,
thanks for reply.
I have one query more. if i have a range then how i can calculate;
CELL A1 RG/351/87/11/1
CELL A2 RG/351/87/11/2
CELL A3 RG/351/87/11/3
CELL A4 RG/351/87/11/4
CELL A5 RG/351/87/11/5

THANKS FOR IN ADVANCE.
TAKE CARE
SAQIB YAQUB


"Mike" wrote:

=LEN(A1)-LEN(SUBSTITUTE(A1,A2,""))

Put this in b1 and the character you want to count in A2

"- - - - -" wrote:

hi,
i want to calculate the following;
CELL A1 HAS A VALUE = RG/351/87/11/3
1- HOW MANY "/" (FORWARD SLASH) IN THIS CELL
2- HOW MANY "3" (THREE) IN THIS CELL.
ACTUALLY THIS QUESTION IS ABOUT TO COUNT/SUM ANY SPECIFIC
WORD/NUMERIC/SPECIAL CHARACTER IN A CELL.
THANKS FOR YOUR COOPERATION.
I HOPE I WILL GET IT SOON.

SAQIB YAQUB




  #4  
Old February 12th, 2007, 11:15 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips
external usenet poster
 
Posts: 1,032
Default HOW MANY "/" IN THIS CELL RANGE A1:A5

=SUMPRODUCT(LEN(C1:C5)-LEN(SUBSTITUTE(C1:C5,"/","")))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"- - - - -" wrote in message
...
Dear Mike,
thanks for reply.
I have one query more. if i have a range then how i can calculate;
CELL A1 RG/351/87/11/1
CELL A2 RG/351/87/11/2
CELL A3 RG/351/87/11/3
CELL A4 RG/351/87/11/4
CELL A5 RG/351/87/11/5

THANKS FOR IN ADVANCE.
TAKE CARE
SAQIB YAQUB


"Mike" wrote:

=LEN(A1)-LEN(SUBSTITUTE(A1,A2,""))

Put this in b1 and the character you want to count in A2

"- - - - -" wrote:

hi,
i want to calculate the following;
CELL A1 HAS A VALUE = RG/351/87/11/3
1- HOW MANY "/" (FORWARD SLASH) IN THIS CELL
2- HOW MANY "3" (THREE) IN THIS CELL.
ACTUALLY THIS QUESTION IS ABOUT TO COUNT/SUM ANY SPECIFIC
WORD/NUMERIC/SPECIAL CHARACTER IN A CELL.
THANKS FOR YOUR COOPERATION.
I HOPE I WILL GET IT SOON.

SAQIB YAQUB






  #5  
Old February 12th, 2007, 11:26 AM posted to microsoft.public.excel.worksheet.functions
mike
external usenet poster
 
Posts: 3,942
Default HOW MANY "/" IN THIS CELL RANGE A1:A5

=SUMPRODUCT(LEN(A1:A1000)-LEN(SUBSTITUTE(A1:A1000,C1,"")))

Checks the range A1 _ A1000 for the character in C1

"- - - - -" wrote:

Dear Mike,
thanks for reply.
I have one query more. if i have a range then how i can calculate;
CELL A1 RG/351/87/11/1
CELL A2 RG/351/87/11/2
CELL A3 RG/351/87/11/3
CELL A4 RG/351/87/11/4
CELL A5 RG/351/87/11/5

THANKS FOR IN ADVANCE.
TAKE CARE
SAQIB YAQUB


"Mike" wrote:

=LEN(A1)-LEN(SUBSTITUTE(A1,A2,""))

Put this in b1 and the character you want to count in A2

"- - - - -" wrote:

hi,
i want to calculate the following;
CELL A1 HAS A VALUE = RG/351/87/11/3
1- HOW MANY "/" (FORWARD SLASH) IN THIS CELL
2- HOW MANY "3" (THREE) IN THIS CELL.
ACTUALLY THIS QUESTION IS ABOUT TO COUNT/SUM ANY SPECIFIC
WORD/NUMERIC/SPECIAL CHARACTER IN A CELL.
THANKS FOR YOUR COOPERATION.
I HOPE I WILL GET IT SOON.

SAQIB YAQUB




 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.