+ Reply to Thread
Results 1 to 21 of 21

Looking up clients

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Looking up clients

    Here is my dilemma.

    My boss wants me to create a "table" where i generate WHO the employee's clients ARE and the hours that the employee spent with them. I have all of the raw data, where the columns are as follows:

    A=DATE
    B=EMPLOYEE NAME
    C=CLIENT
    D=ACTIVITY DESCRIPTION
    E=HOURS
    F=DEPARTMENT

    So in short the table would work as: Type in employee name>>>>Table looks up name, then one column generates a client list, then the next column generates the total amount of hours of each client. A=Client, B=Hours

    Is this wishful thinking or can this be done?

    PS if this can be done, he would probably make me have the hours broken down by department. So it would be A=Client, B-G=Departments, H=Hours

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Looking up clients

    Yes, it can be done. Attach a sample workbook so I can tell you how to do it for your data layout.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Looking up clients

    Hi

    This sounds like a job for a pivot table.

    A quick run through:
    Highlight your data range. Go to the Insert tab and click Pivot Table (left hand side).

    On the right hand side of the screen, drag the Employee Name in to the Report Filter box. Drag Client in to the Row Labels box, Drag Department in to the Column Labels box, drag Hours in to the Values box.

    There's plenty of information online about PTs. They are an extremely useful and powerful tool in Excel. They are easy to set up and well worth learning.

    Cheers, Rob.

  4. #4
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Re: Looking up clients

    Sample.xls


    Here you go. Thanks Pete

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,755

    Re: Looking up clients

    If you have the raw data you describe in A:F then a pivot table would be a good solution. It's a very powerful built-in feature. See attached for an example. You can use the dropdwon and checkboxes to select whichever employees you want to show, if not all of them at once.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Re: Looking up clients

    Thanks Rob for the help. However. my boss hates pivot Tables, so unless there is no other option I can't use it.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Looking up clients

    Ah, I thought you might have done a mock-up of how you would like the secondary table to appear. It will take me a bit longer to set this up.

    Pete

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Looking up clients

    Your data shows no variation between Employee and Department, i.e. Ruby is always in Dept. FA, Rosa is in Dept. M, so I'm not really sure how you want the data to look. Can you do a mock-up of the expected output?

    Pete

  9. #9
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Re: Looking up clients

    Sample.xls

    Pete

    Here is the mock up. Changed some numbers and clients to give variation.

  10. #10
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,646

    Re: Looking up clients

    Take a look at these examples
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  11. #11
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Re: Looking up clients

    That could work, but its Pivot Tables...Boss does not want Pivot Tables

  12. #12
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,646

    Re: Looking up clients

    Look at formulas in E24:H25

  13. #13
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Looking up clients

    Are you really using Excel 2003? I have it working and was just about to post the file when I noticed your version number in your profile - I've used some functions which will not work in XL2003, so I'll need to change them if you need it to be compatible with that version.

    Pete

  14. #14
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Re: Looking up clients

    I have Excel 2003 version and excel 2010 starter. Any problems if its 2010 starter?

  15. #15
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Looking up clients

    No. Try the attached file - just change the employee name using the drop-down in C1 of Sheet2.

    Hope this helps.

    Pete

    EDIT: purely formula-driven, as requested.

    Pete
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Re: Looking up clients

    @Popipipo

    The Sumproduct helps with the hours. But the company has over 300 clients. I need the table to generate the clients because not every employee works with each client. So this means I have to list 300 clients, which i'm trying to avoid and what the boss doesn't want.

  17. #17
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,646

    Re: Looking up clients

    Convince your boss that a PivotTable still the best and easiest solution.

  18. #18
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Re: Looking up clients

    PETE!! I BOW TO YOU!

    Could you explain how? esp. what G and H columns are used for and how to get the name in the chart to work?
    Last edited by Murphy15; 01-03-2014 at 06:19 PM.

  19. #19
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Looking up clients

    Column G just identifies the employee selected in Sheet2 and for every matching record the formula generates a sequential number, or a hyphen if it doesn't match. The formula in column H identifies unique clients for the selected employee, and again gives them a sequential number. These formulae can be copied down way beyond your data in order to accommodate new data being added.

    The formulae in the other sheet just make use of those helper columns to pick up the appropriate data. The clients are listed using an INDEX/MATCH combination looking for those sequential numbers in column H (by means of the ROWS($1:1) function, which increments as it is copied down). The formula in B4 uses a SUMIFS function to add column E on Sheet1 IF column F is the department in B3 AND column C matches the client name in A4 AND column B is the employee selected in the drop-down. The formula is copied across for the other departments, then the block of formulae from A to F can be copied down as far as you may need it. I've used a custom format of General;; to hide any zeros, so that the hours stand out more.

    Hope this explains things, and that you can apply it to your real data.

    Pete

    P.S. If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  20. #20
    Registered User
    Join Date
    07-31-2013
    Location
    Emeryville, CA
    MS-Off Ver
    Excel 2003/07/10
    Posts
    34

    Re: Looking up clients

    I tried all the formulas and it worked with my data. Thanks Pete and everyone! I will do as you instructed above about properly thanking users here. Cheers

  21. #21
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Looking up clients

    Try this pivot table example:
    Attached Files Attached Files
    Last edited by Xx7; 01-03-2014 at 11:00 PM.

+ 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. Rotation Assigment to New Clients
    By basketballrats in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2012, 08:40 AM
  2. Count Nº of clients per mth
    By Loisw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2011, 06:45 AM
  3. Analyze Clients
    By jpnyc in forum Excel General
    Replies: 3
    Last Post: 04-29-2010, 09:06 PM
  4. Find the average of the few clients
    By shekar goud in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2009, 06:48 AM
  5. Match a name to all clients?
    By Dixie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2005, 11:06 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