Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.

Highlight cells that begin with

In excel, it is possible to highlight cells that begin with a certain text using conditional formatting and a formula that returns TRUE when cell starts with the text as specified. To learn how to highlight cells that begin with a particular text in excel, read this illustrative post to the end.

Figure 1: How to highlight cells that begin with a given text string

General syntax of the formula

=SEARCH (“substring”, A1)=1

Understanding the formula

When a formula is used to apply a given conditional format, that formula is first evaluated based on the active cell in your selection. This is the case when you are creating the rule. In our case above, the rule we create shall be evaluated for each of the cells in the range A2:B7. A2 will then change to reflect the address of the cell being evaluated each time because it is entered as a relative address.

  • In this example, we want to highlight cells that begin with “Je”. To do this, we simply need to highlight the cells and apply conditional formatting.
  • In the formula bar, we enter the formula to be used as a rule, which is =SEARCH(“Je”,A2)=1
  • We then press Enter to highlight those cells that begin with “Je”

Example

Figure 2: Example of how to highlight cells that begin with “Je”

Note that you can also use excel built-in presets to highlight those cells that begin with a particular text string. To do this, you simply need to select the range where your data is, then click on “Conditional formatting”. After that, you will have to specify the text string that will define your rule.

This formula utilizes the SEARCH function in order to match cells that begin with your specific text string. If the text string is found, the formula will return a number. If not found, it will return a #VALUE! Error.

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Are you still looking for help with Conditional Formatting? View our comprehensive round-up of Conditional Formatting tutorials here.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Solution examples
I need to count number of dates from a timestamped date in column from the completed date column to show the number of days. I have not successfully been able to do this. I am a novice Excel user. Can you help?
Solved by O. B. in 15 mins
I want to be able to alter the appearance (font color and fill) of a column of numbers using conditional formatting, based on being greater than or less than the numbers from another column. I am using Excel 2016. I am unable to get any formula to work. Please help!
Solved by I. J. in 59 mins
I need assistance with an excel formula. I have a 12 month sheet that has a summary page on the 13 page. the monthly totals changes so on the summary page I want to sum the difference - eg. if Jan total is 1500, feb total is 1000, mar total is 800, I want the summary page to show the current amount of 800 when you place the formula to capture all months---showing the diminishing value rather than the sum of all the pages
Solved by E. L. in 60 mins
I need a formula that has these 2 rules. If letter was rec'd between 1st and 15th = 1st of the month following letter rec'd date. If letter was rec'd between 16thst and end of the month= 1st of the 2nd month following letter rec'd date.
Solved by V. F. in 20 mins
I need a range of numbers to become the number in the next column
Solved by D. F. in 47 mins

Leave a Comment

avatar

Subscribe to Excelchat.co

Get updates on helpful Excel topics

Subscribe to Excelchat.co

Did this post not answer your question?
Get a solution from connecting with the expert

Another blog reader asked this question today on Excelchat:

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
Macy's
The Allstate Corporation
United Parcel Service
Dell Inc