+ Reply to Thread
Results 1 to 7 of 7

Help with conditional formatting based on cell values

  1. #1
    Registered User
    Join Date
    01-26-2015
    Location
    Scunthorpe
    MS-Off Ver
    Office Standard 2010
    Posts
    2

    Help with conditional formatting based on cell values

    Hello everyone, I'm new to this forum and I'm after you help. I'm self taught at excel and I'm now getting to the stage where I can't solve problems by leaching forums.

    I have created a workbook which uses conditional formatting based on a specific cell value. I am making the book to measure pupil progress.

    I have done this by going into the "Edit Formatting Rule" within conditional formatting.

    I have selected "Format all cells based on their values"

    Then using a 3 colour scale I have created values based on "minimum", "midpoint" and "maximum" - all using the number

    format1.JPG

    The reason for doing this is so that I can see if progress made is red, amber or green or a variation of the colours based on this colour scale.

    This formula works for the specific row but if I want to use it for the next row then I have change the values after copying them. I do this by copying the cell, then going back into the "Edit Formatting Rule" within conditional formatting I change the cell values to make them relevant to that row. This has to be done manually for each row.

    format2.JPG

    I have now done this for 100 rows and have completed it 6 times (for each half term of the school year). This took me quite a while! What I now want to do is create an even bigger database with drop down menus. However I would need to change the conditional formatting manually for a minimum of 1800 rows and I just don't have the time for that. Therefore, my question to this community is "Is there any formula I can use which would automatically change the cell reference to the next row" e.g. =$F$2+(($G$2/12)*1) would become =$F$3+(($G$3/12)*1) automatically when copied without having to manually change the 2 to a 3.

    Thanks in anticipation

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Help with conditional formatting based on cell values

    Just remove the dollar sign in front of the row number. For example, instead of $F$2, you would put $F2.

    The dollar sign makes that part of the cell address absolute.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Help with conditional formatting based on cell values

    Welcome to the forum

    Remove the $ Sing between F and 2 & G and 2
    Edit
    =$F$2+(($G$2/12)*0) as =$F2+(($G2/12)*0) or =$F2+$G2/12*0
    =$F$2+(($G$2/12)*1) as =$F2+(($G2/12)*1) or =$F2+$G2/12*1
    =$F$2+(($G$2/12)*2) as =$F2+(($G2/12)*2) or =$F2+$G2/12*2
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    01-26-2015
    Location
    Scunthorpe
    MS-Off Ver
    Office Standard 2010
    Posts
    2

    Re: Help with conditional formatting based on cell values

    Hi, When I try that it comes up with the message:

    format3.JPG


  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Help with conditional formatting based on cell values

    Instead of colour scales, use formulae.

    Select all of the cells to apply it to, and use

    Green: =J2>=($F2+(($G2/12)*2))
    Amber: =J2>=($F2+(($G2/12)*2))
    Red: =J2>=($F2+(($G2/12)*2))

    where J2 is the first cell in the target range. Make sure they are applied in that order.

  6. #6
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Help with conditional formatting based on cell values

    Quote Originally Posted by TMS View Post
    Just remove the dollar sign in front of the row number. For example, instead of $F$2, you would put $F2.

    The dollar sign makes that part of the cell address absolute.

    Regards, TMS
    Did you try that? I did, and it said I cannot use relative formulae.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Help with conditional formatting based on cell values

    Nope Mea culpa, mea culpa ...

+ 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. [SOLVED] Conditional formatting based on two cell values
    By Thinker8 in forum Excel General
    Replies: 7
    Last Post: 09-22-2013, 12:50 AM
  2. [SOLVED] Conditional Formatting Based on Values in another Cell
    By jdegeorge in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-12-2013, 02:35 PM
  3. Conditional Formatting based on cell values
    By nickbrandon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2013, 08:26 AM
  4. Conditional Formatting based on several cell values
    By jpruffle in forum Excel General
    Replies: 3
    Last Post: 09-28-2009, 08:02 AM
  5. [SOLVED] conditional formatting based on values of another cell
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2005, 04:05 AM

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