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

Help
I need to know how many times a job code (2E190) occurs in column C, if
column D is one of 5 different office codes (CYN,CYND,CYNS,CYNT or CYNV) I
used the bellow code but it doesnt seem to generate an answer in the cell
Note the data is recorded on one worksheet (functional view) and the chart
Im displaying the info on is on another)

=SUMPRODUCT(--('Functional View'!C2:C102="2E131"),--('Functional
View'!D2:D102="CYN"),--('Functional View'!D2:D102="CYND")--('Functional
View'!D2:D102="CYNS")--('Functional View'!D2:D102="CYNT")--('Functional
View'!D2:D102="CYNV"))

Thanks in advance

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

Hi

You are missing commas between your arguments.
but this would be AND'ing each of the different office codes instead of
OR'ing.

Try
=SUMPRODUCT((C2:C102="2E131")*
(D2:D102={"CYN","CYND","CYNS","CYNT","CYNV"}))


--
Regards

Roger Govier


"tmcook" wrote in message
...
Help
I need to know how many times a job code (2E190) occurs in column C,
if
column D is one of 5 different office codes (CYN,CYND,CYNS,CYNT or
CYNV) I
used the bellow code but it doesn't seem to generate an answer in the
cell
Note the data is recorded on one worksheet (functional view) and the
chart
I'm displaying the info on is on another)

=SUMPRODUCT(--('Functional View'!C2:C102="2E131"),--('Functional
View'!D2:D102="CYN"),--('Functional
View'!D2:D102="CYND")--('Functional
View'!D2:D102="CYNS")--('Functional
View'!D2:D102="CYNT")--('Functional
View'!D2:D102="CYNV"))

Thanks in advance



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
Countif or Sumproduct Tom Excel Worksheet Functions 2 April 25th 07 06:58 PM
Sumproduct and Countif [email protected] Excel Discussion (Misc queries) 0 April 2nd 07 02:51 PM
COUNTIF or SUMPRODUCT? scott Excel Worksheet Functions 4 August 28th 06 03:51 AM
SumProduct or CountIf Kim Excel Worksheet Functions 7 July 9th 05 12:04 AM
countif, sumproduct mg New Users to Excel 7 July 1st 05 10:26 PM


All times are GMT +1. The time now is 04:36 PM.

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"