+ Reply to Thread
Results 1 to 10 of 10

Calculating total from a different sheet.

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2017
    Location
    UK
    MS-Off Ver
    Office 2016
    Posts
    20

    Calculating total from a different sheet.

    In my workbook, I have a sheet for recording Leave taken and the reason. I now want another sheet where I can collect each persons total amount taken.
    But rather than simply add each persons amount up and then manually enter it into the new sheet, I would like it to be done using a formula, so it auto updates.
    Attached Files Attached Files
    Last edited by Pod25; 02-09-2017 at 07:58 PM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Is this possible

    Maybe add a column to your 'List of Employees' table and use:

    =SUMIF(lstEmpNames,Employees[@[Employee Names]],LeaveTracker[Days])

    See attached:
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    07-16-2015
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Is this possible

    Hi

    I entered this in to Sheet "Sub Totals" C3 = SUMPRODUCT((Employee_Leave_Tracker!A4:A100=[@Name])*(Employee_Leave_Tracker!E4:E100))

    Cheers

  4. #4
    Registered User
    Join Date
    01-29-2017
    Location
    UK
    MS-Off Ver
    Office 2016
    Posts
    20

    Re: Is this possible

    Quote Originally Posted by forestview View Post
    Hi

    I entered this in to Sheet "Sub Totals" C3 = SUMPRODUCT((Employee_Leave_Tracker!A4:A100=[@Name])*(Employee_Leave_Tracker!E4:E100))

    Cheers
    This has given some strange results. It has counted some, but given 0 on others, even though they do have leave booked?

  5. #5
    Forum Contributor
    Join Date
    07-16-2015
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Is this possible

    Hi

    I used this in to Sheet "Sub Totals" C3 = SUMPRODUCT((Employee_Leave_Tracker!A4:A100=[@Name])*(Employee_Leave_Tracker!E4:E100))

    Cheers

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: Is this possible

    Formula: copy to clipboard
    =SUMIF(LeaveTracker[[#Data],[#Totals],[Employee Name]],[@Name],Employee_Leave_Tracker!$E$4:$E$64)
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Registered User
    Join Date
    01-29-2017
    Location
    UK
    MS-Off Ver
    Office 2016
    Posts
    20

    Re: Is this possible

    Quote Originally Posted by TMS View Post
    Formula: copy to clipboard
    =SUMIF(LeaveTracker[[#Data],[#Totals],[Employee Name]],[@Name],Employee_Leave_Tracker!$E$4:$E$64)
    Perfect.
    Thanks for all the replies

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: Is this possible

    Note: if those are real people, I'm not sure they, or your company would be happy about you sharing ANY information about them (however unimportant you may feel it is).

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: Is this possible

    You're welcome.

    Note: you may be asked, albeit late in the day, to change your thread title to comply with forum rules. It'd be a good idea to do that now, before you are asked

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: Calculating total from a different sheet.

    Thanks for the rep.


    And thanks for fixing the thread title.

+ 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