+ Reply to Thread
Results 1 to 3 of 3

special case of sumproduct

  1. #1
    delali
    Guest

    special case of sumproduct

    Hi all,

    I need some kind of escape character in the criteria part of this function.

    example, =SUMPRODUCT((A4:A15=("January"))*(B4:B15="Monday")) should also
    count cells in B4:B15 where the cell contains both Monday and tuesday.

    something like =SUMPRODUCT((A4:A15=("January"))*(B4:B15="*Monday*")) but
    this doesn't work because the two ** around Monday are considered as part of
    the string being searched for. I need some kind of escape character to
    differentiate them from criteria, which is Monday.

    thanx in advance...



  2. #2
    Ardus Petus
    Guest

    Re: special case of sumproduct

    =SUMPRODUCT((A4:A15=("January"))*((B4:B15="Monday")+(B4:B15="Tuesday")))

    HTH
    --
    AP

    "delali" <delali@discussions.microsoft.com> a écrit dans le message de
    news:13B4776F-BC0F-438C-A5E7-55435D21D055@microsoft.com...
    > Hi all,
    >
    > I need some kind of escape character in the criteria part of this

    function.
    >
    > example, =SUMPRODUCT((A4:A15=("January"))*(B4:B15="Monday")) should also
    > count cells in B4:B15 where the cell contains both Monday and tuesday.
    >
    > something like =SUMPRODUCT((A4:A15=("January"))*(B4:B15="*Monday*")) but
    > this doesn't work because the two ** around Monday are considered as part

    of
    > the string being searched for. I need some kind of escape character to
    > differentiate them from criteria, which is Monday.
    >
    > thanx in advance...
    >
    >




  3. #3
    Dave Peterson
    Guest

    Re: special case of sumproduct

    You have another response at your other thread.

    If neither is what you need, you may want to restate your question.

    delali wrote:
    >
    > Hi all,
    >
    > I need some kind of escape character in the criteria part of this function.
    >
    > example, =SUMPRODUCT((A4:A15=("January"))*(B4:B15="Monday")) should also
    > count cells in B4:B15 where the cell contains both Monday and tuesday.
    >
    > something like =SUMPRODUCT((A4:A15=("January"))*(B4:B15="*Monday*")) but
    > this doesn't work because the two ** around Monday are considered as part of
    > the string being searched for. I need some kind of escape character to
    > differentiate them from criteria, which is Monday.
    >
    > thanx in advance...


    --

    Dave Peterson

+ 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