+ Reply to Thread
Results 1 to 4 of 4

Extend formula range dinamically while using an array ?

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    Salisbury
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Extend formula range dinamically while using an array ?

    Hi,
    my first post here :-)

    I have a table with resources, days of the month and hours logged by each one of them for that specific day.
    On top of this table I have an index that identifies if that day is a BankHoliday of Location1/2 or Location 3

    The formula below highlights if someone has logged less than minimum contractual hrs (8 for location1/2, 9 for location 3) for the dates between cell "O18" and "AS18".
    All works fine, but I want that formula to limit its range up till the date I want to monitor - so starting in "O18" but ending in column "XX18" where "XX" comes from another condition.
    I tried using INDIRECT referring to a value listed into another cell that has the "XX" value instead of "AS18" but the formula returns an error.
    Is it there any limitation into using INDIRECT into an array formula?

    {=IF(OR(G18="Condition1", G18="Condition2"),
    IF(SUMPRODUCT(IF((O18:AS18)<9,1,0),IF(WEEKDAY(O$6:AS$6,2)<6,1,0),IF(O$6:AS$6>L18,1,0), IF(O$6:AS$6<M18,1,0))>0,1,""),
    IF(SUMPRODUCT(IF((O18:AS18)<8,1,0),IF(WEEKDAY(O$6:AS$6,2)<6,1,0),IF(O$6:AS$6>L18,1,0),IF(O$6:AS$6<M18,1,0))>0,1,""))
    }


    Thanks in advance for your help.
    Andrea

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Extend formula range dinamically while using an array ?

    Hi Andrea, welcome to the forum.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Extend formula range dinamically while using an array ?

    You said you have dates in row 18 but, you have:
    IF((O18:AS18)<9...

    what does that mean with respect to dates?
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    09-10-2013
    Location
    Salisbury
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Extend formula range dinamically while using an array ?

    thanks both for your replies. Sorry for my belated update.

    I've managed to solve my issue adding another "index" row that fires "1" if the correspondent date is less or equal to the selected max date in a specific drop down menu or 0 in the other case.
    This way my check works only till the column where that index = 1.

    Cheers,
    Andrea

+ 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. How can I extend the range of formula for multiple cells quickly
    By taylorsm in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-03-2017, 01:24 PM
  2. Can't extend array linked to another excel file!?
    By hjones89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-26-2015, 11:22 AM
  3. Formula range auto extend doesn't work in office 2007
    By crunchor in forum Excel General
    Replies: 3
    Last Post: 08-03-2014, 09:56 PM
  4. Can I make the row lookup array/range part in an array formula variable?
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:06 AM
  5. [SOLVED] Extend current formula for a date range
    By playaller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2013, 06:26 PM
  6. How to extend a changing multi cell array formula down a column.
    By Patrician in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2013, 07:07 PM
  7. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 AM

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