+ Reply to Thread
Results 1 to 6 of 6

Adjustable array formula

  1. #1
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Adjustable array formula

    Hi guys,

    Currently, I have a number of formulas that work correctly & deliver the results I require, however, I need their "array calculation ranges" to change depending on certain cell values. & basically I'm completely stuck!!

    I've cut my data down to just a working example of the formulas, & an anticipated result.

    Rows 2 to 3 are the example of the formulas working perfectly - but the array has to be constant

    Rows 5 & 6 are the example of the dream formula, which could read M6 & N6, then adjust the calculation range (i.e. adjust the array) - therefore returning the values in O6, P6, Q6.

    Hope I've been clear there. Any questions ask away

    Cheers
    Mdn
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Adjustable array formula

    I don't understand.

    If you copy and paste A6:N6 into A3:N3, the formulas that are in O3:Q3 give the desired results that are displayed in O6:Q6.

  3. #3
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Re: Adjustable array formula

    Thought you'd cracked it Falcon (i.e. my stupidity!!)

    However, as I was checking it I noticed certain combinations do break it

    I've added a new workbook below. G6:I6 shoudl exactly match with O3:Q3, for some reason they don't - even though the formulas are exactly the same
    Attached Files Attached Files

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Adjustable array formula

    I don't know what your formulas are supposed to be doing but I do know that there is nothing in the P3 (or H6) formula to limit the top end of the range.

    Try including this in P3:

    =IFERROR(IF(AND(INDEX(A3:L3,$M$3)>O3,SUMPRODUCT((A$2:L$2>=$M$3+1)*(A$2:L$2<=$N$3)*(A3:L3<=O3))),IF((INDEX(A3:L3,1,$N$3))<O3,"W","L"),""),"")


    To compare, that would be this in H6:

    =IFERROR(IF(AND(INDEX(A6:D6,$E$6)>G6,SUMPRODUCT((A$5:D$5>=$E$6+1)*(A$5:D$5<=$F$6)*(A6:D6<=G6))),IF((INDEX(A6:D6,1,$F$6))<G6,"W","L"),""),"")

  5. #5
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Re: Adjustable array formula

    Falcon, your turning into a living legend I think you've done it.

    Massively appreciated

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Adjustable array formula

    You're very welcome. Thanks for the rep!

+ 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] Adjustable formulas
    By keen2xl in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 12-16-2013, 09:49 AM
  2. Using VBA to create a variable "adjustable cells" array in Solver
    By Kybynn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2012, 12:25 AM
  3. Adjustable Variable in a Formula
    By green214 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2012, 01:08 AM
  4. adjustable template?
    By exlex in forum Excel General
    Replies: 5
    Last Post: 04-16-2010, 08:37 AM
  5. formula to calculate period with adjustable start and end
    By Martinko in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2009, 09:20 AM
  6. Adjustable scales
    By Peter1999 in forum Excel General
    Replies: 2
    Last Post: 05-24-2007, 08:08 AM
  7. Formula with adjustable absolute address
    By ronbo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-17-2007, 01:56 AM
  8. [SOLVED] Adjustable Rate APR
    By Xhawk57 in forum Excel General
    Replies: 4
    Last Post: 02-15-2006, 02:20 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