+ Reply to Thread
Results 1 to 5 of 5

Thread: Date Formula

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Salisbury, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Date Formula

    On the attached sheet is a part time shift pattern. I want to type in the column A just the day and need a formula in coumn B to generate the correct date based on the dates in sequence above - is this possible?

    Thanks in advance.Date Query.xls

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Help with Date Formula

    Hello,

    one possibility: in B3

    =B1+MATCH(A2,{"Mon","Tue","Wed","Thu","Fri","Sat","Sun"},0)-MATCH(A1,{"Mon","Tue","Wed","Thu","Fri","Sat","Sun"},0)+7

    copy to B7 and B10. The formula will look at the three letter day code in column A of the previous row and the date in column B of the previous row, so it will only work if there is a valid three letter code and date in column A and B.

    cheers,

  3. #3
    Registered User
    Join Date
    10-12-2011
    Location
    Salisbury, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Help with Date Formula

    Hi Teylyn

    Sorry I should have been more specific!

    I need to keep the existing blank rows blank, if that's possible. Also I wanted to take the folmula and run it down the column so I don't have to paste it into specific cells. This makes it very easy to add to or update.

    What do you recon?

    Thanks

    Dave

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    617

    Re: Date Formula

    Perhaps it would help if you could clarify the rationale to the shift pattern? is there a specific number of Fridays per month or is it the 1st and 3rd Sat? I've been looking at it for a while and it doesn't seem to have any fixed pattern
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Registered User
    Join Date
    10-12-2011
    Location
    Salisbury, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Date Formula

    I'm afraid it doesn't - apart from the fact that I work every Friday. There is not pattern to a Saturday or Sunday shift as such, sometimes it's just Friday on it's own.

+ 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.2.0