+ Reply to Thread
Results 1 to 6 of 6

Array Formula with SumIFS

  1. #1
    Registered User
    Join Date
    05-25-2010
    Location
    Trinidad
    MS-Off Ver
    Excel 2007
    Posts
    29

    Array Formula with SumIFS

    Good day folks,

    Can anyone please assist me in constructing a formula to calculate the following as I've tried different techniques but still haven't been able to get exactly what I'm looking for!

    On the attached sheet I need one formula for a dashboard that will filter for example

    May-10
    Adults >0
    Brd = ANU

    then here is the tricky part i need the net value per passenger multiplied by the amt of adults after those filters above have been applied. The answer here would be $1,849.

    Hopefully i described this problem properly and thank you in advance!
    Attached Files Attached Files
    Last edited by Avinash Beepath; 02-02-2011 at 01:41 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Array Formula with SumIFS

    If you store the Product adjacent to your data you can just use SUMIFS, eg:

    Please Login or Register  to view this content.
    then

    Please Login or Register  to view this content.
    If not you need to use SUMPRODUCT and at that point you need to restrict the ranges you specify as it's inefficient:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-25-2010
    Location
    Trinidad
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Array Formula with SumIFS

    Great! Thank you very much..
    If i am using the second option, can i use "counta" to deduce the last cell in the range? the entire sheet has about 90K lines...would this be very inefficient?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Array Formula with SumIFS

    For a one off calculation the 90k would be slow but probably not catastrophic.

    Are you adopting SUMPRODUCT for sake of backwards compatibility or other ?

  5. #5
    Registered User
    Join Date
    05-25-2010
    Location
    Trinidad
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Array Formula with SumIFS

    I am using it for an annual file but finishing the 2010 workbook...there shouldnt be more than perhaps 130K lines but based on your point I'm wondering if performance would be severely hampered.

    by the way...it works great, just as I requested. Thank you for your input!

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Array Formula with SumIFS

    I'd strongly advise use of Product column and SUMIFS if working with large precedent ranges.

    If you need to return multiple combinations you might consider using a Pivot Table.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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