Help With Formula

michaelwy

New Member
Joined
Sep 26, 2016
Messages
4
I have a worksheet that counts the number of days a person works each month. Everything was fine until I was asked to separate out the days a person only made emails or phone calls and no F2F (Face to Face) calls. The formula for Days worked was easy I just concatenated the person name with date and sorted and got the days worked. I have no idea how to get days that were not face to face.

I would appreciate any help you could provide.

The formula result I would like is in the column called Days no F2F


[TABLE="width: 543"]
<tbody>[TR]
[TD]Assigned[/TD]
[TD]Subject[/TD]
[TD]Date[/TD]
[TD]Combined[/TD]
[TD]Days Worked[/TD]
[TD]Days no F2F[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/1/2018[/TD]
[TD]Person 143160[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/1/2018[/TD]
[TD]Person 143160[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/1/2018[/TD]
[TD]Person 143160[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]Phone[/TD]
[TD="align: right"]3/2/2018[/TD]
[TD]Person 143161[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]Phone[/TD]
[TD="align: right"]3/5/2018[/TD]
[TD]Person 143164[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/5/2018[/TD]
[TD]Person 143164[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]Phone[/TD]
[TD="align: right"]3/12/2018[/TD]
[TD]Person 143171[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/12/2018[/TD]
[TD]Person 143171[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/14/2018[/TD]
[TD]Person 143173[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/14/2018[/TD]
[TD]Person 143173[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/14/2018[/TD]
[TD]Person 143173[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/14/2018[/TD]
[TD]Person 143173[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/14/2018[/TD]
[TD]Person 143173[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]Phone[/TD]
[TD="align: right"]3/15/2018[/TD]
[TD]Person 143174[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/15/2018[/TD]
[TD]Person 143174[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/15/2018[/TD]
[TD]Person 143174[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/15/2018[/TD]
[TD]Person 143174[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/15/2018[/TD]
[TD]Person 143174[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]email[/TD]
[TD="align: right"]3/15/2018[/TD]
[TD]Person 143174[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]email[/TD]
[TD="align: right"]3/15/2018[/TD]
[TD]Person 143174[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/16/2018[/TD]
[TD]Person 143175[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/16/2018[/TD]
[TD]Person 143175[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]F2F[/TD]
[TD="align: right"]3/16/2018[/TD]
[TD]Person 143175[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]Phone[/TD]
[TD="align: right"]3/19/2018[/TD]
[TD]Person 143178[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]email[/TD]
[TD="align: right"]3/19/2018[/TD]
[TD]Person 143178[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi,

if a pivot isn't feasible try this array formula:

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style=";">Assigned</td><td style=";">Subject</td><td style=";">Date</td><td style=";">Combined</td><td style=";">Days Worked</td><td style=";">Days no F2F</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">1-3-2018</td><td style=";">Person 143160</td><td style="text-align: right;;">1</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">1-3-2018</td><td style=";">Person 143160</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">1-3-2018</td><td style=";">Person 143160</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">5</td><td style="color: #FF0000;;">Person 1</td><td style="color: #FF0000;;">Phone</td><td style="text-align: right;color: #FF0000;;">2-3-2018</td><td style="color: #FF0000;;">Person 143161</td><td style="text-align: right;color: #FF0000;;">1</td><td style="text-align: right;color: #FF0000;;">1</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">6</td><td style=";">Person 1</td><td style=";">Phone</td><td style="text-align: right;;">5-3-2018</td><td style=";">Person 143164</td><td style="text-align: right;;">1</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">7</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">5-3-2018</td><td style=";">Person 143164</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">8</td><td style=";">Person 1</td><td style=";">Phone</td><td style="text-align: right;;">12-3-2018</td><td style=";">Person 143171</td><td style="text-align: right;;">1</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">9</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">12-3-2018</td><td style=";">Person 143171</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">10</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">14-3-2018</td><td style=";">Person 143173</td><td style="text-align: right;;">1</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">11</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">14-3-2018</td><td style=";">Person 143173</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">12</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">14-3-2018</td><td style=";">Person 143173</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">13</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">14-3-2018</td><td style=";">Person 143173</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">14</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">14-3-2018</td><td style=";">Person 143173</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">15</td><td style=";">Person 1</td><td style=";">Phone</td><td style="text-align: right;;">15-3-2018</td><td style=";">Person 143174</td><td style="text-align: right;;">1</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">16</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">15-3-2018</td><td style=";">Person 143174</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">17</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">15-3-2018</td><td style=";">Person 143174</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">18</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">15-3-2018</td><td style=";">Person 143174</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">19</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">15-3-2018</td><td style=";">Person 143174</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">20</td><td style=";">Person 1</td><td style=";">email</td><td style="text-align: right;;">15-3-2018</td><td style=";">Person 143174</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">21</td><td style=";">Person 1</td><td style=";">email</td><td style="text-align: right;;">15-3-2018</td><td style=";">Person 143174</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">22</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">16-3-2018</td><td style=";">Person 143175</td><td style="text-align: right;;">1</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">23</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">16-3-2018</td><td style=";">Person 143175</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">24</td><td style=";">Person 1</td><td style=";">F2F</td><td style="text-align: right;;">16-3-2018</td><td style=";">Person 143175</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">25</td><td style="color: #FF0000;;">Person 1</td><td style="color: #FF0000;;">Phone</td><td style="text-align: right;color: #FF0000;;">19-3-2018</td><td style="color: #FF0000;;">Person 143178</td><td style="text-align: right;color: #FF0000;;">1</td><td style="text-align: right;color: #FF0000;;">1</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">26</td><td style="color: #FF0000;;">Person 1</td><td style="color: #FF0000;;">email</td><td style="text-align: right;color: #FF0000;;">19-3-2018</td><td style="color: #FF0000;;">Person 143178</td><td style="text-align: right;color: #FF0000;;">0</td><td style="text-align: right;color: #FF0000;;">0</td></tr></tbody></table><p style="width:3,6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">F2</th><td style="text-align:left">{=IF(<font color="Blue">IFERROR(<font color="Red">MATCH(<font color="Green">"F2F",IF(<font color="Purple">(<font color="Teal">$A$2:$A$26=A2</font>)*(<font color="Teal">$C$2:$C$26=C2</font>),$B$2:$B$26,""</font>),0</font>),0</font>),0,(<font color="Red">COUNTIFS(<font color="Green">$A$2:A2,$A2,$C$2:C2,C2</font>)=1</font>)+0</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.
<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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