Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I am trying to make a count of sales by salesperson. In column I, I have
"salesperson(DP,PR,BD)", and in column N, I have "sales status (S,NI,L,P,F)". I want to find out how many "sales(S)", each person has. In a description =COUNTIF(N:N,"=DP")IF(I:I,"=S") this is basically what I am trying to say. I know that this is not the correct formula, I have been trying others, however I haven't had success. |
#2
![]() |
|||
|
|||
![]()
=SUMPRODUCT(--(N1:N100="DP"),--(I1:I100="S"))
"tw5633" wrote: I am trying to make a count of sales by salesperson. In column I, I have "salesperson(DP,PR,BD)", and in column N, I have "sales status (S,NI,L,P,F)". I want to find out how many "sales(S)", each person has. In a description =COUNTIF(N:N,"=DP")IF(I:I,"=S") this is basically what I am trying to say. I know that this is not the correct formula, I have been trying others, however I haven't had success. |
#3
![]() |
|||
|
|||
![]()
Duke,
Thank you for your help. I did not know that in that formula you could not use the whole column. You just saved my weekend. "Duke Carey" wrote: =SUMPRODUCT(--(N1:N100="DP"),--(I1:I100="S")) "tw5633" wrote: I am trying to make a count of sales by salesperson. In column I, I have "salesperson(DP,PR,BD)", and in column N, I have "sales status (S,NI,L,P,F)". I want to find out how many "sales(S)", each person has. In a description =COUNTIF(N:N,"=DP")IF(I:I,"=S") this is basically what I am trying to say. I know that this is not the correct formula, I have been trying others, however I haven't had success. |
#4
![]() |
|||
|
|||
![]()
Try...
=SUMPRODUCT(--(N1:N100="DP"),--(I1:I100="S")) Note that SUMPRODUCT does not accept whole column references. Hope this helps! In article , tw5633 wrote: I am trying to make a count of sales by salesperson. In column I, I have "salesperson(DP,PR,BD)", and in column N, I have "sales status (S,NI,L,P,F)". I want to find out how many "sales(S)", each person has. In a description =COUNTIF(N:N,"=DP")IF(I:I,"=S") this is basically what I am trying to say. I know that this is not the correct formula, I have been trying others, however I haven't had success. |
#5
![]() |
|||
|
|||
![]()
Domenic,
Thank you so much for your help. I did not know that SUMPRODUCT couldn't use the whole column. You saved my weekend and my afternoon. Again Thanks "Domenic" wrote: Try... =SUMPRODUCT(--(N1:N100="DP"),--(I1:I100="S")) Note that SUMPRODUCT does not accept whole column references. Hope this helps! In article , tw5633 wrote: I am trying to make a count of sales by salesperson. In column I, I have "salesperson(DP,PR,BD)", and in column N, I have "sales status (S,NI,L,P,F)". I want to find out how many "sales(S)", each person has. In a description =COUNTIF(N:N,"=DP")IF(I:I,"=S") this is basically what I am trying to say. I know that this is not the correct formula, I have been trying others, however I haven't had success. |
#6
![]() |
|||
|
|||
![]()
Hi,
You may use an array formula (Ctrl+Shift+Enter) to arrive at the same result =count(if((range1="--")*(range2="--"),1,0)) Regards, Ashish Mathur "tw5633" wrote: I am trying to make a count of sales by salesperson. In column I, I have "salesperson(DP,PR,BD)", and in column N, I have "sales status (S,NI,L,P,F)". I want to find out how many "sales(S)", each person has. In a description =COUNTIF(N:N,"=DP")IF(I:I,"=S") this is basically what I am trying to say. I know that this is not the correct formula, I have been trying others, however I haven't had success. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
analysing data from alternate columns using the countif function | Excel Discussion (Misc queries) | |||
Combining IF and COUNTIF based on two columns | Excel Discussion (Misc queries) | |||
want to count in two columns; countif (colA=x AND colB=y)? | Excel Worksheet Functions | |||
Pivot Table combining multiple columns | Excel Discussion (Misc queries) | |||
combining 3 columns of same info for a pivot table | Excel Worksheet Functions |