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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help counting if a cell = specific text in Excel 1

Status
Not open for further replies.

dr772

Technical User
Nov 17, 2005
24
US
I am trying to count how many times sponge count occurs when
the Dept = OR my trouble is there are other items in the sponge count colum I tried =sumproduct((d2:d1000="or")*(e2:e1000="*sponge count*")) but it won't pull it out
see below
(D) (E)
Dept Surgery Related
OR Sponge count/needlecount/abrasion
OR Sponge count/abrasion
OR Positioning/or count
PACU Other/spoonge count
LITHO Equipment
 
You can't use a wildcard like that with SUMPRODUCT. But you can use something else ...

=SUMPRODUCT((D2:D1000="OR")*(ISNUMBER(SEARCH("sponge count",E2:E1000,1))))

HTH

Regards,
Zack Barresse

Simplicity is the ultimate sophistication. What is a MS MVP? PODA
- Leonardo da Vinci
 
In another column (F for example) create a range by using =find("Sponge",E6,1)

Then, use
=SUMPRODUCT((D6:D1000="or")*(ISNUMBER(F6:F1000)))

Me transmitte sursum, Caledoni!
 
Zack,
tried that got #NA..any other ideas
 
Worked for me. Try using the Formula Auditor to see what results your getting.

Regards,
Zack Barresse

Simplicity is the ultimate sophistication. What is a MS MVP? PODA
- Leonardo da Vinci
 
Zack,
Sorry...tried again it worked..
i can't explain how great that is
- Diane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top