+ Reply to Thread
Results 1 to 8 of 8

How to find consecutive 3 days and 2 days particular customer is red

  1. #1
    Registered User
    Join Date
    04-27-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    57

    How to find consecutive 3 days and 2 days particular customer is red

    Hi Team,

    I need to find consecutive 3 days and 2 days for a particular customer if it red for any of the 3 metrics. Once I filter 2 days it should filter 2 days and if 2 days it should filter 3 days.

    Where there is not data in any metric tag as blank.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,184

    Re: How to find consecutive 3 days and 2 days particular customer is red

    Hi,
    you can use a pivot for each metrix like in the attached and a formula to find the 2-match:

    in J5
    =IFERROR(IF(OR(AND(L5=L4,M5=M4+1),AND(L5=L6,M5=M6-1)),"2-MATCH","No Match"),"")

    and the 3-match
    K5 =IF(AND(L5=L4,M4=M5-1,L5=L6,M6=M5+1),"3-MATCH","")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-27-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: How to find consecutive 3 days and 2 days particular customer is red

    Hi Belinda,

    Basically, I want to know how many customer are consecutive 3days and 2 days red if any one of the or 3 metrics are red. and need to combine 3 and 2 days consecutive days red as overall. Hope you understand the requirement.
    Last edited by sriku; 10-12-2020 at 02:51 AM.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to find consecutive 3 days and 2 days particular customer is red

    Sriku,

    You have been given a solution by Belinda. It may not be what you want, but you have not commented on it and said why is does not work. Similarly you are asked to provide a model answer of what you expect, so people know what is trying to be created. I can not see that as well. Help yourself by trying to be a bit more prescriptive to people who are trying to help you.

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,184

    Re: How to find consecutive 3 days and 2 days particular customer is red

    Hi,
    I added columns in the attached to represent 3 matrixes * 2/3 days.

    I filled in the Matrix 1 & 2 , column F-I to show which customer has 2/3 consecutive dates (based on the pivottable)

    F3 =IF(AGGREGATE(14,6,(($B3=Sheet2!$C$5:$C$45)*(Sheet2!$B$5:$B$44<>"")*(ROW(Sheet2!$C$5:$C$45))),1)>0,"Yes","")

    G3 =IF(AGGREGATE(14,6,(($B3=Sheet2!$C$5:$C$45)*(Sheet2!$A$5:$A$44<>"")*(ROW(Sheet2!$C$5:$C$45))),1)>0,"Yes","")

    H3 =IF(AGGREGATE(14,6,(($B3=Sheet2!$N$5:$N$659)*(Sheet2!$M$5:$M$659<>"")*(ROW(Sheet2!$M$5:$M$659))),1)>0,"Yes","")

    I3=IF(AGGREGATE(14,6,(($B3=Sheet2!$N$5:$N$659)*(Sheet2!$L$5:$L$659<>"")*(ROW(Sheet2!$M$5:$M$659))),1)>0,"Yes","")

    L3 =IF(COUNTIF(F3:K3,"YES")>0,"Yes","")

    I left Matrix 3 empty for you to continue, you can do a pivotable and apply the formula the same as I did with the other two...


    ***I have cut the number of lines in the file since there were over 50k lines that exceeded the size of file that can be uploaded to the forum...In order to show my point I erased only the "Green" lines....
    Attached Files Attached Files
    Last edited by Limor_OP; 10-12-2020 at 05:41 PM.

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,184

    Re: How to find consecutive 3 days and 2 days particular customer is red

    And here is the formula to count the overall red customers:
    =COUNT(ROW($B$1:$B$2179)/((MATCH($B$3:$B$2179,$B$3:$B$2179,0)=ROW($B$1:$B$2179))*($L$3:$L$2179="yes")))

    you can either do it with a pivot table like I show on column "N".

  7. #7
    Registered User
    Join Date
    04-27-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: How to find consecutive 3 days and 2 days particular customer is red

    Thanks Belinda for your response

  8. #8
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,184

    Re: How to find consecutive 3 days and 2 days particular customer is red

    You're welcome. Will be happy to know if this was helpful...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 09-12-2020, 11:03 AM
  2. Replies: 7
    Last Post: 08-19-2019, 07:28 AM
  3. Replies: 15
    Last Post: 06-17-2016, 01:59 AM
  4. [SOLVED] Find out which Team did not attend for 3 consecutive days
    By suchetherrah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2015, 12:01 PM
  5. Replies: 17
    Last Post: 08-03-2015, 06:15 AM
  6. [SOLVED] Find days between days, but including the starting date.
    By Jocamo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2015, 10:37 PM
  7. Employee Time Tracking - Sick days & Consecutive Days
    By notaguru6 in forum Excel General
    Replies: 6
    Last Post: 08-09-2013, 12:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1