+ Reply to Thread
Results 1 to 4 of 4

Fill cell with text based on dates and text in another table

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Fill cell with text based on dates and text in another table

    Hello,

    I'm badly in need of some help

    I have one worksheet setup as a yearly calendar

    Several other worksheets (one worksheet per month) are used to keep track of staff names and their rostered days off work

    I would like to setup a macro where the names are automatically added to the appropriate calendar cell in the first worksheet once they have been listed in the monthly worksheet.


    Something like (IF date in monthly worksheet = calendar cell THEN add Name next to date from monthly worksheet to Calendar cell) Do for entire list of names / dates in monthly worksheet

    Thanks in advance

    triptich
    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: Fill cell with text based on dates and text in another table

    Take a look at the attachment that I provided in this thread:

    http://www.excelforum.com/excel-form...e-to-tab2.html

    It seems to do what you are asking for without using macros.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-21-2013
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Fill cell with text based on dates and text in another table

    Thanks for your quick reply,

    Your example has got me a little bit excited, however I got lost trying to decipher which bits I coud co-opt into my own worksheet.

    I think this line is the one I need to play with to return the list of people away for the day (multiple people can be away on each day)

    =IF(ISNA(MATCH(D4&"_"&$A11,Leave_booker!$A:$A,0)),"",INDEX(Leave_booker!$C:$C,MATCH(D4&"_"&$A11,Leave_booker!$A:$A,0)

    The calendar setup in your example has 12 cells per calendar day (for up to 12 staff i guess), I need to list all the names in a single cell if possible.

    Any advice on where to go from here?

    Would something like this work?

    =IF(D3:D5=41275, B3:B5,"No RDO Today") Where B3:B5 would hopefully be a list of the names listed against the date 1/01/2013


    thanks

    T
    Last edited by triptich; 09-21-2013 at 10:42 PM.

  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: Fill cell with text based on dates and text in another table

    In the attached (amended) file, you list the date and name in the Leave_booker sheet in any order. Then in the Calendar sheet you can select the month and year using the drop-downs in K2 and K3 - the display will automatically adjust.

    I've changed the formulae so that up to 6 names can be shown in a single cell for the same day. Copy the formula in cell A2 of the Leave_booker sheet beyond A300 if you need to record more data.

    Hope this helps.

    Pete
    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. Change fill colour based on text in a cell
    By Doogles10 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 07-01-2013, 03:30 PM
  2. Replies: 10
    Last Post: 06-19-2013, 05:28 PM
  3. Replies: 2
    Last Post: 11-29-2012, 11:27 AM
  4. Replies: 1
    Last Post: 05-06-2010, 03:09 AM
  5. [SOLVED] How to auto-fill text based on text in another cell
    By Jason in forum Excel General
    Replies: 2
    Last Post: 02-16-2005, 04:37 PM

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