+ Reply to Thread
Results 1 to 4 of 4

Fill Cell(s) with colour based on duration/time and keywords

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    58

    Fill Cell(s) with colour based on duration/time and keywords

    Hi everyone, I need some help on a urgent request.

    I'm trying to make a timetable/schedule system which basically fills certain cells selected based on duration/time of a specific word/phrase for example, in this picture

    eZAXAFw.jpg

    As you can see, Jessica is booked in at 11am, M+P duration is 45mins as you can see, the highlight stops at the 11:45am. B/Dry starts at 10:30am and ends at 11am. Is this function possible in some way?

    The way I currently do it is manually highlight the cells however I was wondering if this operation could be done automatic?

    So if I select for example, D7 and write M+P there, it would highlight 4 cells from D7, which would result D7,D8,D9,D10 highlighted.

    If anyone could help me, I would really appreciate this as this up for a very important assignment.

    Thanks everyone~!
    Last edited by liqt; 06-12-2015 at 10:17 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Fill Cell(s) with colour based on duration/time and keywords

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Fill Cell(s) with colour based on duration/time and keywords

    I have attached an example.

    QVuONgr.png

    Here's a example picture, as you can see, I want keywords such as "M+P" to highlight 4 cells below and "B/Dry" to highlight 3 cells for example, if "+/" can't be used, it doesn't matter. I just want to try get keywords multi-cell filled with colour (a way of showing duration)

    Right now, I have to manually highlight the cells and fill with colour, I was wondering if theres an automated way based on finding the criteria of certain words to fill multiple cells below from the first selected cell, if M+P is on D5, D5/D6/D7/D8 will be filled.

    I was wondering if this could be easily filled by just words, so I don't have to add the formula everytime, something similiar to like a VLOOKUP? where you just look up word and it will do the result for you automatically if that makes sense?

    Thanks for your help!
    Attached Files Attached Files
    Last edited by liqt; 06-12-2015 at 10:48 PM.

  4. #4
    Registered User
    Join Date
    05-25-2012
    Location
    Chennai,TamilNadu,India
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    61

    Re: Fill Cell(s) with colour based on duration/time and keywords

    Please find attached the solved file. It is a macro containing file, so enable the macros when you are opening it.

    TYPE YOUR IN ANY CELL AND HAVING IT SELECTED, PRESS CTRL+M - THIS WILL COLOR THE CELLS BASED ON THE ENTRY MADE
    TO REMOVE THE COLORS SELECT THE COLORED AREAS, PRESS CTRL+J

    Hope this helps
    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. Fill cell(s) with colour based on Duration/Time and Words
    By liqt in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-13-2015, 03:55 AM
  2. auto fill-in current date/time and duration
    By aturetsky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2013, 02:19 PM
  3. Fill Colour of a cell based on another cell Fill Colour
    By ConorK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2012, 07:09 AM
  4. Fill cell colour based on value
    By bd528 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2010, 08:47 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