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


AssignedSubjectDateCombinedDays WorkedDays no F2F
Person 1F2F3/1/2018Person 14316010
Person 1F2F3/1/2018Person 14316000
Person 1F2F3/1/2018Person 14316000
Person 1Phone3/2/2018Person 14316111
Person 1Phone3/5/2018Person 14316410
Person 1F2F3/5/2018Person 14316400
Person 1Phone3/12/2018Person 14317110
Person 1F2F3/12/2018Person 14317100
Person 1F2F3/14/2018Person 14317310
Person 1F2F3/14/2018Person 14317300
Person 1F2F3/14/2018Person 14317300
Person 1F2F3/14/2018Person 14317300
Person 1F2F3/14/2018Person 14317300
Person 1Phone3/15/2018Person 14317410
Person 1F2F3/15/2018Person 14317400
Person 1F2F3/15/2018Person 14317400
Person 1F2F3/15/2018Person 14317400
Person 1F2F3/15/2018Person 14317400
Person 1email3/15/2018Person 14317400
Person 1email3/15/2018Person 14317400
Person 1F2F3/16/2018Person 14317510
Person 1F2F3/16/2018Person 14317500
Person 1F2F3/16/2018Person 14317500
Person 1Phone3/19/2018Person 14317811
Person 1email3/19/2018Person 14317800

<tbody>
</tbody>
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

jorismoerings

Well-known Member
Joined
Jul 4, 2014
Messages
1,284
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 />
 

Watch MrExcel Video

Forum statistics

Threads
1,109,333
Messages
5,528,089
Members
409,801
Latest member
Jamaira

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top