Results 1 to 20 of 26

Thread: Solved: Does sumproduct work with OR

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #20
    VBAX Expert mperrah's Avatar
    Joined
    Mar 2005
    Posts
    744
    Location
    We Got IT!
    Thank you Bob!
    Re-reading post 18 said values can't be in same cell.
    I put each value in a different cell and named that range.
    plugged the name in the sumproduct and presto.
    Now I made a named range for each office,
    and typed the names of each of those named ranges
    into another range named MAList
    then made a dataVal list with the name MAListChoice
    in sumproduct is the MAListChoice:
    [vba]=SUMPRODUCT(--(item01=scan_item),--(QCDate>=chStart),--(QCDate<=chEnd),--(ISNUMBER(MATCH(MA,MAListChoice,0))))[/vba]

    You are awesome!!!

    Sorry again about the small font

    I got ahead of myself,
    The named range of the named range doesn't calculate
    If I code the MAListModesto in the sum product it works,
    but if I have a DataVal list with MAListModesto as the picked choice it does not work.
    I tried:
    [vba]=SUMPRODUCT(--(item01=scan_item),--(QCDate>=chStart),--(QCDate<=chEnd),--(ISNUMBER(MATCH(MA,MAListChoice,0))))

    and
    =SUMPRODUCT((item01=scan_item)*(QCDate>=chStart)*(QCDate<=chEnd)*(ISNUMBER( MATCH(MA,MAListChoice,0))))

    and
    =SUMPRODUCT((item01=scan_item)*(QCDate>=chStart)*(QCDate<=chEnd)*(MA=MAList Choice))[/vba]

    How can I make a list to choose from to input the picked values for the sumproduct?
    Last edited by mperrah; 08-30-2007 at 11:57 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •