+ Reply to Thread
Results 1 to 3 of 3

Lookup date in range depending on a number

Hybrid View

  1. #1
    Registered User
    Join Date
    09-05-2005
    Location
    Basingstoke, England
    MS-Off Ver
    2003
    Posts
    86

    Lookup date in range depending on a number

    Hello,

    I have a Master workbook with 4 sheets named WEEK 1 to WEEK 4. At work we work around 13 4 week periods and need this workbook to be dated accordingly, that is Period 1 Week 1 and date of first day (Sunday) of that period. The ideal solution would be for the user to enter 1 to 13 into a cell and via a button all dates to be populated and a new workbook created for that period. I have attached a sample workbook with the 4 weekly sheets and a date range on another sheet to show the range I need the dates from. I hope the workbook explains what I need better than my explanation here! If anyone can give me a few pointers I would be most grateful, many thanks.
    Attached Files Attached Files
    Last edited by Ducatisto; 05-05-2009 at 07:26 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: Lookup date in range depending on a number

    try in d4 week 1
    =CHOOSE(E2,Dates!C4,Dates!C5,Dates!C6,Dates!C7,Dates!C8,Dates!C9,Dates!C10,Dates!C11,Dates!C12,Dates!C13,Dates!C14,Dates!C15,Dates!C16)
    "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
    Registered User
    Join Date
    09-05-2005
    Location
    Basingstoke, England
    MS-Off Ver
    2003
    Posts
    86

    Re: Lookup date in range depending on a number

    Quote Originally Posted by martindwilson View Post
    try in d4 week 1
    =CHOOSE(E2,Dates!C4,Dates!C5,Dates!C6,Dates!C7,Dates!C8,Dates!C9,Dates!C10,Dates!C11,Dates!C12,Dates!C13,Dates!C14,Dates!C15,Dates!C16)
    Thank you for your reply, Excel seemed to find an error and prompted me to choose whether to correct it which I clicked yes and all was well, thank you.
    Last edited by Ducatisto; 05-05-2009 at 07:25 AM. Reason: Correction

+ 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