+ Reply to Thread
Results 1 to 2 of 2

ARRAY Function with Nested IF(OR) - Please Advise

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    47

    ARRAY Function with Nested IF(OR) - Please Advise

    I have a table of data consisting of OFFSET named ranges (columnar data) in a sequential order to execute an array function to sum results. One of the columns contains multiple variables that I would like to return SUM values for by executing the ARRAY function. Below is the order of columns/ranges:

    Date City CostElementID HoursWorked

    I am attempting to SUM the total hours worked based on the order provided in my array function below. Note the [CostElementID] is the range containing multiple variables I'd like to return a cumulative SUM value for. Here is the formula I've written out, however, it's not working...

    {=(SUM(IF((Date=$#)*(City=$#)*((OR(CostElementID="####",CostElementID="####",CostElementID="####"))),HoursWorked))}

    Can someone please tell me if this is even possible and what I'm clearly doing wrong?

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

    Re: ARRAY Function with Nested IF(OR) - Please Advise

    Use cells to hold the CostElementID variables. Assume they're in A1:A3.

    Then your formula becomes:

    =SUM(IF((Date=$#)*(City=$#)*ISNUMBER(MACTCH(CostElementID,A1:A3,0)),HoursWorked))

    Still array entered.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Sum, Countif, and Array nested function help
    By lea334 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-02-2014, 12:10 PM
  2. [SOLVED] What kind of an Array function can I use instead of endless nested IF functions?
    By carleaston in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2014, 10:04 PM
  3. Need help with array function using MEDIAN and nested IF with boolean AND
    By account-ant in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 04:47 PM
  4. [SOLVED] Mid Function (Please Advise)
    By Arba in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-25-2012, 07:44 PM
  5. Array Formula Advise Needed
    By bryhogan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2008, 12:15 PM
  6. IF function advise
    By katintn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-15-2007, 11:41 PM
  7. Newbie: worksheet function advise (huge please)
    By CF in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2005, 01: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