If statement with a between date condition

Imran Azam

Board Regular
Joined
Mar 15, 2011
Messages
103
Hi Guys

I have the below data

ABC
1MANAGERDATESTATUS
2Roy01/01/2019Open
3Roy01/02/2019Won
4Roy20/02/2019Open
5Roy01/01/2019Won
6Roy01/01/2019Open
7Roy11/02/2019Lost
8Roy01/01/2019Lost
9Roy01/01/2019Other
10Roy01/01/2019Lost
11Roy01/01/2019Other
12Eric01/01/2019Open
13Eric01/01/2019Lost
14Eric01/01/2019Lost
15Eric01/01/2019Other
16Eric01/01/2019Open

<tbody>
</tbody>


I am trying to create a formula which will do the following

get the count of open status for manager Roy ( in this case 11) + the count of won status where the date is in feb 2019 for manager Roy ( in this case 1) + the number of lost status where the date is in feb 2019 for manger Roy ( in this case 1)


so the total number we get in the outcome of the formula should be 13


I have tried doing this using the if statement but haven got anywhere

can this be done?




thank you for any help provided
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I am a bit confused on how you get your numbers from the data you provides above?

count of open status for manager Roy = 3 based on =COUNTIFS($A:$A,"Roy",$C:$C,"open")
count of won status where the date is in feb 2019 for magr roy = 1 based on =COUNTIFS($A:$A,"roy",$C:$C,"won",$B:$B,">="&$K$1,$B:$B,"<="&$K$2) [k1/k2 is start and end dates for Feb '19)
the number of lost status where the date is in feb 2019 for manger Roy = 1 based on =COUNTIFS($A:$A,"roy",$C:$C,"lost",$B:$B,">="&$K$1,$B:$B,"<="&$K$2)

You only have 10 entries for Roy total, so where do you even get a reslt of 13???


MANAGERDATESTATUScount of open status for manager Roycount of won status where the date is in feb 2019the number of lost status where the date is in feb 2019 for manger RoyStart Date01/02/2019
Roy01/01/2019Open311End Date28/02/2019
Roy01/02/2019Won10
Roy20/02/2019Open
Roy01/01/2019Won
Roy01/01/2019Open
Roy11/02/2019Lost
Roy01/01/2019Lost
Roy01/01/2019Other
Roy01/01/2019Lost
Roy01/01/2019Other
Eric01/01/2019Open
Eric01/01/2019Lost
Eric01/01/2019Lost
Eric01/01/2019Other
Eric01/01/2019Open
<colgroup><col width="71" style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;"> <col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <col width="53" style="width: 40pt; mso-width-source: userset; mso-width-alt: 1938;"> <col width="64" style="width: 48pt;"> <col width="228" style="width: 171pt; mso-width-source: userset; mso-width-alt: 8338;"> <col width="299" style="width: 224pt; mso-width-source: userset; mso-width-alt: 10934;"> <col width="427" style="width: 320pt; mso-width-source: userset; mso-width-alt: 15616;"> <col width="64" style="width: 48pt;" span="3"> <col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <tbody> </tbody>
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top