Results 1 to 7 of 7

SUMPRODUCT Macro, Excel 2007 Help

Threaded View

  1. #1
    Registered User
    Join Date
    07-19-2010
    Location
    Greenville, SC
    MS-Off Ver
    Excel 2003
    Posts
    3

    SUMPRODUCT Macro, Excel 2007 Help

    Hello excel experts,
    I was wondering if someone could point me in the right direction on an issue I am having with an excel formula.

    =SUMPRODUCT(--(INDIRECT("Data!A2:A1000")=A8),
    --(INDIRECT("Data!B2:B1000")="Late load -  More than 2 hours late unless first stop")
    +(INDIRECT("Data!C2:C1000")="2 hrs")
    +(INDIRECT("Data!C2:C1000")="4 hrs")
    +(INDIRECT("Data!C2:C1000")="6 hrs"))

    Here is some sample data that I want to select in the above formula:
    TestCompany, Late load - More than 2 hours late unless first stop, 2hrs
    TestCompany, Late load - More than 2 hours late unless first stop, 4hrs
    TestCompany, Late load - More than 2 hours late unless first stop, 6hrs

    This however is also getting selected:
    TestCompany, AnyValueHere, 2hrs

    For lack of a better way of describing it I’ll use SQL syntax:
    SELECT column1,column2,column3
    FROM MySpreadsheet
    WHERE column1='TestCompany' AND column2='More than 2 hours late unless first stop' AND 
    column3 IN("2 hrs","4 hrs","6 hrs”)
    Any help would be greatly appreciated.
    Cheers!
    Last edited by edgewild; 07-20-2010 at 08:52 AM. Reason: Updated Title

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