+ Reply to Thread
Results 1 to 6 of 6

Inserting times and formating

  1. #1
    Registered User
    Join Date
    12-18-2011
    Location
    Liverpool,england
    MS-Off Ver
    Excel 2010
    Posts
    21

    Inserting times and formating

    I have a spreadsheet where I would like to enter a shift time into a cell, for example 11.00 - 14.00, and the sheet automatically colour fills certain cells relating to that time. Attached is an example of what I mean.
    Any help appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Inserting times and formating

    I've recreated a bit you time into time similar syntax and values, like below:

    Capture.JPG

    then into B3:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    drag it right and down and applied Conditional Formating for cell with x as yellow background/yellow font (range B3:D26).
    Check attached file.
    Should works as needed.
    Attached Files Attached Files
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Inserting times and formating

    Your times are not consistent with the values in column A.

    See this file, note the formulas in column B D and F
    and the conditional formatting
    Attached Files Attached Files
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Inserting times and formating

    you can do that with a conditional formatting rule that contains an AND for the rule..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I picked a blue color. you should see the result in the file when you open it.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-18-2011
    Location
    Liverpool,england
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Inserting times and formating

    Works great, any chance that the conditional formatting can turn the cells blue and display "0.5" in each cell?

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,561

    Re: Inserting times and formating

    Try the following:
    1. Use Roel's formula as a conditional formatting rule.
    2. Modify the formula as follows and use it to place the '0.5' values in the highlighted cells:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Inserting a new line on table does not keep conditional formating
    By nsmjc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2015, 09:31 AM
  2. Inserting a chart several times into a word document
    By Markc1001 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-12-2015, 10:44 AM
  3. [SOLVED] Macro for inserting multiple rows with Formulae and formating
    By sreerajmp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-06-2012, 11:47 PM
  4. Formating Times. AM & PM problems.
    By Uhland in forum Excel General
    Replies: 4
    Last Post: 02-15-2008, 10:32 PM
  5. Conditional formating and inserting rows
    By Shocked in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2007, 12:55 PM
  6. Inserting and formating variables in header
    By Strabo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-16-2006, 09:10 PM
  7. Replies: 0
    Last Post: 03-14-2006, 01:10 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