Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Calculations

If I enter this into a cell:

=COUNTIF(E5:K5,"P")

If there is a P then it counts the cell. So if all of the
cells, E5-K5 have a P then the total will be 7.

I want it to look for P, T, or L. How can I get one cell
to search for all 3 of those?

I've tried many things and I am all tried out. Any help
would be great. Thanks.

CJ
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Calculations

Hi
try:
=SUM(COUNTIF(E5:K5,{"P","T","L"}))

--
Regards
Frank Kabel
Frankfurt, Germany


CJ wrote:
If I enter this into a cell:

=COUNTIF(E5:K5,"P")

If there is a P then it counts the cell. So if all of the
cells, E5-K5 have a P then the total will be 7.

I want it to look for P, T, or L. How can I get one cell
to search for all 3 of those?

I've tried many things and I am all tried out. Any help
would be great. Thanks.

CJ

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Calculations

You're a genius. Thank you my good man.

CJ

-----Original Message-----
Hi
try:
=SUM(COUNTIF(E5:K5,{"P","T","L"}))

--
Regards
Frank Kabel
Frankfurt, Germany


CJ wrote:
If I enter this into a cell:

=COUNTIF(E5:K5,"P")

If there is a P then it counts the cell. So if all of

the
cells, E5-K5 have a P then the total will be 7.

I want it to look for P, T, or L. How can I get one

cell
to search for all 3 of those?

I've tried many things and I am all tried out. Any help
would be great. Thanks.

CJ

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If Then Calculations Marti Excel Worksheet Functions 3 August 18th 07 05:35 AM
Calculations KW Excel Discussion (Misc queries) 2 March 20th 06 07:28 PM
! in Calculations Strata Excel Discussion (Misc queries) 4 December 14th 05 01:15 PM
Calculations Andrew Hodgson Excel Worksheet Functions 0 August 2nd 05 03:58 PM
Between calculations Dan Wilson Excel Worksheet Functions 10 March 15th 05 05:06 PM


All times are GMT +1. The time now is 01:02 AM.

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

About Us

"It's about Microsoft Excel"