+ Reply to Thread
Results 1 to 6 of 6

Conditional format row if column F is not blank?

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Conditional format row if column F is not blank?

    Hello,

    I have a sheet with 6 columns, where I want the row to have strike through if the cell in column F is NOT blank. I have searched and not yet found a way that seems to work for this. If it matters, column F will be holding a date. Any help would be much appreciated.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional format row if column F is not blank?

    The TRUE/FALSE formula for row 2 could be:

    =LEN($F2)>0
    Last edited by JBeaucaire; 09-22-2015 at 03:25 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    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 format row if column F is not blank?

    Select the entire range you want this to apply to, then go to Conditional Formatting and select 'New Rule' then 'Use a formula to determine which cells to format'.
    Enter either (not both) of these formulae:
    =$F1<>""
    =LEN($F1)>0

    assuming that you want this to start on row one.
    (The second formula is Beaucaire's from above, but with the absolute column reference $F instead of just F).
    Click 'Format' then click the 'Strikethrough' box (it will start with a green square in it - you need it to have a tick/check in it).
    Click OK twice and that should work.
    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.

  4. #4
    Registered User
    Join Date
    03-08-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional format row if column F is not blank?

    Quote Originally Posted by Aardigspook View Post
    Select the entire range you want this to apply to, then go to Conditional Formatting and select 'New Rule' then 'Use a formula to determine which cells to format'.
    Enter either (not both) of these formulae:
    =$F1<>""
    =LEN($F1)>0

    assuming that you want this to start on row one.
    (The second formula is Beaucaire's from above, but with the absolute column reference $F instead of just F).
    Click 'Format' then click the 'Strikethrough' box (it will start with a green square in it - you need it to have a tick/check in it).
    Click OK twice and that should work.

    Thanks a million! This worked just great. I assume that using the 1st formula is just ensuring the value is NOT equal to NULL basically?

  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 format row if column F is not blank?

    You're welcome and thanks for the rep.
    Yes, <> means 'not equal to' so <>"" is 'not equal to null'.
    The second formula (Beaucaire's) checks the length of what's in F1, so 'length of F1 greater than 0'.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional format row if column F is not blank?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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 format between first and last non-blank cells
    By rameshvpp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-07-2019, 12:01 PM
  2. [SOLVED] Conditional format where value is 0 (but not for a blank cell)
    By pat brown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-01-2013, 07:55 AM
  3. [SOLVED] Conditional format formula for highlighting a column that is blank
    By Trinity29_09 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-16-2012, 09:00 PM
  4. [SOLVED] conditional format a blank cell
    By allgeef in forum Excel General
    Replies: 5
    Last Post: 08-11-2012, 02:31 PM
  5. Replies: 3
    Last Post: 08-18-2011, 02:20 PM
  6. Conditional Format if cell is other than blank
    By Jogier505 in forum Excel General
    Replies: 5
    Last Post: 03-07-2010, 06:59 PM
  7. [SOLVED] Conditional format -blank
    By Simon Smith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2006, 02:20 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