Closed Thread
Results 1 to 5 of 5

WEEKDAY not working correctly need HELP!!!

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    14

    WEEKDAY not working correctly need HELP!!!

    my week is from wed of this current week to folowing tues and payroll is following friday so 7/23/12 would give me 7/27/12
    i have this weekday formula but didnt work

    =C18-WEEKDAY(C18,3)+11
    it shows up to following friday
    but everything from 7/18/12-7/22/12 is correct
    but 7/23/12 and 24 move to 8/3/12
    if i can figure a formula then code wont be necessary
    just that in 2007 it doesnt have input option past 3 to change order of weekday start day
    7/22/12 should return 7/27/12
    7/23/12 should return 7/27/12
    7/24/12 should return 7/27/12
    7/25/12 should return 8/3/12
    7/26/12 should return 8/3/12
    7/27/12 should return 8/3/12
    7/28/12 should return 8/3/12

  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,297

    Re: WEEKDAY not working correctly need HELP!!!

    Maybe:

    =C18+IF(WEEKDAY(C18,2)<=3,5-WEEKDAY(C18,2),12-WEEKDAY(C18,2))


    Regards, TMS
    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 Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: WEEKDAY not working correctly need HELP!!!

    hmm duplicate post
    http://www.excelforum.com/excel-gene...t-working.html
    "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

  4. #4
    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,297

    Re: WEEKDAY not working correctly need HELP!!!

    Oh,tut

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: WEEKDAY not working correctly need HELP!!!

    devil20a:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed 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