+ Reply to Thread
Results 1 to 5 of 5

conditional formating sums in brackets

  1. #1
    Registered User
    Join Date
    01-09-2009
    Location
    Paris France
    MS-Off Ver
    Excel 2007
    Posts
    6

    conditional formating sums in brackets

    greetings Fellow Knights of the Round table.

    I've looked carefully through the forum but have been unable to find a similar thread.

    I've got an excel spreadsheet that includes sums in a bracket. I would like to use a formula or conditional formating to highlight the cell,( and ideally the following four cells in the column) where the number in the bracket is over ten. I've tried Conditional formating for number great then ten, but i fear that the text proceeding the number in brackets is not allowing the appropriate formating.

    your advice and wisdom is appreciated, gurus go! example attached. greater than10.xls

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: conditional formating sums in brackets

    Hi ekoot,

    You can use the below formula in conditional formatting:-

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



    see attached:- greater than10.xls

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: conditional formating sums in brackets

    Try this formula, assuming your data is in A1:F35
    Conditional formatting>Use Formula
    =SEARCH("[??]",A1) format as needed

    To exclude 10
    =AND(SEARCH("[??]",A1), NOT(SEARCH("[10]",A1)))
    Does that work for you?

    EDIT; Modify second formula (thanks for the heads up from benishiryo)
    =AND(SEARCH("[??]",A1), NOT(ISNUMBER(SEARCH("[10]",A1))))
    Last edited by ChemistB; 11-29-2012 at 10:36 AM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: conditional formating sums in brackets

    Taking ChemistB's solution further ..
    In Cell D5 CF use..
    Please Login or Register  to view this content.
    this will highlight all 5 cells as required
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: conditional formating sums in brackets

    hi ekoot. also a modification from ChemistB:

    make sure you highlight from the top left to the bottom right of your selection (A1:F35) & go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =AND(OR(ISNUMBER(SEARCH("[??]",OFFSET(A1,-4,,5)))),NOT(ISNUMBER(SEARCH("[10]",OFFSET(A1,-4,,5)))))
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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