+ Reply to Thread
Results 1 to 5 of 5

Copy cells to worksheet based on todays date

  1. #1
    Registered User
    Join Date
    12-04-2017
    Location
    london
    MS-Off Ver
    2016
    Posts
    4

    Copy cells to worksheet based on todays date

    hello everybody

    this is probably really easy, but I am trying to improve an existing roster planner and need some assistance with a suitable formula .

    Essentially, I'm aiming for a main page to display various KPI data, but it also needs to show who will be on which shift

    I've got that bit worked out, but need to transfer the shift attendance results to the main page - see simplified example

    On the annual page, each day of the year has 15 spaces for each shift, So I need to lookup today's date, and then report the shift members on that date in the appropriate place on the main page.

    Grateful for any advice

    regards

    heffers
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Copy cells to worksheet based on todays date

    Put this formula in C7 of the Dashboard sheet:

    =IFERROR(INDEX(Annual!$C$10:$W$24,ROWS($1:1),MATCH($C$2,Annual!$C$9:$W$9,0))&"","")

    and this in E7:

    =IFERROR(INDEX(Annual!$C$25:$W$39,ROWS($1:1),MATCH($C$2,Annual!$C$9:$W$9,0))&"","")

    Then copy down to row 21.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-04-2017
    Location
    london
    MS-Off Ver
    2016
    Posts
    4

    Re: Copy cells to worksheet based on todays date

    Pete,

    thank you for this reply - it works perfectly on my versions of excel (2016 and 2013) but when uploaded to the final user, (who is still using excel 2007) the results of these formulae do not appear.

    should it be backwards compatible or could it be a restriction on the users setup?

    regards

    heffers

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Copy cells to worksheet based on todays date

    I use Excel 2007, and it works for me. I suspect that the data arrangements on your final user's file is slightly different, so you need to check out the cell references on that file. Also, check that the sheet is actually named "Annual", and not "Annual " (i.e. with a space at the end, or at both ends).

    It might help to remove the IFERROR( ... ,"") from around the formula, to see what errors are produced.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    12-04-2017
    Location
    london
    MS-Off Ver
    2016
    Posts
    4

    Re: Copy cells to worksheet based on todays date

    Pete

    your advice certainly does assist greatly.

    I thought it odd that it works for you and not the end user, so I loaded up a version of 2007 on an old machine and did some checking.

    There is no fault with your formula, it is in fact the formula used to populate the data fields on the Annual worksheet - Doh !!

    these fields are populated by variations of

    =IFERROR(INDEX($B$11:$B$99,AGGREGATE(15,6,ROW(D$11:D$99)-ROW(D$10)/(D$11:D$99=OFFSET($B$115,INT((ROWS($1:1)-1)/15)*15+1,0)),MOD(ROWS($1:1)-1,15)+1)),"")


    which provides the data that your formula references to. I suspect this formula needs to be in a format 2007 understands since AGGREGATE didnt exist until 2010.

    Would it be easier to extract the early / late data on a date basis directly from the annual sheet into cells on the dashboard page?

    Current annual page attached

    heffers
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 01-05-2015, 03:57 PM
  2. [SOLVED] Find Row with Todays Date and Copy certain Cells to New Row.
    By JRidge in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2014, 08:07 AM
  3. VBA to format cells based on difference from todays date
    By Cantdoexcel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2012, 04:27 AM
  4. Colored Cells for Deadlines based on todays date
    By ExtCare in forum Excel General
    Replies: 7
    Last Post: 06-19-2012, 10:22 AM
  5. Copy a worksheet and rename with todays date
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2011, 06:29 AM
  6. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 AM
  7. Filling cells with 3 different colors based on date in cell and todays date
    By chinookcrew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-23-2009, 07:36 AM

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