#1   Report Post  
Posted to microsoft.public.excel.misc
wc
 
Posts: n/a
Default count if

I have a problem I want to count with multiply parameters.
ex.
tp403 e
lp602 p
tp601 e
tp403 p

I want to count when column 1 is tp... and column 2 is e. I can count, but
i have a problem with using wildcard *.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default count if

=SUMPRODUCT(--(LEFT(A1:A100,2)="tp"),--(B1:B100="e"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"wc" wrote in message
...
I have a problem I want to count with multiply parameters.
ex.
tp403 e
lp602 p
tp601 e
tp403 p

I want to count when column 1 is tp... and column 2 is e. I can count,

but
i have a problem with using wildcard *.



  #3   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default count if


If you make an extra column which concatentate the two fields (maybe
with an unusual separator for safety), you can then use the COUNTIF
function on this.

tp403 e tp403|e
lp602 p lp602|p
tp601 e tp601|e
tp403 p tp403|p


=COUNTIF(C1:C4,"tp*|e") gives the value of 2


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=536900

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
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


All times are GMT +1. The time now is 06:59 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"