+ Reply to Thread
Results 1 to 4 of 4

how to use * wildcard in a sum(if((cond),range)) array formula

  1. #1
    Bruce
    Guest

    how to use * wildcard in a sum(if((cond),range)) array formula

    Hi,

    Can anyone tell me howcome the * wildcard does not work in my sum if array
    formula.

    I realise that it will work with the standard SUMIF function but I need to
    use the array version because I will be adding more conditions to what is
    below.

    =SUM(IF(('F1'!$C$7:$C$1000="*wedge*"),'F1'!$U$7:$U$1000))

    Bruce

  2. #2
    Chip Pearson
    Guest

    Re: how to use * wildcard in a sum(if((cond),range)) array formula

    Simple equality relationships do not support wildcards.


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Bruce" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > Can anyone tell me howcome the * wildcard does not work in my
    > sum if array
    > formula.
    >
    > I realise that it will work with the standard SUMIF function
    > but I need to
    > use the array version because I will be adding more conditions
    > to what is
    > below.
    >
    > =SUM(IF(('F1'!$C$7:$C$1000="*wedge*"),'F1'!$U$7:$U$1000))
    >
    > Bruce




  3. #3
    Bob Phillips
    Guest

    Re: how to use * wildcard in a sum(if((cond),range)) array formula

    =SUM(IF(ISNUMBER(FIND("wedge",'F1'!$C$7:$C$1000)),'F1'!$U$7:$U$1000))

    replace FIND with SEARCH if you want it not case-sensitive.

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Bruce" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > Can anyone tell me howcome the * wildcard does not work in my sum if array
    > formula.
    >
    > I realise that it will work with the standard SUMIF function but I need to
    > use the array version because I will be adding more conditions to what is
    > below.
    >
    > =SUM(IF(('F1'!$C$7:$C$1000="*wedge*"),'F1'!$U$7:$U$1000))
    >
    > Bruce




  4. #4
    RagDyer
    Guest

    Re: how to use * wildcard in a sum(if((cond),range)) array formula

    You might try something like this *array* formula:

    =SUM(IF(ISNUMBER(SEARCH("wedge",$C$7:$C$1000)),$U$7:$U$1000))

    Since you say that you'll be adding more conditions, why not try a non-array
    SumProduct approach:

    =SUMPRODUCT((ISNUMBER(SEARCH("wedge",$C$7:$C$1000)))*$U$7:$U$1000)

    Where adding additional criteria is as easy as adding another argument ...
    something like this:

    =SUMPRODUCT((ISNUMBER(SEARCH("wedge",$C$7:$C$1000)))*($D$7:$D$1000=condition
    2)*($E$7:$E$1000=condition3)*$U$7:$U$1000)
    --
    HTH,

    RD
    ==============================================
    Please keep all correspondence within the Group, so all may benefit!
    ==============================================



    "Bruce" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > Can anyone tell me howcome the * wildcard does not work in my sum if array
    > formula.
    >
    > I realise that it will work with the standard SUMIF function but I need to
    > use the array version because I will be adding more conditions to what is
    > below.
    >
    > =SUM(IF(('F1'!$C$7:$C$1000="*wedge*"),'F1'!$U$7:$U$1000))
    >
    > Bruce



+ 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