+ Reply to Thread
Results 1 to 8 of 8

Indirect / Array

  1. #1
    Registered User
    Join Date
    05-04-2006
    Posts
    91

    Indirect / Array

    formula is

    =MAX(0,SUM(INT((WEEKDAY(MAX($A3,D$2)-{2,3,4,5,6})+MIN($B3,E$2)-MAX($A3,D$2))/7)))

    How to change the array "{2,3,4,5,6}" based off a value in Cell f10?
    Last edited by seanrigby; 03-04-2010 at 10:58 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Indirect / Array

    what does this do?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Indirect / Array

    Also, "How to change the array "{2,3,4,5,6}" based off a value in Cell f10?" is very vague. How do you want to change it? Perhaps seeing a sample workbook with an example result would be best.

  4. #4
    Registered User
    Join Date
    05-04-2006
    Posts
    91

    Re: Indirect / Array

    {2,3,4,5,6} is in regards to Monday, Tuesday, Wednesday, Thursday, Friday. If the week is Friday, Saturday, and Sunday, the array would be {6,7,1}

    The array of the week's days could change, based off the individual person, so that is why the array needs to be somewhat flexible.

    Hope this explains it more.

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

    Re: Indirect / Array

    Sean, please pick a thread and stick to it.

    http://www.excelforum.com/excel-gene...month-end.html

    which do you want to continue with ?

    (ie I was looking at the other thread and then came across this)
    Last edited by DonkeyOte; 03-04-2010 at 06:27 AM.

  6. #6
    Registered User
    Join Date
    05-04-2006
    Posts
    91

    Re: Indirect / Array

    Appologize. Thread was getting way down the list, and was afraid that it wouldn't be seen.

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

    Re: Indirect / Array

    In general terms you can "bump" your thread back up after a respectable amount of time (generally a good few hours - ie nearer a day) - this is done simply by replying to it yourself (eg "bumping").
    Duplicate posts on the other hand will invariably get closed by Mods.

    It's up to you what you want to do in this context - given the main purpose of your prior thread was accounted for a new thread is not necessarily a no-no but if you opt to pursue this you should mark the other as solved and retract the follow up question from it (replace perhaps with a link to this).

    Generally where a thread has had a number of posts etc others who have not posted to it previously will generally not look in on it (assuming it to be "in hand").

  8. #8
    Registered User
    Join Date
    05-04-2006
    Posts
    91

    Re: Indirect / Array

    Understand. I'll close this one, and wait for a reply on the old one, since it gives more explanation. I wasn't aware of the bumping.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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