+ Reply to Thread
Results 1 to 7 of 7

Horizontal and vertical lookup with sum across multiple worksheets

  1. #1
    Registered User
    Join Date
    09-04-2014
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    4

    Unhappy Horizontal and vertical lookup with sum across multiple worksheets

    Hi,

    I am totally out of my depth here! I have a workbook with multiple worksheets each showing a client and how many days each week each employee is assigned to it. Someone may be assigned to 2 days with one client, and 3 with another. Or more complicated.

    My (very small) company have asked me to create a summary sheet on excel. I know I want to do a look up but it needs to be both horizontal for the name and vertical for the date. Then create a sum. But I don't know where to start.

    The format of the worksheets can be changed to make it possible to do the calculations - we are not precious about that. We just need to keep in the info of how many days are assigned at each rate, and then who is assigned against each project.

    If someone has any advice I would appreciate it.

    Thanks!

    Jane

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Horizontal and vertical lookup with sum across multiple worksheets

    with the macro below I grapped all data, from all tabs to the summary tab.

    since it is not totaly clear what is the desired input, let us take a step from here.

    Please reply.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    09-04-2014
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Horizontal and vertical lookup with sum across multiple worksheets

    OK, so only taking into account columns M to Q with names in, I need to see for example how many days Helen has assigned against her name for 15/9/14 across all clients. The problem is that Helen's name is not always in the same column, so I can't just put a filter on.

    Now I'm thinking that a way round would be to pre input all the names onto the spreadsheet so that they are always in the same column, then I could filter. But my desired result is to have a number "magically" appear in the box against each name to say how many days' work they have been assigned that week.

    Does that make sense?

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Horizontal and vertical lookup with sum across multiple worksheets

    Indeed you could make a column for each empoyee.

    If it was my project, I would make the data in a table (with the names stored verticaly) so after that I can use a pivot table to analyze the data.

  5. #5
    Registered User
    Join Date
    09-04-2014
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Horizontal and vertical lookup with sum across multiple worksheets

    Thank you so much. I am going to do a working test of it once I have updated each spreadsheet with the names and I will See how it goes. One question - will the Macro pick info from an infinite number of sheets?

    Thanks!

    Jane

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Horizontal and vertical lookup with sum across multiple worksheets

    Please Login or Register  to view this content.
    Yes it does, but it excludes the tabs with the names above (collored in red).

  7. #7
    Registered User
    Join Date
    09-04-2014
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Horizontal and vertical lookup with sum across multiple worksheets

    I'm getting there! Just realised that I have to add in more columns with names to make it work (example on the Client 1 tab - this is the full number of members of staff)

    But when I run the macro now there is no date data for the clients where I have added columns. I tried to understand the macro but have no idea what it all means to try to change it. I have included an example file with client 1 correct and the summary sheet with the Macro run.

    The date is also defaulting to the 5 digit number which I can change manually but don't know how to manage in the Macro. Any ideas?

    Again, thanks so much for your help!

    Jane

+ 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] VBA Vertical and horizontal Lookup ???
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 03-07-2014, 06:15 PM
  2. [SOLVED] Horizontal and Vertical Lookup
    By kingkong321 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 06:48 AM
  3. [SOLVED] Lookup a vertical and horizontal value
    By KARENKERBA in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2013, 04:33 PM
  4. Horizontal and Vertical lookup.
    By rlsublime in forum Excel General
    Replies: 3
    Last Post: 09-05-2012, 05:54 PM
  5. Replies: 1
    Last Post: 04-12-2011, 07:18 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