+ Reply to Thread
Results 1 to 5 of 5

Help please! Formula needed for conditional formatting.

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    62

    Help please! Formula needed for conditional formatting.

    This is what I am trying to do.
    A1 and B1 defines a required measurement range that must be met (exp. A1 = .010 / B1 = .020 ).
    C1 is the result of a measurement. C1 to turn red if the # entered is above or below the required range and green otherwise.

    This much I have accomplished, where I am having issues is getting C1 to accept a letter and # formatting ( exp. .015 R ) without result being red.
    Is this possible with a formula or cell formatting??
    Any help would be great!

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Help please! Formula needed for conditional formatting.

    Hello SLIDE1,

    Well, do you have a set of rules on where and how many letters can appear in column C?

    If it's only one letter, and always at the end for e.g, you can always use a TRIM(LEFT(C1,1)) for example, to return the number part of it, and then you can put condition on it just like you do on A and B column
    (copy pasta from Ford)
    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

    Regards,
    Lem

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Help please! Formula needed for conditional formatting.

    Lemice has the right idea, you need to separate the numerical and alphabetical components of C1 while crafting your CF rule. Something like this for RED formatting should work:

    =OR(LEFT($C1,4)+0>=$B$1,LEFT($C1,4)+0<=$A$1)

  4. #4
    Registered User
    Join Date
    09-25-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: Help please! Formula needed for conditional formatting.

    Thanks for your quick response Lem and cantosh !
    That worked great! One letter is not the only entry that will be entered in the cell but I can experiment with the formula and probably get what I need.
    Thanks for your help!

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Help please! Formula needed for conditional formatting.

    Glad we could help! Keep in mind that the formula I offered only looks at the first four characters in C1, so if the numerical portion is longer than that, you may need to modify the "4" in LEFT($C1, 4) accordingly.

+ 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. Conditional formatting formula needed
    By freckles81 in forum Excel General
    Replies: 6
    Last Post: 05-29-2014, 10:34 AM
  2. [SOLVED] Conditional Formatting formula needed!
    By kgowett in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2014, 03:47 PM
  3. Formula needed for conditional formatting
    By NEHicks in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2013, 11:28 AM
  4. [SOLVED] Conditional formatting help needed - 250+ cells with one CF formula?
    By Eelko-Jan in forum Excel General
    Replies: 9
    Last Post: 05-04-2012, 12:46 PM
  5. [SOLVED] Conditional Formatting Formula needed for noob
    By Patrick Byrne in forum Excel General
    Replies: 1
    Last Post: 04-04-2012, 05:48 PM
  6. Conditional Formatting Formula Needed
    By AJT82 in forum Excel General
    Replies: 2
    Last Post: 10-08-2011, 05:15 AM
  7. Conditional formatting formula help needed
    By gloworm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-15-2011, 03:12 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