+ Reply to Thread
Results 1 to 10 of 10

SUMPRODUCT array formula doesn't recognize Array 5

  1. #1
    Registered User
    Join Date
    05-25-2016
    Location
    Hollywood, CA
    MS-Off Ver
    2016
    Posts
    79

    SUMPRODUCT array formula doesn't recognize Array 5

    =SUMPRODUCT('M:\[Ryder.xlsx]Bills16'!$K$4:$K$500,--('M:\[Ryder.xlsx]Bills16'!$G$4:$G$500<>0.09),--('M:\[Ryder.xlsx]Bills16'!$N$4:$N$500<>"license"),--('M:\[Ryder.xlsx]Bills16'!$B$4:$B$500=A97),--('M:\[Ryder.xlsx]Bills16'!$N$4:$N$500<>"lea*"))

    Above is a formula that works, except for the final array (Array 5). Before I go back to using SUMIFS and having to open the Ryder.xlsx workbook for it to work, does anyone have any clues as to why Array 5 is not working?

    Thanks,
    TR

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    What does "not work" mean?

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    You can't use <> (or =) with a wildcard - try using SEARCH, FIND or LEFT.

    Perhaps something like this.

    =SUMPRODUCT('M:\[Ryder.xlsx]Bills16'!$K$4:$K$500,--('M:\[Ryder.xlsx]Bills16'!$G$4:$G$500<>0.09),--('M:\[Ryder.xlsx]Bills16'!$N$4:$N$500<>"license"),--('M:\[Ryder.xlsx]Bills16'!$B$4:$B$500=A97),--(LEFT('M:\[Ryder.xlsx]Bills16'!$N$4:$N$500,3) <>"lea"))
    Last edited by Norie; 11-08-2016 at 04:38 PM.
    If posting code please use code tags, see here.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    <>"lea*"))
    Are you trying to use the * as a wildcard?

    If so, SUMPRODUCT doesn't work with wildcards.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    05-25-2016
    Location
    Hollywood, CA
    MS-Off Ver
    2016
    Posts
    79

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    It is not excluding cells that start with "lea" from the product. It does, however, exclude summing cells that have "license" in them (Array 3).

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    Oops, I made some mistakes in the formula I posted.

  7. #7
    Registered User
    Join Date
    05-25-2016
    Location
    Hollywood, CA
    MS-Off Ver
    2016
    Posts
    79

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    Thanks, I thought I had tried that, but I think there was a space after the "lease xtra" on the source file. Now it hums...

  8. #8
    Registered User
    Join Date
    05-25-2016
    Location
    Hollywood, CA
    MS-Off Ver
    2016
    Posts
    79

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    Quote Originally Posted by Norie View Post
    Oops, I made some mistakes in the formula I posted.
    Besides the space, could you elaborate on this??

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    Bit confused, I got the logic of the last array the wrong way round by accident - there was no space involved.


    What exactly are you trying to do with the last array and where does the space come into it?

  10. #10
    Registered User
    Join Date
    05-25-2016
    Location
    Hollywood, CA
    MS-Off Ver
    2016
    Posts
    79

    Re: SUMPRODUCT array formula doesn't recognize Array 5

    Do the double dashes before arrays 2 thru 5 make Excel process this formula as an array? I tried Ctrl-Shift-Enter and got the braces, but they didn't change anything...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Simple SUM array formula doesn't work. Bug?
    By Zahum in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-05-2016, 08:35 AM
  2. UDF array function doesn't return array
    By taikalusikka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2016, 08:06 AM
  3. [SOLVED] IF formula in ARRAY = works <> doesn't work
    By bkanealy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-02-2014, 09:31 AM
  4. [SOLVED] weekday() result used in an array formula doesn't work. Formula works if i type in date
    By aarco50 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2014, 03:25 PM
  5. sumproduct of a number array and a text array starting with 2 numbers
    By Bishonen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2013, 11:48 AM
  6. Array formula to recognize a pattern of two cells in a row
    By xlnube in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2012, 04:02 PM
  7. Excel 2007 : CSE Array Formula doesn't work
    By srschiller in forum Excel General
    Replies: 12
    Last Post: 11-17-2011, 04:35 PM

Tags for this Thread

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