+ Reply to Thread
Results 1 to 4 of 4

An array equation with named ranges using multiple criteria...help!

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    An array equation with named ranges using multiple criteria...help!

    I'm using the following array equation with these two named ranges and it works perfectly:

    =SUM(IF(Sabrina_NGLTypeWell_Test1=D38),Sabrina_NGL_Test1))

    The problem is, I need there to be more criteria within my equation and so I've made more named ranges, except as soon as I add another one using the following equation, it stops working and gives me the #VALUE error.

    =SUM(IF(AND(Sabrina_NGLTypeWell_Test1=D38,Sabrina_NGLProduct_Test1=E38),Sabrina_NGL_Test1))

    Any idea what I'm doing wrong? Or alternative solutions?

    Thanks

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: An array equation with named ranges using multiple criteria...help!

    Hi,

    With array formulas, using the AND function does not give the expected results as it would with non-array formulas. You need to use multiplication to create AND logic within an array. Try:

    =SUM(IF((Sabrina_NGLTypeWell_Test1=D38)*(Sabrina_NGLProduct_Test1=E38),Sabrina_NGL_Test1))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    08-13-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: An array equation with named ranges using multiple criteria...help!

    Thanks! This worked! Really appreciate it.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: An array equation with named ranges using multiple criteria...help!

    Try

    =SUMIFS(Sabrina_NGL_Test1,Sabrina_NGLTypeWell_Test1,D38,Sabrina_NGLProduct_Test1,E38)

+ 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. Replies: 0
    Last Post: 10-15-2012, 07:24 AM
  2. Replies: 2
    Last Post: 05-10-2012, 10:38 AM
  3. Replies: 2
    Last Post: 06-01-2011, 07:43 AM
  4. 2D Array of named ranges
    By hilander in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2008, 08:02 PM
  5. [SOLVED] Looking up named ranges as an array
    By L.White in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2005, 05:05 PM

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