+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Problem

Hybrid View

  1. #1
    Registered User
    Join Date
    06-30-2007
    Posts
    26

    Conditional Formatting Problem

    I was wondering if anyone can help.

    I have a spreadsheet that contains times in certain cells e.g Cell A1 contains 0900-1800

    Due to a certain process. I want to add a letter to the front of the time e.g L0900-1800

    I now want conditional formating Fill Cell A1 with a colour, any colour for the example.

    The times in the cells are all the same format e.g 1700-2300 but can be any time period. Unfortunately its not just 4 or 5 time frames. I have tried A1="L*" but no luck.

    I just cant work out how to add a letter to the front of the time and get conditional formatting to change the cell fill colour to highlight a letter has been added. (I know that it should stand out as there is a letter infront of the time, but I require a second visual guide.

    Thanks in anticipation
    Last edited by dave6726; 04-02-2011 at 06:26 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formatting Problem

    Use the formula option in CF
    =LEFT(A1)="L"
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional Formatting Problem

    Try this

    Formula is:=
    =LEFT($A1,1)="L"

    Applies to:=
    =$A:$A

    Format.......
    Your choice

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    06-30-2007
    Posts
    26

    Re: Conditional Formatting Problem

    Thanks Guys

    You have both been a great help on the learning side.

    I was trying to hard and seemed to have missed the simple solution.

    Thank you for you time.

    Dave

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formatting Problem

    Hello,

    you cannot change the value of a cell with conditional formatting or formulas. If you want to prepend the cell content with an L, based on certain conditions, then you either have to do it manually or with VBA.

    After the L has been inserted, you can use Martin's suggestion for the conditional format to highlight the cells.

+ 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