+ Reply to Thread
Results 1 to 8 of 8

Vba macro filter data set

  1. #1
    Registered User
    Join Date
    01-10-2017
    Location
    dhaka
    MS-Off Ver
    2013
    Posts
    5

    Vba macro filter data set

    I have 25000[approx,varies each day] records of data entry done by agents. And then 1st tier qc occurs by phone calling. They give status of data entry as accepted or rejected.but i need to do 2nd tier qc of 1% or more[varies if data entry size is small/large] from qc done by 1st tier to check their provided status.

    Col1:agent name of 1st tier qc
    Col 2: online requester name
    Col3: add
    Col4: ph
    Col5: amnt
    Col6: date of order
    Col7: item
    Col8: qc status accepted/rejected
    Col9: serial no.

    I want to qc 2nd tier every day of certain percent for each 1st tier qc agents and qc status.need help in developing this by vba/macro or any formula.

    Ex: after i select 2% from drop down/radio button. 2% of 1000 item is selected with 10 item qc by mr x, 10 by mr y and so on,consisting 5 accepted and 5 rejected item ordered. And then extract or select that list to another sheet.
    Last edited by kanchan_mita; 06-19-2019 at 02:44 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Vba macro filter data set

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    01-10-2017
    Location
    dhaka
    MS-Off Ver
    2013
    Posts
    5

    Re: Vba macro filter data set

    Attachment 628928Attachment 628929 need urgent help. my excel screenshot is given. thanks

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Vba macro filter data set

    1. As you can read in post #2, we ask NOT to attach pictures but a worksheet
    2. As this forum is working with volunteers helping you on their spare time, you cannot expect them to be waiting for your question to answer urgently. If you need an urgent response, commercial services will be more then happy to help

  5. #5
    Registered User
    Join Date
    01-10-2017
    Location
    dhaka
    MS-Off Ver
    2013
    Posts
    5

    Re: Vba macro filter data set

    Dear Pepe Le Mokko sorry for that. my exceL is attached.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Vba macro filter data set

    Perhaps this formula based proposal will help.
    This proposal employs two helper columns per agent on the 'orders' sheet which are populated using: =IF(AND($P3=Q$1,$O3=Q$2),RAND(),"")
    It also employs three helper columns on the '2nd tier qc' sheet.
    The helper labeled 'Column' is populated using: =IF(P11=0,"",AGGREGATE(15,6,(COLUMN(Q$1:V$1)-COLUMN(P$1))/(orders!Q$1:V$1=P11)/(orders!Q$2:V$2=O11),1))
    'Random()#' is populated using: =IF(P11=0,"",AGGREGATE(15,6,INDEX(orders!Q$3:V$302,,Q11),COUNTIFS(P$11:P11,P11,O$11:O11,O11)))
    'Row' is populated using: =IF(P11=0,"",MATCH(R11,INDEX(orders!Q$3:V$302,,Q11),0))
    In the output table 'Serial' is populated using: =IF(P11=0,"",INDEX(orders!A$3:A$302,S11))
    'MISSDN':'Order date' are populated using: =IF($P11=0,"",INDEX(orders!B$3:B$302,MATCH($A11,orders!$A$3:$A$302,0)))
    'Status' is populated using: =IF(P11=0,"",IF(COUNTIFS(P$11:P11,P11)<=B$7,A$7,A$8))
    '1st hand qc by' is populated using: =INDEX(N$1:N$4,MATCH(ROW(A1)-1,O$1:O$4))
    Note that much of the table is formatted to hide zeros by using white font.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    01-10-2017
    Location
    dhaka
    MS-Off Ver
    2013
    Posts
    5

    Re: Vba macro filter data set

    thanks for the feedback, but i need to generate the 2nd tier qc list in a automated way, so that if the emp no. increase in 1 st tier and new status comes up then it wont be a problem.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Vba macro filter data set

    Gave this a few days to see if anyone else would chime in. Here's an updated version that will add names, although it does not address the issue of adding a new status.
    Some of the formula updates include:
    1. On 2nd tier qc sheet V2:V8 =IFERROR(IF(MATCH(0,INDEX(COUNTIF(V$1:V1,orders!P$3:P$3000),,),)>COUNTA(orders!P$3:P$3000),"",INDEX(orders!P$3:P$3000,MATCH(0,INDEX(COUNTIF(V$1:V1,orders!P$3:P$3000),,),))),"")
    2. P11:P26 =IF(ROW(A1)>PRODUCT(B$6:B$8),"",(INDEX(V$2:V$8,MATCH(ROW(A1)-1,W$2:W$8))))
    3. On the Orders sheet Q1:Z1 =IF(COLUMN(A1)>PRODUCT('2nd tier qc'!$B6:$B7),"",INDEX('2nd tier qc'!$V2:$V8,MATCH(COLUMN(A1)-1,'2nd tier qc'!$X2:$X8)))
    Test by putting a new name in some of the rows in column P on the Orders sheet.
    Let us know if you have any questions.

+ 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. Macro to filter Data Shows details but data disappears or does not show all
    By AmandaM73 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2019, 12:20 AM
  2. Macro to filter data and then create a chart with information from this data
    By bent_dietrich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-11-2014, 04:28 AM
  3. Macro to filter data and copy the data's from multiple columns based on the criteria
    By millatshawn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2014, 08:14 AM
  4. Macro that can filter excel data and copy the filtered data to another worksheet
    By glide2131 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 02:43 PM
  5. [SOLVED] MACRO to FILTER data then copy the data to another SHEET.
    By mareuko31 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-15-2012, 08:07 PM
  6. Need a macro to filter data then email filtered data through lotus notes (or print)
    By Crimson Bourne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2012, 01:26 PM
  7. Macro to Filter Data
    By logosys in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2008, 03:59 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