+ Reply to Thread
Results 1 to 5 of 5

How to change a color of cells depending on the data(format) present it it?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    5

    How to change a color of cells depending on the data(format) present it it?

    Hi All,,

    This is my second post in this forum and really need your help. Below is my problem..

    I need change the color of the cell depending on the following conditions. (By the way the column will have names list)
    1. single punctuations are allowed anywhere in name apart from first position.-->color should not change
    2. If any name got consecutive punctuations --> color should change to RED.
    3. Any punctuations apart from Dot(.), hyphen(-), apostrophe('), Space( ) are not allowed-->color should change to RED.

    Example-
    Shivakumara No Change
    Shiva kumara No Change
    Shiva'kumara No Change
    shiva.kumara No Change
    shiva kumara red
    shiva''kumara red
    shiva' kumara red
    shiva. Kumara red
    shiva.'kumara red
    shiva:kumara red

    Advance thanks for helping,
    Shiva

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to change a color of cells depending on the data(format) present it it?

    HI Shiva,

    Any punctuations apart from Dot(.), hyphen(-), apostrophe('), Space( ) are not allowed-->color should change to RED.
    shiva kumara red

    If space is allowed, then above one should not be Red.. please check. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    12-20-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: How to change a color of cells depending on the data(format) present it it?

    Hi Dilipandey,,

    First of all, Thanks for your response,
    Yes of-course space is allowed, But two consecutive spaces are not allowed. that the reason for
    shiva kumara red

    Do u have any code for this ..?


    Thanks,
    Shiva

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to change a color of cells depending on the data(format) present it it?

    Okay.. Using conditional formatting & with the help of search function, we can achieve the desired result - but before that I need to see what all punctuations can be used apart from Dot(.), hyphen(-), apostrophe('), Space( ) ?

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    12-20-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: How to change a color of cells depending on the data(format) present it it?

    Hi Dilipandey,,

    As of now there are no other punctuations are allowed. (But might change in future), It is more helpful if the code is easy to edit as we need .

    Thanks,
    Shivakumara

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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