+ Reply to Thread
Results 1 to 9 of 9

conditional formatting, cell value > previous cell value (extended over range)

  1. #1
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    conditional formatting, cell value > previous cell value (extended over range)

    Good afternoon,

    Small example of how my data looks like
    Knipsel.PNG

    Now i would like to have the cell in the 2nd column to be red when the cell value is higher than the cell value in the first column.
    ( i have much more columns than in the example) so i need some kind of formula in the conditional formatting which states B1>A1 than make B1 red. That should then apply to the whole range.
    Last edited by Gaellus; 02-11-2019 at 07:43 AM.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,495

    Re: conditional formatting, cell value > previous cell value (extended over range)

    What you need to do is to make columns absolute

    so in $B1>$A1

    then you van apply the result to any amount of columns by setting the applied range f.e. to B1:K500
    that will color all columns from B to K for each row that meets the set formula condition

  3. #3
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: conditional formatting, cell value > previous cell value (extended over range)

    that works. Only problem now is when the cell in column B is empty and there is something in column A, the cell becomes red ..
    I tried someting like and($B1>$A1;$B1>0) but does not work.

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,495

    Re: conditional formatting, cell value > previous cell value (extended over range)

    that should work. did you forget the = sign before and by any chance?

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

  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, cell value > previous cell value (extended over range)

    Use this and apply to the entire range:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In het Nederlands:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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.

  6. #6
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: conditional formatting, cell value > previous cell value (extended over range)

    Quote Originally Posted by Aardigspook View Post
    Use this and apply to the entire range:
    In het Nederlands:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    working with 2 laptops with on the one excel in english and on the other one having excel in dutch was my problem.
    I used AND when i should have used EN. It works now. Thanks!!

  7. #7
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,495

    Re: conditional formatting, cell value > previous cell value (extended over range)

    haha, that is a familiar problem for me too

  8. #8
    Registered User
    Join Date
    02-06-2019
    Location
    Bangalore, India
    MS-Off Ver
    MS Office 2013
    Posts
    9

    Re: conditional formatting, cell value > previous cell value (extended over range)

    I believe this will solve your problem:

    Apply Conditional Formatting on B1, with this formula : =AND(B1>A1,A1<>0)


    After that, Use Format Painter on B1 and Select for the entire column. I believe this helps.

  9. #9
    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, cell value > previous cell value (extended over range)

    You're welcome, glad we could help. / Graag gedaan, fijn dat wij u konden helpen.

    If that takes care of your original question, then please take a moment to mark the thread as Solved so others know there's an answer here (instructions are in my sig). Thanks.

+ 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 Formula Based on Text in Previous Cell
    By koricw in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2018, 09:02 AM
  2. [SOLVED] Conditional Formatting, 3 conditions, relative to the previous rows cell
    By rlubin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2016, 02:39 PM
  3. Conditional Formatting and Cell Referencing Previous Cell
    By xxluverxx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-22-2014, 11:14 AM
  4. Conditional formatting if cell value <> value of previous cell
    By VMS_Bhoy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-22-2014, 10:25 AM
  5. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  6. Conditional Formatting for previous cell change
    By no.18shirt in forum Excel General
    Replies: 14
    Last Post: 07-02-2013, 07:14 AM
  7. Replies: 3
    Last Post: 04-06-2011, 01:15 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