+ Reply to Thread
Results 1 to 12 of 12

Conditional formatting questions.

  1. #1
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    170

    Conditional formatting questions.

    1)
    Is there a way for me to set the conditional formatting in excel so that the formatting would be affected by the contents of another cell?

    For example, if I were to enter ‘red’ in cell A1, cell B1 would have red for its cell shading.

    2)
    Just to ask, is there a way to add more than 3 conditional formatting conditions to any particular cell?

    Thanks!!

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning lordfa9

    if I were to enter ‘red’ in cell A1, cell B1 would have red for its cell shading
    Yes. Go to Format > Conditional Format
    Set the conditional format to "FormulaIs" and use this formula :
    =$A$1="red"

    is there a way to add more than 3 conditional formatting conditions to any particular cell?
    Yes. Buy Excel 12!!!!!
    The conditional formats here are limited by available memory.

    Alternatively, there is a free add-in, CF-Plus, that you can use to extend your CFs (but it only goes up to 30!). Ive never actually used it, but if you do so and find it useful, please post back your findings.

    http://www.xldynamic.com/source/xld.....Download.html

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    170

    Cool

    thanks!!

    Is there any way to modify the formula to make it dynamic, for example

    The conditional formatting for cell b1 is:
    =$A$1='Red"

    if i want this to be similar for all rows (cell B2's formatting is =$A$2='Red") is there any way i can modify the fomular so that it can latch on to the row (and modify the formula accordingly) to prevent me from manually retyping?

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi lordfa9

    is there any way i can modify the fomular so that it can latch on to the row
    Yes. Just take the "$" signs out of the formula thus :
    =$A$1="red"

    and copy it down.

    HTH

    DominicB

  5. #5
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    170
    Quote Originally Posted by dominicb
    Hi lordfa9



    Yes. Just take the "$" signs out of the formula thus :
    =$A$1="red"

    and copy it down.

    HTH

    DominicB
    i dont really get what you mean, do i need to take out the $ signs from the formula till it becomes

    Please Login or Register  to view this content.
    how do i copy it? do i use the "mouse@the bottom right hand of cell corner and drag" or the copy->paste special methods?

    or a regular copy and paste?

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Just put

    =A1="red" then use auto-fill

    http://www.jegsworks.com/Lessons/num...s/autofill.htm
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  7. #7
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    170
    ok that works for me but the prob is that the cells that i want to apply this conditional formatting to already have data in it. Is there any way to apply the formatting without losing the data?

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Can you give me an example of what you actually want to do?

  9. #9
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    170
    well i have two columns of cells A and B

    a will be the one which determines the conditional formatting of B

    the formula will be something like this:

    Conditional formatting for BX-> =AX="value"

    where X is the row number

    the idea is to apply this formatting for about the 100+rows of the worksheet

    but the problem is that the rows already have data so i don't think autofill is an option

  10. #10
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    right click on source cell and select copy

    Highlight the destination range and right click and select paste special

    Select formatting >OK

    This will just copy the formattiing and leave the contents unaltered

    Ed

  11. #11
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Quote Originally Posted by lordfa9
    well i have two columns of cells A and B

    a will be the one which determines the conditional formatting of B

    the formula will be something like this:

    Conditional formatting for BX-> =AX="value"

    where X is the row number

    the idea is to apply this formatting for about the 100+rows of the worksheet

    but the problem is that the rows already have data so i don't think autofill is an option
    If I understand you correctly, you have numbers in columns A and B, if the number in column B is greater than column A, you want to hightlight the cell?

    If that is the case, then select B1, go to Format > Conditional format, select Cell is..greater than, then click in cell A1, then select the formatting required > OK.

    Now this has set the formatting to B1, with B1 selected, click the Painbrush icon and then select B2:B100 or what ever your range is.

    You should now have all cells in column B highlighted if the value is greater than the equivalent cell in column A.

  12. #12
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    170
    thanks edmac, i'll lose my merged cells but it sure beats having to manually retype that formatting

    Quote Originally Posted by oldchippy
    If I understand you correctly, you have numbers in columns A and B, if the number in column B is greater than column A, you want to hightlight the cell?

    If that is the case, then select B1, go to Format > Conditional format, select Cell is..greater than, then click in cell A1, then select the formatting required > OK.

    Now this has set the formatting to B1, with B1 selected, click the Painbrush icon and then select B2:B100 or what ever your range is.

    You should now have all cells in column B highlighted if the value is greater than the equivalent cell in column A.
    not really the idea is have the cells linked in this way

    Conditional formatting for B1-> =A1="value"
    Conditional formatting for B2-> =A2="value"
    ...
    ...
    ...
    and so on

+ 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