+ Reply to Thread
Results 1 to 13 of 13

Highlight dates in column H if they are greater than column G by a certain number

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Highlight dates in column H if they are greater than column G by a certain number

    I need formatting to highlight the dates in Column H if they are a greater than a week or more from Column G. Tried some different ways of doing this with the conditional formatting but cannot get it to work yet

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Highlight dates in column H if they are greater than column G by a certain number

    Select the dates in column H, goto Conditional formatting...New Rule, select use a formula to determine..., enter this formula,

    =$H2>$G2+7

    format as required.

    Note, change 2 to the first row of the dates in column H.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Re: Highlight dates in column H if they are greater than column G by a certain number

    I want it to search through all of column H so would I use $H:H>$G:G+7?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Highlight dates in column H if they are greater than column G by a certain number

    No, you would select column H and change the 2 to a 1.

    Excel will increment the row in the formula just like it does when you copy a formula down.

  5. #5
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Highlight dates in column H if they are greater than column G by a certain number

    Quote Originally Posted by Norie View Post
    =$H2>$G2+7
    Not shure but I think b.b.b. meant "at least 7 days later", so:

    =$H2>=$G2+7
    When I say semicolon, u say comma!

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Highlight dates in column H if they are greater than column G by a certain number

    'greater than a week or more' sounds like more than a weeek/7 days to me.

  7. #7
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Highlight dates in column H if they are greater than column G by a certain number

    'greater than a week' would sound like that, but adding 'or more' to it suggests otherwise to me

    On the other hand, who am I to disagree with someone who réálly speaks English :P

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Highlight dates in column H if they are greater than column G by a certain number

    "On the other hand, who am I to disagree with someone who réálly speaks English :P"

    You obviously haven't been to Scotland!!
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  9. #9
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Highlight dates in column H if they are greater than column G by a certain number

    Hahahah :D

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Highlight dates in column H if they are greater than column G by a certain number

    (Sorry, Norie! )

  11. #11
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Re: Highlight dates in column H if they are greater than column G by a certain number

    Thanks guys. Think I got it sorted with the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    . Had to change the cell from H to M as M was the date I was supposed to be looking at.

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Highlight dates in column H if they are greater than column G by a certain number

    You could just change H2 to M2 in the formula I posted - no need for an If as long as the expression you use returns TRUE/FALSE.

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Highlight dates in column H if they are greater than column G by a certain number

    Another formula entered in Conditional Formatting that will give you the same results is:

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


    Select column H where you want the formatting applied then create the rule. If you want to change the range that the formatting is applied to, click on Conditional Formatting, Manage Rules. Click on Worksheet to show all the rules if the rule you want isn't showing when your first open Manage Rules. Select the rule that you want to modify, click in Applies To press F2 to enter editing mode and change the cell references using ABSOLUTE references.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. VBA to copy data from a column with number greater than zero...???
    By CarJon0767 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-12-2013, 10:57 PM
  2. [SOLVED] looking matching number within same column and highlight them
    By xzyrus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2013, 10:53 AM
  3. [SOLVED] How to copy a row from one sheet to another if the number a column D1 greater than 0
    By Gordon1 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-07-2012, 11:51 AM
  4. Replies: 5
    Last Post: 09-24-2012, 05:14 PM
  5. [SOLVED] How to count the number of times column B is greater than column A
    By scorpiogirl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-06-2012, 02:40 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