+ Reply to Thread
Results 1 to 4 of 4

Conditionally format all rows until the last row.

  1. #1
    Registered User
    Join Date
    10-29-2014
    Location
    Uk
    MS-Off Ver
    2007 and 2013
    Posts
    16

    Conditionally format all rows until the last row.

    Hi all.
    I was hoping for a little help as I am trying to set up conditional formatting so highlighting applied my range (H2:Ox) where x is the last row with content in column H.
    Some googling led me to the following:
    Defined name LastRw = MATCH(9.9E+307,$A:$A).
    As such I think my range is =INDIRECT("$H$2:"&("$H"&"$"&(ROW()=LastRw)))
    My issue is I have no idea how I would go around setting this up so that every row is highlighted, not just the last one. If it helps the formula for highlighting the last row is =ROW()=LastRw and that certainly works.
    Any help you could give me would be great
    Thanks
    Ben

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Conditionally format all rows until the last row.

    Maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-29-2014
    Location
    Uk
    MS-Off Ver
    2007 and 2013
    Posts
    16

    Re: Conditionally format all rows until the last row.

    You are fantastic and I am embarrassed.
    Could you quickly explain how that works? Its been a long day and I cannot wrap my head around it.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Conditionally format all rows until the last row.

    You're welcome.

    It is just saying current row (ROW()) is less than or equal to the last row (LastRw).



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] conditionally format alternate rows every time the unique label changes In column B
    By jimcuk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-15-2016, 08:42 AM
  2. Replies: 1
    Last Post: 07-03-2014, 06:33 AM
  3. [SOLVED] Excel - combine rows with previous rows - conditionally
    By sbabu16 in forum Excel General
    Replies: 7
    Last Post: 01-16-2014, 03:30 AM
  4. 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
  5. Format Conditionally with VBA
    By pilotwings64 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2012, 05:09 PM
  6. Merging rows of data and insertin rows conditionally
    By classixuk in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-28-2010, 07:02 PM
  7. Trying to conditionally format
    By Speedbird1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2008, 10:17 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