Count if formula required

exceluser9

Active Member
Joined
Jun 27, 2015
Messages
388
Hi Team,

I have below data and require countif formula or any other formula to get the count. Require your support.

I require only the today's date count to be captured. Email Sent 1, Email Sent 2 and Email Sent 3 (All 3 column count should be in Emails sent 1;2;3.

Thanks

[TABLE="width: 586"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD="colspan: 6"]Sheet 1 (Expected result)[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Received date count[/TD]
[TD]Emails sent 1;2;3[/TD]
[TD]Queried answered[/TD]
[TD]Not required[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]Peter_KU[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]James_BR[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]John_BL[/TD]
[TD]1[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 744"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD="colspan: 8"]Sheet 2 (Data)[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Received date[/TD]
[TD]Email Sent 1[/TD]
[TD]Email Sent 2[/TD]
[TD]Email Sent 3[/TD]
[TD]Queries[/TD]
[TD]Not required[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]Peter_KU[/TD]
[TD]25/06/2019[/TD]
[TD]24/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]23/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[/TR]
[TR]
[TD]James_BR[/TD]
[TD] [/TD]
[TD]23/05/2019[/TD]
[TD]23/05/2019[/TD]
[TD]23/05/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]John_BL[/TD]
[TD]23/05/2019[/TD]
[TD] [/TD]
[TD]23/05/2019[/TD]
[TD]23/05/2019[/TD]
[TD]25/06/2019[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Peter_KU[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[/TR]
[TR]
[TD]James_BR[/TD]
[TD]23/05/2019[/TD]
[TD]23/05/2019[/TD]
[TD] [/TD]
[TD]23/05/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]John_BL[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Peter_KU[/TD]
[TD]23/05/2019[/TD]
[TD]23/05/2019[/TD]
[TD]23/05/2019[/TD]
[TD] [/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]James_BR[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]John_BL[/TD]
[TD]22/05/2019[/TD]
[TD]22/05/2019[/TD]
[TD]22/05/2019[/TD]
[TD]22/05/2019[/TD]
[TD]25/06/2019[/TD]
[TD]25/06/2019[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Re: Count if formula required - Urgent

Hi,

I think your main concern is email sent columns which are distributed across the 3 columns. Below should work for that:


Book1
ABCDEF
1NameReceived date countEmails sent 1;2;3Queried answeredNot requiredCompleted
2Peter_KU00332
3James_BR13330
4John_BL16310
Sheet1
Cell Formulas
RangeFormula
B2=COUNTIFS(Sheet2!B$2:B$10,TODAY(),Sheet2!$A$2:$A$10,Sheet1!$A2)
C2=SUMPRODUCT(--(Sheet2!$C$2:$E$10=TODAY())*--(Sheet2!$A$2:$A$10=Sheet1!$A2))
 
Upvote 0
I changed the dates from 25jun to 26jun to perform the tests and my results do not match your example.
You could comment.

<table style="font-family:Arial; font-size:12pt; border-style: groove ;border-color:#0000FF;background-color:#fffcf9; color:#000000; "><tr><td ><b>Sheet2</b></td></tr></table>
<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:140.67px;" /><col style="width:126.42px;" /><col style="width:95.05px;" /><col style="width:111.21px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">Name</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">Received date</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">Email Sent 1</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">Email Sent 2</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">Email Sent 3</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Peter_KU</td><td style="text-align:right; ">26/06/2019</td><td style="text-align:right; ">24/06/2019</td><td style="background-color:#ffff00; text-align:right; ">26/06/2019</td><td style="text-align:right; ">23/06/2019</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >James_BR</td><td > </td><td style="text-align:right; ">23/05/2019</td><td style="text-align:right; ">23/05/2019</td><td style="text-align:right; ">23/05/2019</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >John_BL</td><td style="text-align:right; ">23/05/2019</td><td > </td><td style="text-align:right; ">23/05/2019</td><td style="text-align:right; ">23/05/2019</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >Peter_KU</td><td style="text-align:right; ">26/06/2019</td><td style="background-color:#ffff00; text-align:right; ">26/06/2019</td><td style="background-color:#ffff00; text-align:right; ">26/06/2019</td><td style="background-color:#ffff00; text-align:right; ">26/06/2019</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >James_BR</td><td style="text-align:right; ">23/05/2019</td><td style="text-align:right; ">23/05/2019</td><td > </td><td style="text-align:right; ">23/05/2019</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td >John_BL</td><td style="text-align:right; ">26/06/2019</td><td style="background-color:#b2a1c7; text-align:right; ">26/06/2019</td><td style="background-color:#b2a1c7; text-align:right; ">26/06/2019</td><td style="background-color:#b2a1c7; text-align:right; ">26/06/2019</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td >Peter_KU</td><td style="text-align:right; ">23/05/2019</td><td style="text-align:right; ">23/05/2019</td><td style="text-align:right; ">23/05/2019</td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td >James_BR</td><td style="text-align:right; ">26/06/2019</td><td style="background-color:#b8cce4; text-align:right; ">26/06/2019</td><td style="background-color:#b8cce4; text-align:right; ">26/06/2019</td><td style="background-color:#b8cce4; text-align:right; ">26/06/2019</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td >John_BL</td><td style="text-align:right; ">22/05/2019</td><td style="text-align:right; ">22/05/2019</td><td style="text-align:right; ">22/05/2019</td><td style="text-align:right; ">22/05/2019</td></tr></table>

-----


<table style="font-family:Arial; font-size:12pt; border-style: groove ;border-color:#0000FF;background-color:#fffcf9; color:#000000; "><tr><td ><b>Sheet1</b></td></tr></table>
<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:144.48px;" /><col style="width:128.32px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >Name</td><td >Received date count</td><td >Emails sent 1;2;3</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Peter_KU</td><td style="text-align:right; ">2</td><td style="text-align:right; ">4</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >James_BR</td><td style="text-align:right; ">1</td><td style="text-align:right; ">3</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >John_BL</td><td style="text-align:right; ">1</td><td style="text-align:right; ">3</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >B2</td><td >=COUNTIFS(Sheet2!$B$2:$B$10,TODAY(),Sheet2!$A$2:$A$10,A2)</td></tr><tr><td >C2</td><td >=SUMPRODUCT((Sheet2!$C$2:$E$10=TODAY())*(Sheet2!$A$2:$A$10=A2))</td></tr></table></td></tr></table>
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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