+ Reply to Thread
Results 1 to 8 of 8

COUNTIF and VLOOKUP

  1. #1
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    COUNTIF and VLOOKUP

    Hi All,

    I have a list of jobs per employee throughout the year, at the end of the list I want to do a count based on customer, however the customer names are not on this list.

    So at the moment I have the entire list replicated with each cell having a VLOOKUP to return the customer. then just do a countif at the end of that table.

    I was wondering is there a way to do this without duplicating the entire table, as these are huge tables

    I was thinking some sort of =COUNTIF(VLOOKUP("JOB","RETURN CUSTOMER),"CUSTOMER"), however i would need this to run this formula on every line of the list to find out if the customer matches the countif criteria

    Hope this makes sense

    Thanks in advance

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,767

    Re: COUNTIF and VLOOKUP

    how do you link the employee to the customer ?

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Last edited by etaf; 12-12-2014 at 08:37 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: COUNTIF and VLOOKUP

    1234568900

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,767

    Re: COUNTIF and VLOOKUP

    can you attach the workbook with the two sheets and in the 3rd sheet the results you want manually entered - as requested

  5. #5
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: COUNTIF and VLOOKUP

    Thanks for your interest,

    Please see attached example workbook, I have been trying different things and have found another problem

    On "sheet 1" is the table of employees and the job number they worked on, just below is the list of customers and the amount of days the employee worked for that customer. the customer data can be found on Sheet 2

    However a simple vlookup wont work, as seen in the example, in column B, both 9999 and 7777 are the same customer but different job numbers, my vlookup stops after finding 9999 and doesnt look for 7777.

    Hope this makes sense, not sure if its possible, there are of course work arounds but i try to keep my workbooks neat and tiday
    Attached Files Attached Files

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,767

    Re: COUNTIF and VLOOKUP

    i'm sure theres a better way
    BUT you could create another sheet , which uses the jobnumber and looks up the customer and then count that sheet
    i have added in the same sheet - just to show simply
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: COUNTIF and VLOOKUP

    Thanks for your time, I was aware of the way you have suggested, which is looking like the best way.

    I was just looking for another way to avoid making an already large workbook larger. Not to worry, it works and thats whats important

    Thanks again

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,767

    Re: COUNTIF and VLOOKUP

    hopefully another member may have an alternative

+ 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. [SOLVED] Vlookup and Countif Together
    By Rocky_123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-09-2013, 02:06 AM
  2. Countif & vlookup
    By pmd in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2013, 01:21 PM
  3. Look up, vlookup or countif???
    By fosugo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-15-2012, 06:13 PM
  4. [SOLVED] Vlookup & Countif help
    By sumonrezadu in forum Excel General
    Replies: 6
    Last Post: 01-25-2010, 09:27 AM
  5. Not sure if this is Vlookup, countif or even both...
    By the-kiddy in forum Excel General
    Replies: 7
    Last Post: 11-24-2009, 06:19 PM

Tags for this Thread

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