+ Reply to Thread
Results 1 to 6 of 6

Conditionally format a range in Excel 2003?

  1. #1
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Conditionally format a range in Excel 2003?

    I'm using Excel 2003. Is there a way to conditionally format a row of cells based on a condition in one cell? I have a date, that when it passes, I want to color the whole row red for "expired" or "past due".

  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: Conditionally format a range in Excel 2003?

    Just highlight the whole range and use a static cell reference in the formula - something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit: If you want to be able to drag this down rows, leave the $ sign off the number ($A1). If you want to drag across columns, take the $ off the letter (A$1).

    Edit2: changed > to < in formula (d'oh!).
    Last edited by Aardigspook; 11-10-2016 at 07:48 AM. Reason: 1. Add option for dragging / 2. Correct > to <
    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
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Re: Conditionally format a range in Excel 2003?

    Thank you. That worked perfectly. Less than TODAY() for expiration.

  4. #4
    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: Conditionally format a range in Excel 2003?

    Quote Originally Posted by Carson Dyle View Post
    Less than TODAY()
    Doh! Oops, well-spotted, sorry!

    Thanks for the feedback. If that solves your problem, then please mark the thread as solved, so others know there's an answer here (instructions in my sig).

  5. #5
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Re: Conditionally format a range in Excel 2003?

    One additional thing I need to add. Sometimes I want to leave the expiration date blank. Doing so causes Excel to mark the row 'expired', so I guess the blank date evaluates as less than TODAY(). Also, as I'm entering an item that will have an expiration date, the row is marked as expired until I get to the column with the date and fill it in, which is a small annoyance.

    Can this be fixed in the formula?

    * Edit *

    I think I figured it out, but I know that dates can be tricky. Would this be the best way?

    =AND($F19<>"",$F19<TOD())
    Last edited by Carson Dyle; 11-09-2016 at 06:32 PM.

  6. #6
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Re: Conditionally format a range in Excel 2003?

    n/m. I think that works.
    Last edited by Carson Dyle; 11-09-2016 at 06:50 PM.

+ 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] VBA to conditionally format a range that includes blank cells
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2016, 04:16 PM
  2. VBA to Conditionally format date range on calendar
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2014, 04:44 PM
  3. Need help for macro to conditionally format a selected range
    By smusyaju in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2014, 04:44 PM
  4. [SOLVED] Conditionally Format Dynamic Range
    By hamidxa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2014, 12:43 PM
  5. Need help looping through multiple sheets to conditionally format the same range/sheet
    By xcelnovice101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2014, 10:54 AM
  6. Best Way to Conditionally Format Range (Multiple Columns and Rows)?
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-14-2013, 04:53 PM
  7. [SOLVED] Vba code to conditionally format a specific range
    By kelwood in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-29-2012, 10:14 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