+ Reply to Thread
Results 1 to 6 of 6

sumproduct with wildcard

Hybrid View

  1. #1
    Mark
    Guest

    sumproduct with wildcard

    Can someone assist me with a formula to sumproduct with wildcards, please?

    =SUMPRODUCT(--(F:F="NPT*"),--(A:A="PC*"))

    I've got this but it doesn't work!!

    --
    Mark

  2. #2
    Dave Peterson
    Guest

    Re: SUMPRODUCT WITH WILDCARD

    =sumproduct(--(left(f1:F100,3)="npt"),--(left(a1:a100,2)="pc"))

    You can't use whole columns with this kind of formula.

    Mark wrote:
    >
    > Can someone assist me with a formula to sumproduct with wildcards, please?
    >
    > =SUMPRODUCT(--(F:F="NPT*"),--(A:A="PC*"))
    >
    > I've got this but it doesn't work!!
    >
    > --
    > Mark


    --

    Dave Peterson

  3. #3
    Mark
    Guest

    Re: SUMPRODUCT WITH WILDCARD

    Thanks Dave, but I'm getting #N/A and I can see there are some rows with this
    info!

    Can you offer any suggestion?

    --
    Mark


    "Dave Peterson" wrote:

    > =sumproduct(--(left(f1:F100,3)="npt"),--(left(a1:a100,2)="pc"))
    >
    > You can't use whole columns with this kind of formula.
    >
    > Mark wrote:
    > >
    > > Can someone assist me with a formula to sumproduct with wildcards, please?
    > >
    > > =SUMPRODUCT(--(F:F="NPT*"),--(A:A="PC*"))
    > >
    > > I've got this but it doesn't work!!
    > >
    > > --
    > > Mark

    >
    > --
    >
    > Dave Peterson
    >


  4. #4
    Dave Peterson
    Guest

    Re: SUMPRODUCT WITH WILDCARD

    What formula did you use?

    Do you have #n/a's in either of those two ranges?

    Mark wrote:
    >
    > Thanks Dave, but I'm getting #N/A and I can see there are some rows with this
    > info!
    >
    > Can you offer any suggestion?
    >
    > --
    > Mark
    >
    > "Dave Peterson" wrote:
    >
    > > =sumproduct(--(left(f1:F100,3)="npt"),--(left(a1:a100,2)="pc"))
    > >
    > > You can't use whole columns with this kind of formula.
    > >
    > > Mark wrote:
    > > >
    > > > Can someone assist me with a formula to sumproduct with wildcards, please?
    > > >
    > > > =SUMPRODUCT(--(F:F="NPT*"),--(A:A="PC*"))
    > > >
    > > > I've got this but it doesn't work!!
    > > >
    > > > --
    > > > Mark

    > >
    > > --
    > >
    > > Dave Peterson
    > >


    --

    Dave Peterson

  5. #5
    Mark
    Guest

    Re: SUMPRODUCT WITH WILDCARD

    Dave,

    Brilliant!

    It was the #N/A in column F!

    Sorted it, many thanks.
    --
    Mark


    "Dave Peterson" wrote:

    > What formula did you use?
    >
    > Do you have #n/a's in either of those two ranges?
    >
    > Mark wrote:
    > >
    > > Thanks Dave, but I'm getting #N/A and I can see there are some rows with this
    > > info!
    > >
    > > Can you offer any suggestion?
    > >
    > > --
    > > Mark
    > >
    > > "Dave Peterson" wrote:
    > >
    > > > =sumproduct(--(left(f1:F100,3)="npt"),--(left(a1:a100,2)="pc"))
    > > >
    > > > You can't use whole columns with this kind of formula.
    > > >
    > > > Mark wrote:
    > > > >
    > > > > Can someone assist me with a formula to sumproduct with wildcards, please?
    > > > >
    > > > > =SUMPRODUCT(--(F:F="NPT*"),--(A:A="PC*"))
    > > > >
    > > > > I've got this but it doesn't work!!
    > > > >
    > > > > --
    > > > > Mark
    > > >
    > > > --
    > > >
    > > > Dave Peterson
    > > >

    >
    > --
    >
    > Dave Peterson
    >


  6. #6
    Forum Contributor
    Join Date
    08-28-2005
    Posts
    301

    sumproduct with wildcard

    hi!

    SUMIF can use wildcards, but only for one test, but SUMPRODUCT doesn't support wildcards directly.

    -via135

    Quote Originally Posted by Mark
    Can someone assist me with a formula to sumproduct with wildcards, please?

    =SUMPRODUCT(--(F:F="NPT*"),--(A:A="PC*"))

    I've got this but it doesn't work!!

    --
    Mark

+ 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