+ Reply to Thread
Results 1 to 2 of 2

What is the difference in my two equations? Array.

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    61

    What is the difference in my two equations? Array.

    I have two formulas.

    1. =SUM(SUMIFS(PSR420T[ADV],PSR420T[BLK],[@Block],PSR420T[BusType],"<>C",PSR420T[BusType],"<>P"))

    2. =SUM(SUMIFS(PSR420T[ADV],PSR420T[BLK],[@Block],PSR420T[BusType],{"C","P"}))

    What is the difference in the ending of my formulas?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: What is the difference in my two equations? Array.

    Formula 1 is all inclusive and does not need the SUM function wrapper.
    It resolves to:
    Sum [ADV] Where [BLK]=Block and [BusType]<>C and [BusType]<>P

    The second uses a fixed array and does require the SUM function wrapper.
    It resolves to
    SUM(
    Sum [ADV] Where [BLK]=Block and [BusType]=C
    Sum [ADV] Where [BLK]=Block and [BusType]=P
    )

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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. [SOLVED] Difference between these array formulae
    By millz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2015, 01:49 AM
  2. Use difference array in each row
    By tatestop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-08-2014, 04:58 PM
  3. [SOLVED] VBA array difference
    By nikhileshp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-04-2012, 12:48 PM
  4. Difference between range and array
    By Paul Smith in forum Excel General
    Replies: 5
    Last Post: 02-24-2006, 08:08 AM
  5. Difference between range and array
    By Paul Smith in forum Excel General
    Replies: 0
    Last Post: 02-21-2006, 05:20 PM
  6. [SOLVED] Array of formulas (regional difference)
    By ken4capitola in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-19-2005, 08:40 PM
  7. Working with array equations
    By OkieViking in forum Excel General
    Replies: 2
    Last Post: 01-23-2005, 04:10 AM

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