Solved

Excel Conditional Statement Questionn

Posted on 2013-06-18
4
295 Views
Last Modified: 2013-06-24
I am trying to write a conditional statement that will highlight a cell in the following scenario:

Let's say cell A1 says CYDCOR BEST BUY HSP and cell B1 says Store: CYDCOR CALL CENTER - BEST BUY, cell A2 says CYDCOR BEST BUY HSP and cell B2 says StOre: CYDCOR CALL CENTER - COSTCO.  I need the conditional statement to highlight cell B2 because it says CYDCOR CALL CENTER - COSTCO, not CYDCOR CALL CENTER - BEST BUY.
testjimmy.xlsx
0
Comment
Question by:JamesDBuskirk
4 Comments
 
LVL 12

Expert Comment

by:duttcom
ID: 39258170
You can do this by creating a new conditional formatting rule, choose "format only cells that contain", then in the dropdown at the bottom choose "Specific Text", then "not containing" in the next dropdown and then BEST BUY (with no double quotes). Set the format to whatever you want and only the sells not containing BEST BUY will be highlighted.

Conditional Format rule
0
 
LVL 80

Accepted Solution

by:
byundt earned 500 total points
ID: 39258211
There isn't enough sample data to be sure, but...

Assuming that HSP can safely be ignored, you might consider a "formula is" criteria like:
=COUNTIF(B1,"*" & SUBSTITUTE(LEFT(A1,LEN(A1)-4)," ","*") & "*")=0

With the preceding formula, each of the words in cell A1 (except for HSP) should be present in cell B1, and in the same order. If not, then trigger the conditional formatting.
0
 
LVL 10

Expert Comment

by:GasperK
ID: 39258557
I would go with

=RIGHT($A1,1)<>RIGHT($B1,1)

sample
Hope it helps
0
 

Author Closing Comment

by:JamesDBuskirk
ID: 39272799
Thank you all for your help and suggestions, this worked perfectly.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Outlook Free & Paid Tools
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now