If same ticket is repeated multiple times on single day it should count as one but if same tickets is worked on different date then it should count as

fathima

New Member
Joined
Jan 29, 2020
Messages
37
Office Version
  1. 365
Platform
  1. Windows
I would like to count values based on dates with 2 criteria's.
I need the count of unique tickets worked by agent on single day for whole month
(If same ticket is repeated multiple times on single day it should count as one but if same tickets is worked on different date then it should count as 2 depending on previous value(Previous value+1).
Please help.
The formula used here is counting unique tickets for whole month
Formula used: 2 attempts made but same result
1st attempt : =SUM(IF((H6=$H$6:$H$27)*($E$6:$E$27<=DATE(2020, 1, 31)), 1/COUNTIFS($H$6:$H$27, H6, $F$6:$F$27, $F$6:$F$27, $E$6:$E$27, "<="&DATE(2020, 1, 31)), ""))
2nd attempt: =SUM(--(FREQUENCY(IF(H6=$H$6:$H$25, COUNTIF($F$6:$F$25, "<"&$F$6:$F$25), ""), (COUNTIF($F$6:$F$25, "0))
(wrong value)
Date TICKETS DISPATCHED ASSIGNEE Total ticket Correct value(to be)
2020-01-24 INC123 Pretty Deena Mathew 2 3
2020-01-24 INC123 Pretty Deena Mathew 2 3
2020-01-25 INC123 Pretty Deena Mathew 2 3
2020-01-24 inc1234 Pretty Deena Mathew 2 3
2020-01-25 ritm012 Rachit Sharma 1 1
Here, first 2 rows value should count 2 as same ticket is worked on single day by one agent,
3rd row should be counting 3 as same ticket is worked on NEXT DAY..

This is very important to resolve.
Please assist
Thanks in advance
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Is this what you need?

Book1
EFGHI
5DateTICKETS DISPATCHEDASSIGNEETotal ticket
624/01/2020INC123Pretty Deena Mathew3
724/01/2020INC123Pretty Deena Mathew3
825/01/2020INC123Pretty Deena Mathew3
924/01/2020inc1234Pretty Deena Mathew3
1025/01/2020ritm012Rachit Sharma1
Sheet2
Cell Formulas
RangeFormula
I6:I10I6{=SUM(IFERROR(1/COUNTIFS($E$6:$E$25,$E$6:$E$25,$F$6:$F$25,$F$6:$F$25,$H$6:$H$25,H6),0))}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
Hi Jason, Appreciate your help !!!!
Its perfectly correct in your sheet but when i pull this formula and assign same ticket to different agent , values are changing for all agents under count. This should not be happening.

DateTICKETS DISPATCHEDASSIGNEEcount
2020-01-24inc123Pretty Deena Mathew4
2020-01-24inc123Pretty Deena Mathew4
2020-01-25inc123Pretty Deena Mathew4
2020-01-26inc123Pretty Deena Mathew4
2020-01-26inc123Fathima Balquees3
2020-01-26inc000Fathima Balquees3



Here, actual count for pretty should be 3 and for fathima should be 2 but when i pull the same formula i am get above values under count.
Please check and assist

Thankyou
 
Upvote 0
Welcome to the MrExcel board!

I see that you have Office 365 so you could have the new UNIQUE and FILTER functions. If so, here is another option to try.

A_MrExcel.xlsm
EFGHI
5DateTICKETS DISPATCHEDASSIGNEETotal ticket
624/01/2020INC123Pretty Deena Mathew3
724/01/2020INC123Pretty Deena Mathew3
825/01/2020INC123Pretty Deena Mathew3
924/01/2020inc1234Pretty Deena Mathew3
1025/01/2020ritm012Rachit Sharma1
Count
Cell Formulas
RangeFormula
I6:I10I6=COUNTA(UNIQUE(FILTER(E$6:E$10&"|"&F$6:F$10,H$6:H$10=H6)))
 
Upvote 0
Wow, its perfectly working but i see the default value is 1 when pulling formula , Is there any way to set value to 0 by default
 
Upvote 0
Is this what you mean?
=IF(H6="","",COUNTA(UNIQUE(FILTER(E$6:E$10&"|"&F$6:F$10,H$6:H$10=H6,""))))
or this
=IF(H6="",0,COUNTA(UNIQUE(FILTER(E$6:E$10&"|"&F$6:F$10,H$6:H$10=H6,0))))
 
Upvote 0
This one!!! =IF(H6="",0,COUNTA(UNIQUE(FILTER(E$6:E$10&"|"&F$6:F$10,H$6:H$10=H6,0)))) -
Thankyou so much Peter!
You have being of great help. Really appreciate your talent
 
Upvote 0
You are very welcome. Thanks for the follow-up. :)
 
Upvote 0
hi, If i need to show agents who have worked on total tickets so far in another sheet, what would be the formula.
Here is the example for 2 agents

Pretty Deena Mathew3
Pretty Deena Mathew3
Fathima Balquees2
Pretty Deena Mathew3
Pretty Deena Mathew3
Fathima Balquees2
Fathima Balquees2

here, single agent has same value.
I am trying to show this in another sheet for about 60 agents

EG:
Pretty Deena Mathew3
Fathima Balquees2
 
Upvote 0
Is this what you are looking for?

fathima lookup.xlsm
AB
1
2Pretty Deena Mathew3
3Pretty Deena Mathew3
4Fathima Balquees2
5Pretty Deena Mathew3
6Pretty Deena Mathew3
7Fathima Balquees2
8Fathima Balquees2
Sheet1


fathima lookup.xlsm
AB
1
2Pretty Deena Mathew3
3Fathima Balquees2
Sheet2
Cell Formulas
RangeFormula
B2:B3B2=VLOOKUP(A2,Sheet1!A$2:B$100,2,0)
 
Upvote 0

Forum statistics

Threads
1,215,432
Messages
6,124,858
Members
449,194
Latest member
HellScout

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