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

hi

i got a problem with function Countif and sumproblem

My problem is that i need to match 3 diff critieria , if all of them matches
, on a cell , it will count 1 .

1st spread sheet

Date Status Place
010906 Accepted L.A
010906 Accepted L.A
010906 Pending L.A
020906 Accepeted chiago

If the date is "010906" , then the status is either accepted or pending and
the place is L.A . i wan the cell below to count , how to i do that ? do i
need to create a dummy column ?
2nd spread sheet

place 010906
L.A 3


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default CountIf or Sumproduct

=SUMPRODUCT(--(Sheet1!$A$1:$A$100=B$1),--(Sheet1!$C$1:$C$100=$A2))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"numbernine" wrote in message
...
hi

i got a problem with function Countif and sumproblem

My problem is that i need to match 3 diff critieria , if all of them

matches
, on a cell , it will count 1 .

1st spread sheet

Date Status Place
010906 Accepted L.A
010906 Accepted L.A
010906 Pending L.A
020906 Accepeted chiago

If the date is "010906" , then the status is either accepted or pending

and
the place is L.A . i wan the cell below to count , how to i do that ? do i
need to create a dummy column ?
2nd spread sheet

place 010906
L.A 3




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default CountIf or Sumproduct

Hi,

Thank for your answer ,i think i explained wrongly in my question . actually
i wanted to match the 3 column word by word , which mean on the 1st column
the word is "0109/06" , 2nd cell is "Accepted or Pending" , then the 3rd cell
is "L.A " . If all these appear on the same row , on the 2nd spread sheet on
a partcular same will count as '1' .

I tried using this formula but i could not count the date(1st column) and
also the word "accepted " or ""pending(2rd column).

=SUMPRODUCT((Sheet1!A2:A22="01/09/06")*(Sheet1!B2:B22="Accepted"
or"Pending")*(Sheet1!C2:C22="L.A"))

Thank alot !!!
Cheers,


"Bob Phillips" wrote:

=SUMPRODUCT(--(Sheet1!$A$1:$A$100=B$1),--(Sheet1!$C$1:$C$100=$A2))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"numbernine" wrote in message
...
hi

i got a problem with function Countif and sumproblem

My problem is that i need to match 3 diff critieria , if all of them

matches
, on a cell , it will count 1 .

1st spread sheet

Date Status Place
010906 Accepted L.A
010906 Accepted L.A
010906 Pending L.A
020906 Accepeted chiago

If the date is "010906" , then the status is either accepted or pending

and
the place is L.A . i wan the cell below to count , how to i do that ? do i
need to create a dummy column ?
2nd spread sheet

place 010906
L.A 3





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default CountIf or Sumproduct

Hi

Try
=SUMPRODUCT((Sheet1!A2:A22=--"01/09/2006")*
((Sheet1!B2:B22="Accepted")+ (Sheet1!B2:B22="Pending"))*
(Sheet1!C2:C22="L.A"))

I had to use the double unary minus "--" in front of the date to get it
to recognise it as a date.
Personally, I prefer to use =DATE(2006,9,1) rather than --"01/09/2006"

--
Regards

Roger Govier


"numbernine" wrote in message
...
Hi,

Thank for your answer ,i think i explained wrongly in my question .
actually
i wanted to match the 3 column word by word , which mean on the 1st
column
the word is "0109/06" , 2nd cell is "Accepted or Pending" , then the
3rd cell
is "L.A " . If all these appear on the same row , on the 2nd spread
sheet on
a partcular same will count as '1' .

I tried using this formula but i could not count the date(1st column)
and
also the word "accepted " or ""pending(2rd column).

=SUMPRODUCT((Sheet1!A2:A22="01/09/06")*(Sheet1!B2:B22="Accepted"
or"Pending")*(Sheet1!C2:C22="L.A"))

Thank alot !!!
Cheers,


"Bob Phillips" wrote:

=SUMPRODUCT(--(Sheet1!$A$1:$A$100=B$1),--(Sheet1!$C$1:$C$100=$A2))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"numbernine" wrote in message
...
hi

i got a problem with function Countif and sumproblem

My problem is that i need to match 3 diff critieria , if all of
them

matches
, on a cell , it will count 1 .

1st spread sheet

Date Status Place
010906 Accepted L.A
010906 Accepted L.A
010906 Pending L.A
020906 Accepeted chiago

If the date is "010906" , then the status is either accepted or
pending

and
the place is L.A . i wan the cell below to count , how to i do that
? do i
need to create a dummy column ?
2nd spread sheet

place 010906
L.A 3







  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default CountIf or Sumproduct

I would put the values to test against in cells and check against those as
in my original, other than that

=SUMPRODUCT((Sheet1!A2:A22=--"2006-09-01")*
(Sheet1!B2:B22={"Accepted","Pending"})*
(Sheet1!C2:C22="LA"))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"numbernine" wrote in message
...
Hi,

Thank for your answer ,i think i explained wrongly in my question .

actually
i wanted to match the 3 column word by word , which mean on the 1st column
the word is "0109/06" , 2nd cell is "Accepted or Pending" , then the 3rd

cell
is "L.A " . If all these appear on the same row , on the 2nd spread sheet

on
a partcular same will count as '1' .

I tried using this formula but i could not count the date(1st column) and
also the word "accepted " or ""pending(2rd column).

=SUMPRODUCT((Sheet1!A2:A22="01/09/06")*(Sheet1!B2:B22="Accepted"
or"Pending")*(Sheet1!C2:C22="L.A"))

Thank alot !!!
Cheers,


"Bob Phillips" wrote:

=SUMPRODUCT(--(Sheet1!$A$1:$A$100=B$1),--(Sheet1!$C$1:$C$100=$A2))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"numbernine" wrote in message
...
hi

i got a problem with function Countif and sumproblem

My problem is that i need to match 3 diff critieria , if all of them

matches
, on a cell , it will count 1 .

1st spread sheet

Date Status Place
010906 Accepted L.A
010906 Accepted L.A
010906 Pending L.A
020906 Accepeted chiago

If the date is "010906" , then the status is either accepted or

pending
and
the place is L.A . i wan the cell below to count , how to i do that ?

do i
need to create a dummy column ?
2nd spread sheet

place 010906
L.A 3









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
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
countif more than one sheet/tab and sumproduct BSantos Excel Worksheet Functions 1 February 23rd 06 06:20 PM
countif, sumproduct mg New Users to Excel 7 July 1st 05 10:26 PM
Using COUNTIF with 2 criteria - SUMPRODUCT? Mike R. Excel Worksheet Functions 2 February 24th 05 05:57 AM
SUMPRODUCT & COUNTIF Connie Martin Excel Worksheet Functions 2 December 16th 04 06:53 PM


All times are GMT +1. The time now is 05:13 PM.

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

About Us

"It's about Microsoft Excel"