+ Reply to Thread
Results 1 to 9 of 9

Comparing 2 lists and counting data from the first worksheet to fill up a second worksheet

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Comparing 2 lists and counting data from the first worksheet to fill up a second worksheet

    Hi Guys!

    I'm a noob and need help here. I've got a spreadsheet with 2 worksheets in it.

    On the first one we've got:
    Name of the agent | petition REf num | Task
    Each petition can generate several tasks, one line per task.

    John Doe | XXXX-YYYY | NCO
    John Doe | | RIL
    John Doe | XERT-WWWW | RMT
    Jane Doe | QSZE-AQWC | RIL


    On the second worksheet:
    Complete list of agents | number of petitions | Status

    John Doe | 2 | OK
    Jane Doe | 1 | [BLANK]

    I want to be able to fill in the second worksheet automatically. For each agent in my worksheet 2, I want to check if they appear in worksheet 1 and if so count the number of petitions related.

    I don't know where to start :'(

    Thanks in advance for your help.
    Attached Files Attached Files
    Last edited by stouflette; 08-22-2014 at 01:02 PM.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Comparing 2 lists and counting data from the first worksheet to fill up a second works

    Hi stouflette,
    Welcome to the Forum.

    Attach a sample workbook. 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 use the paperclip icon to open the upload window.

    View Pic
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    08-22-2014
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Comparing 2 lists and counting data from the first worksheet to fill up a second works

    Thank you Sktneer!

    I've attached a file, I hope it's clear enough now.

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Comparing 2 lists and counting data from the first worksheet to fill up a second works

    Hope this helps


    Cheers
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-22-2014
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Comparing 2 lists and counting data from the first worksheet to fill up a second works

    Hello!

    You rock Azumi.

    Thank you so much for your help, really appreciated.

    I changed the tab a bit (the number of lines will changed in the tab week_1_after), I can get my head around the count of unique ref per agent. I managed to find a way to count the "tasks minus noc" and "noc".
    Attached Files Attached Files

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Comparing 2 lists and counting data from the first worksheet to fill up a second works

    Maybe like this? Im simplified the formula but I can't remove 0 results as blank results, hope you see the main formula is...


    Cheers
    Attached Files Attached Files

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Comparing 2 lists and counting data from the first worksheet to fill up a second works

    To hide 0's from the formula cells, custom format formula cells as 0;-0;;@

  8. #8
    Registered User
    Join Date
    08-22-2014
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Comparing 2 lists and counting data from the first worksheet to fill up a second works

    Hey!

    Thank you for the super fast reply. We are nearly there! The B column is still not returning the number I'm looking for. For instance, Clark Kent should have 4 in the "Ref nb" because he has 4 different refs (140815-001580 ; 140716-001545 ;
    140813-002073 ; 140725-002015 ; note that some agents can work on the same REF incident at different stages). The numbers returned in C and D are perfect.

    Cheers
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-22-2014
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Comparing 2 lists and counting data from the first worksheet to fill up a second works

    Hello!

    finally made it work! *\o/*

    Thanks again for your help guys.
    Attached Files Attached Files

+ 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. Comparing Worksheet Data
    By jg83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2014, 12:09 PM
  2. [SOLVED] Comparing two sets of data in the same worksheet
    By Betty in NJ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-27-2013, 12:13 AM
  3. [SOLVED] Comparing and mark data from two different worksheet
    By pyol17 in forum Excel General
    Replies: 10
    Last Post: 07-10-2012, 07:48 AM
  4. Comparing data in 2 worksheet
    By crz in forum Excel General
    Replies: 2
    Last Post: 08-02-2011, 12:59 AM
  5. Comparing two worksheet data
    By ramki in forum Excel General
    Replies: 0
    Last Post: 08-06-2008, 06:04 AM

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