+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    07-03-2009
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question (about "if" and "lookup", I'm not sure)

    Hello.
    I have a question about a 2-sheet xls file.
    I think it's about "if" and "lookup", but I'm not sure.
    My question is in the sample file.
    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,605

    Re: Question (about "if" and "lookup", I'm not sure)

    Using your posted workbook, try this on Sheet1:
    Code:
    C2: =SUMPRODUCT((Sheet2!$A$2:$A$30&"_"&Sheet2!$B$2:$B$30=A2&"_"&B2)*
    Sheet2!$G$2:$G$30)
    Copy that formula down through C11.

    Actually, this formula is shorter and less complicated:

    Code:
    C2: =SUMPRODUCT((Sheet2!$A$2:$A$30=A2)*(Sheet2!$B$2:$B$30=B2)*Sheet2!$G$2:$G$30)
    Does that help?
    Last edited by Ron Coderre; 07-03-2009 at 11:19 AM.
    Regards,

    Ron
    Microsoft MVP - Excel
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    07-03-2009
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Question (about "if" and "lookup", I'm not sure)

    OH MY GOD!!!
    You are the best.
    Thank you very much.
    It is absolutely correct.
    I copied this function 3272 times in my xls.
    Thanks again.

  4. #4
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,605

    Re: Question (about "if" and "lookup", I'm not sure)

    I'm glad that worked for you...Thanks for letting us know!
    Regards,

    Ron
    Microsoft MVP - Excel
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

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.2.0