+ Reply to Thread
Results 1 to 5 of 5

sumproduct ?

  1. #1
    Ian Bartlett
    Guest

    sumproduct ?

    I'm trying to obtain information on how often someone works say a Saturday.
    A1 Date
    b1 weekday a1
    d1 array of types {"E","EN","r"}
    tried this returns 0
    =SUMPRODUCT((C18:C382="Sat")*(D18:D382=({"E","EN","r"})))

    any help appreciated.

    Bart



  2. #2
    Forum Contributor
    Join Date
    11-29-2005
    Posts
    142
    If you actually have the text string "Sat" in C18:C382, then it should work.

    Make sure there are no spaces in preceding or after any text strings in either column C or D.

    How are the dates and the weekdays being entered or populated?

  3. #3
    Ian Bartlett
    Guest

    Re: sumproduct ?

    c18:c382 are obtained by =weekday() not text strings how would one work
    around that?

    Thanks

    "Ian Bartlett" <[email protected]> wrote in message
    news:2mG7g.138953$WI1.77256@pd7tw2no...
    > I'm trying to obtain information on how often someone works say a
    > Saturday.
    > A1 Date
    > b1 weekday a1
    > d1 array of types {"E","EN","r"}
    > tried this returns 0
    > =SUMPRODUCT((C18:C382="Sat")*(D18:D382=({"E","EN","r"})))
    >
    > any help appreciated.
    >
    > Bart
    >




  4. #4
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Change your formula to:

    =SUMPRODUCT((C18:C382=7)*(D18:D382=({"E","EN","r"})))

    This assumes your WEEKDAY formula is written using 1 as the return type which makes Saturday the 7th weekday. If you use a 2 as the return type,
    C18:C382 should = 6, and if you use a 3 as the return type, C18:C382 should = 5.


    HTH

    Steve

  5. #5
    Ian Bartlett
    Guest

    Re: sumproduct ?

    SteveG

    That worked a charm! Thank you very much.

    Bart



+ 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