+ Reply to Thread
Results 1 to 6 of 6

Counting Duplicate Cells in different columns

  1. #1
    Registered User
    Join Date
    08-05-2007
    Posts
    9

    Counting Duplicate Cells in different columns

    Greetings,
    I've been racking my brain for the longest time and I am trying to get something to work in excel but unfortunatley I can't figure it out and neither can my co-workers
    I have 6 columns on 1 sheet that evenly divides my staff into seperate shifts. On another sheet I have 1 column that shows what individuals are qualified to perform certain tasks.
    I would like to have a cell on my first sheet that compares that columns data with the list on the second sheet and return a number the number of people that are qualified for that shift.

    EXAMPLE

    Worksheet 1

    Qual # (this is what I need to count from the second sheet)

    Section 1 Section 2 Section 3 Section 4 Section 5

    Bob Jason Kieth AL Cindy
    Jill Mark John Sandy Bice
    Sue Suzy Jody Karen Kevin
    Frank Alen Mary Cathy Bill
    Mike Angel Connie Lynn Marcos
    Tom Larry Rebecca Megan Robert



    Qualified

    Mike
    Alen
    Sandy
    Bill
    Bob
    Rebecca
    Megan
    Robert
    Connie

    As you can see all columns are in no particular order so I need each column on the first sheet to lookup every cell in a given column on the second sheet and output the number of qualified personnel.


    Thank you so much in advance for any help. I've attached an .xls as my example if it is easier for anyone to explain to me how to get this done.

    Very Respectfully,

    Steve
    Attached Files Attached Files
    Last edited by SailorGuy; 08-05-2007 at 11:30 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064
    Sort the list of Qualified people into alphabetic order.

    Then...

    In cell B5 enter

    =COUNTIF(Qualification!A3:A11,B6)+COUNTIF(Qualification!A3:A11,B7)+COUNTIF(Qualification!A3:A11,B8)+COUNTIF(Qualification!A3:A11,B9)+COUNTIF(Qualification!A3:A11,B10)+COUNTIF(Qualification!A3:A11,B11)

    In cell D5 enter

    =COUNTIF(Qualification!A3:A11,D6)+COUNTIF(Qualification!A3:A11,D7)+COUNTIF(Qualification!A3:A11,D8)+COUNTIF(Qualification!A3:A11,D9)+COUNTIF(Qualification!A3:A11,D10)+COUNTIF(Qualification!A3:A11,D11)

    In cell F5 enter

    =COUNTIF(Qualification!A3:A11,F6)+COUNTIF(Qualification!A3:A11,F7)+COUNTIF(Qualification!A3:A11,F8)+COUNTIF(Qualification!A3:A11,F9)+COUNTIF(Qualification!A3:A11,F10)+COUNTIF(Qualification!A3:A11,F11)

    In cell H5 enter

    =COUNTIF(Qualification!A3:A11,H6)+COUNTIF(Qualification!A3:A11,H7)+COUNTIF(Qualification!A3:A11,H8)+COUNTIF(Qualification!A3:A11,H9)+COUNTIF(Qualification!A3:A11,H10)+COUNTIF(Qualification!A3:A11,H11)


    In cell J5 enter

    =COUNTIF(Qualification!A3:A11,J6)+COUNTIF(Qualification!A3:A11,J7)+COUNTIF(Qualification!A3:A11,J8)+COUNTIF(Qualification!A3:A11,J9)+COUNTIF(Qualification!A3:A11,J10)+COUNTIF(Qualification!A3:A11,J11)

    This should count the number of people in columns B D F H J who are in the Qualification list
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-05-2007
    Posts
    9
    Special-K,
    Thank you for the prompt response. Not quite what I'm looking for but close.

    The .xls that is attached is extremely basic to what I am actually working with. The sheet that I'm working with has the names of my ship's crew (Navy) and I really didn't want to post that.

    The Sections list has six sections and approxiametly 40 people in each section. On the qualifications page there could be 100+ personnel that would be qualified for a particular job. On the qualifications page it is already sorted by alphabetical order. There will be multiple qualifications to compare but once I can get one working I can figure out the rest by changing the different cell references.

    So I'm looking for something a little more complex that would compare mulitple cells at one vice individually doing it like that.

    Any other suggestions?
    Last edited by SailorGuy; 08-05-2007 at 12:14 PM.

  4. #4
    Forum Contributor
    Join Date
    07-05-2007
    Location
    Lexington, MA
    Posts
    302

    Sum of results with a Helper Rectangle of functions

    Here is an approach that uses Fill-Down functions, as a start.
    See also the attached workbook.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-05-2007
    Posts
    9
    Great thanks.
    Almost though. This would work but I would end up doing a TON of helper cells and replicating each section for each qualification.

    What I really need is a formula or something in VBA to place a single formula (or call to a VBA function) in 1 cell and it extract the information that I'm looking for.

    I REALLY hate to be a bother. Am I asking to much or is this possible?

    BTW sorry for the delayed responses. Internet is extremely slow when you are out in the middle of the ocean.

  6. #6
    Forum Contributor snasui's Avatar
    Join Date
    07-15-2007
    Location
    Songkhla, Thailand
    MS-Off Ver
    2010, 365
    Posts
    167
    How about this,

    See attached file.
    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)

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