Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I get a count of cells that contain PLS 2

Status
Not open for further replies.

Bill4tektips

Technical User
Aug 5, 2005
175
GB
In Excel 2003, is there any way to get a count of cells that contain the letters PLC (cell contains PLC 1234 for instance). I would like to do it to obtain metrics from a spreadsheet containing document numbers.
 
For multicolumn range you can use array formula(CTRL+SHIFT entered):
=SUM(--(LEN(A1:D4)<>LEN(SUBSTITUTE(A1:D4,"PLC",""))))
(displayed as {=SUM(...)}).


combo
 
You could use this formula:
=COUNTIF(A1:D4,"*PLC*")

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Thanks for that Combo. What I am actually trying to do is check 3 columns in the spreadseet to see is there is a match. I have used the SUMPRODUCT function with the formula =SUMPRODUCT(('Raw Data'!$C$2:$C$5003="PLC*")*('Raw Data'!$G$2:$G$5003="Procdoc")*('Raw Data'!$I$2:$I$5003="S9"))
Can you see any reason this will not work?
 
You can't use a wildcard with a direct comparison, so replace this
'Raw Data'!$C$2:$C$5003="PLC*"
with
LEFT('Raw Data'!$C$2:$C$5003,3)="PLC"

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
My pleasure! :)

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top