• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Countif formula in a paragraph

I have text in merged cell a2:a4 (
Details of payment,q4 order summary report-completed
wt & dimension CA14-3345 - Completed
engraving : Acme - Progress
Tenon scienc & technologies - Completed
SBC @ 0.5% pay tax - Pending
Service tax 12.36% to 14% - Progress )

I required formula to count "completed" as "2"
similarly Progress as "2"
I am trying formula countif( a3,"Progress") it shows 1
 
Hi Mohan, Put this in B7 of the attached file and drag it down

COUNT(SEARCH(A7,TRIM(MID(SUBSTITUTE($A$1," ",REPT(" ",LEN($A$1))),1+(ROW(INDIRECT("A1:A"&LEN($A$1)-LEN(SUBSTITUTE($A$1," ",""))+1))-1)*LEN($A$1),LEN($A$1)))))

Acknowledge with CTRL + SHIFT + ENTER

I don't want to sound stupid but I couldn't think of an easier way and there might be..I am brain dead right now I guess
 
Ignore the above - use the below

(LEN($A$1)-LEN(SUBSTITUTE($A$1,A7,"")))/LEN(A7)

and drag it down
 
Hi Ashish,

In Mohan's example, you give the formula, but I don't understand what is $A$1,
I removed the '$', result is the same. Can your explain it? please?

Regards.
Suhas
 
Hi, Khalid & Asheesh,
As I am a Excel User and I want to become a Power User, that is why I am asking this type of questions.

Thanx & regards.

Suhas
 
Back
Top