+ Reply to Thread
Results 1 to 9 of 9

Date specific formula

  1. #1
    Registered User
    Join Date
    05-18-2011
    Location
    Torbay
    MS-Off Ver
    Excel 2003
    Posts
    6

    Date specific formula

    Hi Guys,

    I hope you can help with the problem that has been puzzling me for days now. Here goes!

    I have a table of figures in one sheet with months Jan-Dec and a list of staff. In a seperate sheet I want cells to reference information from the first sheet but I want them to change automatically when each month expires.

    So, basically, ideally, sheet 2 will relate to staff member A's stats for January as shown in the first table until the 1st of February, (real time) when it will automatically change to February's figures.

    I hope that makes sense and that there is a way to do this!

    Many thanks for any advise you can give.
    Last edited by Tall Josh; 05-19-2011 at 06:03 AM.

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

    Re: Date specific formula

    Any chance of a sample workbook?

    Regards
    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
    Registered User
    Join Date
    05-18-2011
    Location
    Torbay
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date specific formula

    Sorry, I'm new to this forum, I'm trying to work out how to give a sample! So, when I work it out, tab 'Figures' is where the info is coming from and tab 'Staff Member 1' cells F9 - F28 is where the info needs to hit. But relevant to real time dates.

    Thank you in advance for any advise.

  4. #4
    Registered User
    Join Date
    05-18-2011
    Location
    Torbay
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date specific formula

    Okay, got it, here it is.
    Attached Files Attached Files

  5. #5
    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,487

    Re: Date specific formula

    Calls:
    =OFFSET(Figures!$A$1,MATCH($L$2,Figures!$A:$A,0)+2,MATCH($F$2,Figures!$A$2:$M$2,0)-1)

    Bookings:
    =OFFSET(Figures!$A$1,MATCH($L$2,Figures!$A:$A,0)+6,MATCH($F$2,Figures!$A$2:$M$2,0)-1)

    Where F2 has the Date: 01/mm/yy
    And L2 has the Staff Name/Number


    I don't think you're doing yourself any favours with all the blank rows and merged cells.

    And the repetition of the headings on the Figures sheet is just a waste of space. IMO it just makes it very hard to read.

    Anyway, your design ;-)

    You'll also need to adjust the charts to reflect the staff member. Haven't gone there given I don't know if this answers your question or not.

    Regards

  6. #6
    Registered User
    Join Date
    05-18-2011
    Location
    Torbay
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date specific formula

    Thanks for this. I will have a play and let you know.

  7. #7
    Registered User
    Join Date
    05-18-2011
    Location
    Torbay
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date specific formula

    Hi TMShucks,

    I know all the blank cells and merged cells are a little unauthodox but this sheet is to be printed as a monthly hand out so it needs to look nice on paper. I take your point on repetative headings, can't really remember why I set it like that, (maybe a copy and paste job!)

    I can't get the formula to work though, I'm sure it's me, but anyway, I will keep playing.

    Thank you again

  8. #8
    Registered User
    Join Date
    05-18-2011
    Location
    Torbay
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date specific formula

    Okay, it does work perfectly, thank you very much.

  9. #9
    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,487

    Re: Date specific formula

    That's what I like: leave the question floating for an hour and you find the answer yourself ;-)

    Thanks for the rep. If your question is now answered, please mark the thread as solved.

    Regards

+ 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