Excel 2010-Now
Excel 2007
Excel 2003
Tips & Tricks
Excel Forum
Course Index CIG Excel Book
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Excel Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
format based on length in MS Excel 2007
Guy 

16 years ago
I want to set a conditional format based on the field length, in Excel 2007.


Answer from Richard Rost:

Good question. Here's what you do.

Let's assume you have your data in column A. You've got a list of names. You want to highlight just the names that are less than 6 characters in length.

Click on A1. Click on Conditional Formatting, New Rule, "Use formula to determine which cells to format."

In the formula box, type in:

=LEN(A1)<6

Set a format using the "Format…" button to whatever color you want. Click OK.

Now that format will apply only to cell A1, so you can use the FORMAT PAINTER to copy it down the entire column (click on the format painter, then click on the colujmn header).

Now if you want to add MORE formats (lets say another one for names over 10 characters) just follow the same steps again to add another rule.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Excel Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/18/2026 9:22:44 AM. PLT: 1s