+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting to apply only on the last non blank cell in a column

  1. #1
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254

    Conditional formatting to apply only on the last non blank cell in a column

    Good day all,

    The attached file is my stock control register. In the balance section (the last section), I have inserted conditional formatting that highlights items that have fallen below reorder level. This is to enable me know when to ask for replenishment for each stock. In my formatting, the system keeps highlighting until new order is made. But what I actually want is for the highlight to apply only on the last non blank cell for any item that has fallen below reorder level. This means that whenever new entries are made, the highlight shifts to the new last non blank cell so that at every point in time, I will not have more than one highlighted cell in a column.

    Hope my explanation is clear enough.


    Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-24-2014
    Location
    La Puente, CA
    MS-Off Ver
    2014
    Posts
    7

    Re: Conditional formatting to apply only on the last non blank cell in a column

    Try having in your conditional formatting formula =And( , <>0)
    Example your AZ column: =AND($AZ4<=150,$AZ4<>0)

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Conditional formatting to apply only on the last non blank cell in a column

    Try making a New Rule for conditional formatting for the range starting from B4:BX152

    Please Login or Register  to view this content.
    This will highlight the last non empty cell in the column (even if it contains a zero).

    And if you want to exclude Zero's, try this

    Please Login or Register  to view this content.
    This formula will highlight the last cell in a column where it has a value greater than 0.
    Last edited by sktneer; 06-25-2014 at 01:32 AM.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254

    Re: Conditional formatting to apply only on the last non blank cell in a column

    Thanks for your contributions. But my challenges have not been addressed. Azien Heart's contribution like my attached file, highlights all the the cells that fall below reorder level. The only difference is the exclusion of the cells with "zero" value.

    Sktneer's contribution highlights the last cell in the column.

    What I actually want is a formular that will highlight the last cell that is less than or equal to the reorder level. This means that if there is replenishment in the succeeding cell, the highlight will disappear. In that way, there will not be more than one highlighted cell in a column.

    Below are the reorder levels for all the products.

    Reorder Levels

    Freshyo 1 lit (Plain) 150
    Freshyo 1 lit (S/B) 100
    Freshyo 500ml (S/B) 100
    Freshyo 500ml (Plain) 500
    Freshyo 150ml (Plain) 500
    Freshyo 150ml (Strawberry) 200
    Nature Fresh 1 Lit (Orange) 50
    Nature Fresh 1 Lit (Pineapple Coconut) 50

    Thanks once more for your responses as I also hope my last explanation will give you a clearer picture of what I want.


    Thank you.

  5. #5
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254

    Re: Conditional formatting to apply only on the last non blank cell in a column

    Please U still need help to resolve this.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Conditional formatting to apply only on the last non blank cell in a column

    To give you an idea, I have applied conditional formatting in the range AZ4:BE41. Notice a lookup table in col. CA:CB. If this conditional formatting suits your requirements, you will have to create few more lookup table in the same fashion and make the changes in the current formula to reference different lookup tables for the formatting of different columns. (Because in the sheet you have merged cells which are barrier in making only one lookup table which can be referenced to all the columns. I have used the following formula for the conditional formatting in the range AZ4:BE41
    Please Login or Register  to view this content.
    Does this help?
    Attached Files Attached Files

+ 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 formatting if in range of values: apply to column
    By marcopietro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2014, 02:34 PM
  2. VBA for Conditional Formatting - apply a colour based on conditions in each column.
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2013, 01:24 PM
  3. Replies: 5
    Last Post: 02-28-2012, 04:47 PM
  4. How to apply conditional formatting to a whole column
    By scottghansen79 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2010, 05:21 AM
  5. Apply conditional formatting to a cell when it is left BLANK
    By researchrach in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-30-2008, 10:59 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