+ Reply to Thread
Results 1 to 7 of 7

Need to return value from one table based on 2 different criteria from another

  1. #1
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Need to return value from one table based on 2 different criteria from another

    Hi, I have attached a sample of my workbook with private information removed. In the summary worksheet, I want to return the sum of column D on the Data worksheet for the matching Name and Date. e.g. Chris should have a total of 19 for 9th May. I've tried INDEX/MATCH, SUMIF, VLOOKUP but can't get it to work because of the crosstab setup on Summary worksheet. Can anyone help? It's for Excel 2003. thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Need to return value from one table based on 2 different criteria from another

    Hi,

    in B2 to be copied down and to the right

    Please Login or Register  to view this content.
    Regards
    Last edited by canapone; 05-21-2012 at 11:35 PM. Reason: No ; in the formula (Italian settings)
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Need to return value from one table based on 2 different criteria from another

    Thanks Canapone. Appreciate the reply but I didn't think SUMIFS was available in Excel 2003? I am using 2010 in compatibility mode so it's hard for me to tell what the end users will end up seeing

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Need to return value from one table based on 2 different criteria from another

    hello

    =SUM(IF((Data!A:A=Summary!A5)*(Data!E:E=Summary!J1),Data!D:D,0)) - array formula
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Need to return value from one table based on 2 different criteria from another

    hi greyscale, SUMPRODUCT might work too
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Need to return value from one table based on 2 different criteria from another

    They both work perfectly. thank you all

  7. #7
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Need to return value from one table based on 2 different criteria from another

    Ciao,

    sorry from an Excel 2000 user


    Please Login or Register  to view this content.
    Regards


    Edit: Hi All, very slow and late in answering. No mean to overlap. Regards
    Last edited by canapone; 05-21-2012 at 11:53 PM.

+ 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