Results 1 to 9 of 9

Avoid an Array Function by using Sumproduct

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Question Avoid an Array Function by using Sumproduct

    Hi All,

    I am trying to turn an array function which working well for me into a normal function just to reduce processing time in my workbook.

    I have the following array functions with some named ranges:

    =IFERROR(INDEX(RangeOfNames,MATCH(MIN(IF((RangeOfS.Dates<=$A3)*--(RangeofExp.Dates > ($A3+B$1)) > 0,(RangeOfS.Dates<=$A3)*(RangeofExp.Dates)*(RangeofExp.Dates>($A3+B$1)))),RangeofExp.Dates,0)),"None")

    =IF(B3="None","NA",IFERROR(INDEX(RangeOfNames,MAX(ROW(RangeOfNames)*(RangeOfS.Dates<=$A3)*(RangeofExp.Dates > =$A3)*(RangeofExp.Dates < VLOOKUP(B3,DataTable,3,0)))-1,1),B3))

    I have tried embedding the MIN and MAX functions inside a Sumproduct function with the intention of avoiding Array (Ctrl + Shift + Enter), but I dont get the same results (as derived by array functions) when I do so.

    Any help is appreciated,

    BR,

    Imran
    Last edited by AliGW; 08-28-2018 at 02:53 AM. Reason: Formulae added & attachment removed.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 11-05-2015, 09:09 PM
  2. Help with Array Function: Avoid repeating values on MATCH/INDEX
    By jslater41 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-08-2014, 01:57 PM
  3. Why a parameter behaves like an array in SUMPRODUCT Function..?
    By Vikas_Gautam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2014, 10:21 AM
  4. How to use SUMPRODUCT or other function to SUM array of values
    By netgroover in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2013, 09:06 PM
  5. Help! Dual Vlookup function? Sumproduct with index array?
    By thaprofessor33 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-03-2012, 09:08 AM
  6. Avoid #Div/0! in Sumproduct
    By bryhogan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2008, 12:26 PM
  7. Sumproduct + Array Function?
    By Darren Hill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2005, 09:05 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