+ Reply to Thread
Results 1 to 7 of 7

Calculate With Criteria

  1. #1
    Forum Contributor
    Join Date
    08-19-2006
    MS-Off Ver
    Excel 365
    Posts
    229

    Calculate With Criteria

    Hi,


    I have the following table which I need to summarize the data based on productivity data by staff ID , day and hours.

    Example, for staff M1, the total data for "LM" for all Mondays in the month of March based on table 1 is summarized on table 2 in cell C23

    Similalarly, total "Hours" worked for staff M1 for all Mondays in the month of March based on table 1 is summarized on cell D23 in table 2.

    I am trying to use sumproduct formula to generate this data in table 2 based on table 1 but it does not work.

    Appreciate help.
    Attached Files Attached Files

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    I don't think you can use sumproduct in this manner

    You will need to do it as a SUM

    e.g. in C24=SUM(C6,M6...........etc)
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you want to use sumproduct, then the best thing to do is unmerge the merged cells and duplicate the headings.

    see attached
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Contributor
    Join Date
    08-19-2006
    MS-Off Ver
    Excel 365
    Posts
    229
    NBVC,

    Thank you for your solution.

    The figures on cell D24 actually should read as 25 but it shows as 149.25.

    I checked and I think the formula is right but I am not sure why it returns as 149.25 .

    Appreciate your review.

  5. #5
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Nice solution NBVC - much better than what I could do!

    BUT

    Need to change some refs - NBVC has managed to include the total cols at the far right so there is double counting - Find and replace AR for AT and it looks OK

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by Kumara_faith
    NBVC,

    Thank you for your solution.

    The figures on cell D24 actually should read as 25 but it shows as 149.25.

    I checked and I think the formula is right but I am not sure why it returns as 149.25 .

    Appreciate your review.
    Sorry, When I changed the titles to Unmerge...somehow I got another Mon in AT3... Change Cell AT3 to read "Total" and it should fix it.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-19-2006
    MS-Off Ver
    Excel 365
    Posts
    229
    NBVC,

    Thank you for your review. Appreciate your time and patience.

+ 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