+ Reply to Thread
Results 1 to 10 of 10

Highlight the cell based on the specific condition

  1. #1
    Registered User
    Join Date
    11-08-2010
    Location
    PUNE, INDIA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Highlight the cell based on the specific condition

    Hi

    plz help me out in resolving following issues in the attached excel sheet (Highlight cell) here....

    1. If column 'C' has more then three bytes then it should be highlighted in red colour.
    2. If any ROW doesn't have any value at all then it should not be highlighted mens leave it.
    3. Apart from that if you find any othet empty cell it shold be highlighted.

    I have right a macro but it also highlight the blank row and not able to perform issue no.1
    I want the output sheet as i have edited in the attachement and it should be applied to whole sheets in a worksheet.E.G.for sheet1---"Cards - Special Handling_ORG' & Sheet 2 'NonCards - Special Handling_ORG"
    Attached Files Attached Files
    Last edited by shaan65; 11-25-2010 at 02:05 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Highlight the cell based on the specific condition

    Hi shaan65

    This code is in the attached. It appears to do as you requested.
    Please Login or Register  to view this content.
    Let me know of issues.

    John

    PS: I should have asked how many sheets against which you need to apply this procedure . If it's more that these two sheets then the approach will change a bit. Let me know.
    Attached Files Attached Files
    Last edited by jaslake; 11-24-2010 at 06:28 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    11-08-2010
    Location
    PUNE, INDIA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Highlight the cell based on the specific condition

    Thanks for your quick reply brother,
    But i have one more issue that is according to your code Column 'C' text has been shaded in red colour but i want only text which is of 4 bytes in column 'C' should be highlighted in red colur not the whole cell.

    So could you please modified the tag as per my requirment.
    Please reply me shoon as i have to finish this assignment by today.
    Plz help me.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Highlight the cell based on the specific condition

    Hi shaan65

    I'm not certain I understand. If column C has "S35C" are you saying the "C" should be in red font and the rest of the cell in black font?

    John

  5. #5
    Registered User
    Join Date
    11-08-2010
    Location
    PUNE, INDIA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Highlight the cell based on the specific condition

    yeah it should be in "RED and BOLD" font.

  6. #6
    Registered User
    Join Date
    11-08-2010
    Location
    PUNE, INDIA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Highlight the cell based on the specific condition

    Hi Jaslake,

    I mean the whole 'S35C' should be in "RED & BOLD" font.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Highlight the cell based on the specific condition

    Hi shaan65

    I've gotta tell you, I'm color blind. If I understand your request, with this code, if Column C has more than 3 characters, all characters are in Bold Font in the Color of Red (as near as I can tell). Is this what you're looking for?
    Please Login or Register  to view this content.
    John

  8. #8
    Registered User
    Join Date
    11-08-2010
    Location
    PUNE, INDIA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Highlight the cell based on the specific condition

    Thanks brother this is exactly what m looking for and plz dont be rode its my heatly request.

    Many many thanks for solving the issues.You are really the GEM for me
    THANKS once again.

  9. #9
    Registered User
    Join Date
    11-08-2010
    Location
    PUNE, INDIA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Highlight the cell based on the specific condition

    Excellent code

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Highlight the cell based on the specific condition

    Hi shaan65

    Glad to be of help. If your issue is solved, please mark your thread as such.

    To mark your thread solved do the following:
    - Go to your first post on the thread
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

    A click on the scales is always appreciated.

    John

+ 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