+ Reply to Thread
Results 1 to 8 of 8

Having problem work on a date to work on 1 to 18 week

  1. #1
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Having problem work on a date to work on 1 to 18 week

    Hi Guy.

    I'm work on formula and I can't work out to get date. I'm not that good on date. Can you help.

    I'm try get formula work on Date Yellow Column I:I. Need get formula work to get a Date. Look below to work with
    Season Start = 13/10/2011
    Freq = 4
    No Match Day = 03/11/2011, 17/11/2011 & 22/12/2011
    Day = Thursday
    Week = 1 to 18
    New Date & Cancelled

    Look at test file.
    Last edited by micope21; 01-15-2012 at 05:41 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Having problem work on a date to work on 1 to 18 week

    In words, what are you trying to do?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Having problem work on a date to work on 1 to 18 week

    Word is

    Need formula on Season Date, Freq, No match Day, Day, Week and New date & Cancelled.

    I' m more in excel 2003 code. Now I got excel 2010 for 4 month now. There lot to learn new code on excel 2010. Formula I have try is this
    =IF($F5<>"",IF(OR($O$5="",E5=""),"",IF($P$5=14,SMALL(IF(ISNA(MATCH(ROW($1:$200)*$P$5-$P$5+$O$5,$Q$5:$Q$14,0)),(ROW($1:$200)*$P$5-$P$5+$O$5),""),E5),SMALL(IF(ISNA(MATCH(ROW($1:$200)+$O$5-1,$Q$5:$Q$14,0))*(ISNUMBER(MATCH(WEEKDAY(ROW($1:$200)+$O$5-1,2),$P$5,0),""),E5)))

    It not working. I spent all day change code. Nothing at the moment.
    Hopeful some guy out there knew where I gone wrong.
    Last edited by micope21; 01-15-2012 at 12:49 PM.

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Having problem work on a date to work on 1 to 18 week

    I am not sure I fully understand. The attached basically doing this.

    Return all the day specified in R3, start date in O3 & skip dates in Q5:Q7. If F5:F111 contains a value put them in corresponding cell in G5:G111.

    Since you are on XL2010 used WORKDAY.INTL function. O7:P15 are helper to weekend array in WORKDAY.INTL. 1 means non-workday 0 means workday.

    See the attached. Hope this helps.
    Attached Files Attached Files
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Having problem work on a date to work on 1 to 18 week

    Hi
    Haseeb A

    That new.
    You done it right. nearly there.

    You done G5 date on. But need G6, G7 ,G8, G9 and rest to 18 all need date on. Not blank.

  6. #6
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Having problem work on a date to work on 1 to 18 week

    Haseeb A

    Something wrong on G23 on Number 4. I explain in the date to work on 1 to 18 week file
    Attached Files Attached Files
    Last edited by micope21; 01-15-2012 at 05:18 PM.

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Having problem work on a date to work on 1 to 18 week

    Try this,

    =IF(E5="","",IF(F5<>"",F5,WORKDAY.INTL(O$5-1,E5,O$15,Q$5:Q$7)))

  8. #8
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Having problem work on a date to work on 1 to 18 week

    Quote Originally Posted by Haseeb A View Post
    Try this,

    =IF(E5="","",IF(F5<>"",F5,WORKDAY.INTL(O$5-1,E5,O$15,Q$5:Q$7)))
    Haseeb A

    Brilliant code. Look very simple. It work with all date. Just that I'm not good on date code. I change No match day to Q5:Q10. Some season it not just 3 sometime 4 up to 6.

    Thank you very much for your brilliant code.

    You take care mate
    Problem Solved

    Cheer

+ 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