+ Reply to Thread
Results 1 to 7 of 7

conditional formatting for multiple cells

  1. #1
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    171

    conditional formatting for multiple cells

    Hi everyone,

    I have set up a VBA and from that I get Names in cells A and in b1, b2 etc I have the up to date number which is refreshed every 2 minutes numbers and saved into the next available cells (c1, d1 etc). Eventually there will be 20 - 30 players so data will be quite hard to read.

    I have managed to set up conditional formatting so that if cells c1 to h1 are equal to b1 the colour is orange, if less then blue and greater than is green.

    At present I can only do it so that it is always linked to b1, but if you see the attachment I am wanting it so each cell is conditional formatted against the previous cell ie c1 is linked to b1, d1 to c1 etc. I can do this but only by setting each conditional format manually, so when I do have 20 players and inormation going up to cells BB it will be too much to carry out manually. is there a way to set something up so this can be set up automatically?

    Sorry I find this hard to explain but hopefully the attachment will help.

    Thanks in advance
    Julie
    Attached Files Attached Files
    Last edited by batjl9; 03-07-2011 at 01:12 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: conditional formatting for multiple cells

    Your post does not comply with Rule 8 of our Forum RULES.

    Cross-posting is when you post the same question in other forums on the web.

    You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere.

    We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this


    Also interesting that you go by 2 different forenames...

  3. #3
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: conditional formatting for multiple cells

    thanks I completely understand the need to provide link. its just i am in need of an answer asap hence posting elsewhere too. please find link below:

    http://www.mrexcel.com/forum/showthr...55#post2636655

    btw my name is gemma. i am using my sisters account who is julie and as she has posted here before i felt it best to use her forename on post.

    regards
    Gemma

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: conditional formatting for multiple cells

    Gemma, this is all possible with relative referencing.

    Using your sample clear all conditional format rules from C3:H3
    (select C3:H3 -> Home Tab -> Conditional Format -> Clear Rules -> Selected Cells)

    Then with those cells still active apply your new rules using mixed references, eg:

    Please Login or Register  to view this content.
    Getting to grips with relative & absolute referencing is important - very basic overview of the differences here: http://www.cpearson.com/excel/relative.aspx

  5. #5
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: conditional formatting for multiple cells

    Thanks for reply. can i ask something which is probably very simple just not sure. once i am ready to apply my new rules where exactly do i put them? do i go back onto cond. formatting and add a new rule, if so i am unsure which rule type to pick.

    i appreciate your help.

    Gemma
    Last edited by DonkeyOte; 03-07-2011 at 01:10 PM. Reason: removed unnecessary quote

  6. #6
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: conditional formatting for multiple cells

    one minute after i posted i worked it out lol

    thanks again i am very grateful.

    Gemma

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: conditional formatting for multiple cells

    First remove any pre-existing rules as outlined.

    When setting up the replacement rules:

    -- choose option: "Use a Formula to Determine Which Cells to Format"
    -- enter your formula
    -- apply your format as appropriate
    -- OK out of the dialogs

    If in doubt Google - you should find plenty of material on Conditional Formatting specific to XL2007 as this feature changed significantly from XL2003.

+ 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