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

Sheet 1 (Expected result)
NameReceived date countEmails sent 1;2;3Queried answeredNot requiredCompleted
Peter_KU23332
James_BR13330
John_BL16310

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>


Sheet 2 (Data)
NameReceived dateEmail Sent 1Email Sent 2Email Sent 3QueriesNot requiredCompleted
Peter_KU25/06/201924/06/201925/06/201923/06/201925/06/201925/06/201925/06/2019
James_BR 23/05/201923/05/201923/05/201925/06/201925/06/2019
John_BL23/05/2019 23/05/201923/05/201925/06/2019
Peter_KU25/06/201925/06/201925/06/201925/06/201925/06/201925/06/201925/06/2019
James_BR23/05/201923/05/2019 23/05/201925/06/201925/06/2019
John_BL25/06/201925/06/201925/06/201925/06/201925/06/2019
Peter_KU23/05/201923/05/201923/05/2019 25/06/201925/06/2019
James_BR25/06/201925/06/201925/06/201925/06/201925/06/201925/06/2019
John_BL22/05/201922/05/201922/05/201922/05/201925/06/201925/06/2019

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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