Solved

Excel Conditional Statement Questionn

Posted on 2013-06-18
4
304 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 81

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

929 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

17 Experts available now in Live!

Get 1:1 Help Now