+ Reply to Thread
Results 1 to 4 of 4

Conditionak Formating based on the previous cell the current cell value shuld b white

  1. #1
    Registered User
    Join Date
    05-10-2010
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    34

    Question Conditionak Formating based on the previous cell the current cell value shuld b white

    hi

    I have a small problem.Can anybody please help me.

    Please see the attachement to follow the problem.

    Here for example in column D4,the entries are NST and STD

    1)So i want it such that if first cell is NST, and 2nd cell is also NST and so on then the current cell(NST) which is same as the previous cell value
    should be colored in WHITE using only Conditional Formatting and No macros.

    So in the output(2nd screenshot) the 1st cell is NST and all other cells below that are in WHITE as it is same to its previous cell value hence they are in white.


    2)Similarly I want it such that if first cell is STD, and 2nd cell is also STd and so on then the current cell(STd) which is same as the previous cell
    should be colored in WHITE using only Conditional Formatting and No macros.

    So in the output the 1st cell is STD and all other cells below that are in WHITE as it is same to its previous cell value hence they are in WHITE.

    The Conditional Formatting for NST and STD cases should be dynamic,should be applied for whole(entire) column.


    Thank You.
    Attached Files Attached Files
    Last edited by Deepthik; 11-17-2010 at 04:28 AM. Reason: spelling mistake

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Conditionak Formating based on the previous cell the current cell value shuld b w

    CONDITIONS
    1. there is not gap in column C from row no. 2 down and therefore the macro will be dynamic ( as many rows as you need)
    2. copy main data in sheet 1 to some other sheet and save the file. preferably save the file somewhere else so that it can be retrieved if there is a mess up
    3. no change in configuration except for additional rows.


    now try this macro

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Conditionak Formating based on the previous cell the current cell value shuld b w

    Hello Deepthik
    Please find the attached, you will have to set the range to suit.
    Regards
    Peter
    P.S. No macros
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-10-2010
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Conditionak Formating based on the previous cell the current cell value shuld b w

    thank you so much for all the help.

+ 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