+ Reply to Thread
Results 1 to 12 of 12

Conditional Formatting to be applied to Cells in a Column

  1. #1
    Registered User
    Join Date
    01-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Smile Conditional Formatting to be applied to Cells in a Column

    Hello Guys,

    It the Appraisal Time again and as usual its the only time when HR is seen as working in the Office...

    However, I want to customise the table in such a way that there are no other values apart from the ones that I have already chosen that get entered.
    For Ex. I have already customised the Grades Column in the Excel Sheet using Data Validating Tool and a specified list from (M01 - M08). Hence if the user tries to enter any other value, it will flash an error saying... choose values from M01 to M08. Similarly a table has been worked out for the Rolls too.

    I have an issue now. The Employee Number in the system is a standard five digit code. The text length has to be five characters.
    For Ex. If an employee's number is 1, it has be to represented as "00001". Similarly if the employees number is 9999, it should be represented as "09999".

    Now I have tried a couple of things but they do not seem to get the desired results.

    My question is whether Data Validation Technique will do the job or do I have to use something else?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Formatting to be applied to Cells in a Column

    I suggest you make those cells text cells, and then apply DV to them such that len(a1)=5
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Conditional Formatting to be applied to Cells in a Column

    Just give me a minute. Let me check and revert.

    -----

    That has worked very well.
    It was exactly what I was looking for.

    Thanks - Dibbins Sir
    Last edited by nahhush; 02-02-2015 at 02:25 AM.

  4. #4
    Registered User
    Join Date
    01-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Conditional Formatting to be applied to Cells in a Column

    Could I bother you again for a similar query...

    The date format, if it too has to be specified in a similar format.
    Example the US follows MM / DD / YYYY, where as we follow DD / MMM / YYYY.

    Now what happens is certain people who are unaware end up using either this / that format which creates confusion. Hence can a similar formatting what we achieved for the employee number be done to the entire column to achieve DD MMM YYYY. For Ex. my DOJ (Date of Joining) is 01 April 2001. So the Representation is DOJ column should show 01-Apr-2001.

    Thanks.

  5. #5
    Registered User
    Join Date
    01-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Conditional Formatting to be applied to Cells in a Column

    Dibbins Sir, could you please help me out with this?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Formatting to be applied to Cells in a Column

    a date is just a number representing the number of days passed since 1/1/900...and then formated in a way that we recognise as a date

    So if you format the date cells AS date, the user should see, when they enter the date, if it is correct or not?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Formatting to be applied to Cells in a Column

    a date is just a number representing the number of days passed since 1/1/900...and then formated in a way that we recognise as a date

    So if you format the date cells AS date, the user should see, when they enter the date, if it is correct or not?

  8. #8
    Registered User
    Join Date
    01-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Conditional Formatting to be applied to Cells in a Column

    Good Morning,

    Hi, I agree the date what we see in the cell is only a number. It is then changed to visually appear as a date. Either formats.

    Now, you are of the opinion that I should actually format a cell as a Date.
    Let me give it a go and we'll see if it works.

    What I am trying to do here is to give it a range as well as format it. The format is not so relevant but the data validation (range very much is)

    However, i tried to use data validation and it did not work.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Formatting to be applied to Cells in a Column

    I suppose that you could use something like this...
    A
    B
    2
    1/1/2015
    12/31/2015
    3
    42005
    42369

    A3 and B3 are the actual numeric values for the dates above them, so you could set DV to only accept values between those 2 values?

  10. #10
    Registered User
    Join Date
    01-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Conditional Formatting to be applied to Cells in a Column

    I tried to do the same. In the Data Validation option in had selected the starting date as 01 April 1971 & the end date as 10 October 2014. However, it still continued to accept dates prior to 01 April 1971.

    I am sure I must have fumbled up somewhere.

    Anyways, let me give it a try once again.

    Thanks again Sir.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Formatting to be applied to Cells in a Column

    C
    D
    2
    4/1/1971
    10/10/2014
    3
    26024
    41922
    4
    5
    "=and(A1>=26024,A1<=41922)

  12. #12
    Registered User
    Join Date
    01-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Conditional Formatting to be applied to Cells in a Column

    Ok...

    Great. Let me try that.

+ 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] Conditional Formatting To Reference a String in a Column and Applied to another Column
    By ABC2014 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-21-2014, 08:25 PM
  2. [SOLVED] Highlight cells that have conditional formatting applied to them....
    By Thistledown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2012, 09:09 AM
  3. Replies: 3
    Last Post: 06-30-2009, 10:27 AM
  4. can conditional formatting be applied in more then three instance
    By Mary jane in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-21-2005, 12:10 AM
  5. Replies: 3
    Last Post: 02-21-2005, 10:06 AM

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