+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting no higher than 6

  1. #1
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Conditional formatting no higher than 6

    I want to format a cell to accept the numbers 1 to 6. If a higher number than 6 is entered I want it to return a 6
    Regards Troysie
    Last edited by troysie; 07-08-2011 at 01:42 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional formatting no higher than 6

    If you want to alter the physical value entered into a cell (ie 10 is changed to 6) then you will need to use VBA.

    If you want to alter the "appearance" of a value entered into a cell (ie 10 to display as 6) then you can use a Custom Number format to achieve this.

    If you want to restrict the users from entering any number > 6 in the first instance use Data Validation.

    Please clarify as to which of the above best fits your requirements and we will advise from there.

  3. #3
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Re: Conditional formatting no higher than 6

    what I need to do is record 2 values. I will have A1=B1,in A1 iwant to enter a value and it remain the same,but in B1 if the the value in A1 is more than 6 I want it to record six.Probably vba would be the best bet
    Regards Troysie

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional formatting no higher than 6

    So perhaps:

    Please Login or Register  to view this content.
    B1 will thus populate with the lesser of 6 and the value in A1.

  5. #5
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Re: Conditional formatting no higher than 6

    Thankyou
    Regards Troysie

+ 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