+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting help....formula based...

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    Canada
    MS-Off Ver
    excel 2014
    Posts
    33

    Conditional Formatting help....formula based...

    Hello,

    I need help on conditional formatting. In coloumn "P" in my excel sheet I want to apply conditional formating where if that sum total does not exceed or is less than the total of columns "A + B + C +D". I would like the colour to highlight when it does exceed or less than those amounts in red....can anyone help me. It is a newbie question and appreciate if someone can help me so I can learn and get better in excel...thanks...
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting help....formula based...

    Welcome to the forum.
    You say you want it to highlight when it 'does not exceed or less', which reads to me that you want it to be equal to - and for it to highlight in red if not equal to.
    Select the range you want to conditionally format (P5:P100, let's say), click 'Conditional Formatting' then 'New Rule' then 'Format only cells that contain'. At the bottom of the dialogue box, leave 'Cell Value' as it is, change 'between' to 'not equal to' and enter '=SUM(A5:D5)' in the right-hand box. Click the 'format' button and choose the highlighting you want (red fill, red text, whatever), then click OK.

    If you want 'equal to or less than', use <=
    If you want 'equal to or greater than', use >=

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    09-14-2016
    Location
    Canada
    MS-Off Ver
    excel 2014
    Posts
    33

    Re: Conditional Formatting help....formula based...

    I appreciate the advice...and have been able to get it done...but how do I do it for each line...is there a way to drag and drop....so I can automate the process because right now I was able to do "does not equal to sum:a5:d5" but the next line I want it to be "does not equal to sum:a6:d6"... basically I was hoping to drag the condition and make it change...please let me know if you can help me further and thanks again!

  4. #4
    Registered User
    Join Date
    09-14-2016
    Location
    Canada
    MS-Off Ver
    excel 2014
    Posts
    33

    Re: Conditional Formatting help....formula based...

    actually I think I figured it out by playing with the formulas

    I attached a screenshot to illustrate what I did...

    Capture.JPG

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting help....formula based...

    Excel doesn't make it particularly clear, but Conditional Formatting will automatically change the cell reference (column and/or row) to match the range selected. So if you select the range you need (P5:P100, for example) then refer to row 5 in the CF formula (as you have) then when Excel looks at P6, it'll read the CF formula as 'Cell Value - not equal to - =SUM($A6:$D6)' and so on.

    If you have set up CF for a small range and want to extend it (let's say you did just P5 and want to extend it to P5:P10) then there are two methods:
    1. Select P5 and use the 'Format Painter' tool (beside the Paste button on the Home tab of the ribbon) to copy the formatting (which includes CF) to the other cells P6:P10.
    2. Click 'Conditional Formatting' then 'Manage Rules', select the rule whose range you want to amend and change the range in the 'Applies to' box.

    Hope that helps.

+ 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 based on Formula
    By arjkot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2016, 12:59 PM
  2. [SOLVED] Formula based on Conditional Formatting
    By kimmycoop910 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-22-2016, 12:56 AM
  3. [SOLVED] Help with Conditional Formatting Based on Formula
    By rosboy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2013, 12:29 PM
  4. [SOLVED] Conditional Formatting based on a Formula
    By bbyrne in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2012, 08:47 PM
  5. Conditional formatting based on formula
    By Alan35 in forum Excel General
    Replies: 3
    Last Post: 08-22-2011, 08:15 PM
  6. Conditional Formatting based on Now formula
    By Aelestra07 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2010, 03:10 PM
  7. [SOLVED] Conditional formula based on formatting
    By RD in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 01:55 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