+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting formula

  1. #1
    Registered User
    Join Date
    09-29-2009
    Location
    York, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Conditional formatting formula

    I am trying to apply conditional formatting to a cell, using a reference to another sheet. I believe this can be done using named ranges or the indirect function.

    My named range is current_date which is in sheet: dates B3. I want to compare this to another date in the same tab i.e. dates A3.

    I have entered the following into the conditional formatting formula:

    =("'current_date'">indirect("'dates'!a3") and am getting a message that I am missing a parenthesis.

    The reason I am using indirect is because I cannot name the range in a3 because it starts at 01/01/2009 and goes down to 2017.

    Can anyone suggest a solution?

    Thanks

  2. #2
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: Conditional formatting formula

    Have you put 'Formula Is' in the drop down box and take off the '=' sign

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional formatting formula

    your formula
    Please Login or Register  to view this content.
    has a few issues.
    First, and what Excel caught, is you do not need that first ( before "'current_date'".
    Secondly, you shouldn't need any of those single or double quotes, remove them.
    Unfortunately, Excel will not let you use references to other sheets even using the INDIRECT function so you will still get an error.

    So what you are saying in your post is that the range you want to refer to is not a single cell but a series of cells starting in dates!A3 to dates!A2000 or so? I'll try a few things to see if I can figure this out. Hopefully a mod will come along and help.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    09-29-2009
    Location
    York, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Conditional formatting formula

    Thanks for your help.

    I have a list of dates in the dates sheet i.e.

    A B
    Future Date Current Date

    25/01/2009 30/10/2009
    25/02/2009
    25/03/2009
    25/04/2009
    25/05/2009
    25/06/2009
    25/07/2009
    25/08/2009
    25/09/2009
    25/10/2009
    25/11/2009
    25/12/2009
    25/01/2010
    25/02/2010

    With the conditional formatting, if the current date is greater than say call A8 (25/06/2009) I want the cell to turn red. The next cell will refer to A9 etc. I am trying to do this in a different sheet.

+ 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