Solved

Excel Conditional Statement Questionn

Posted on 2013-06-18
4
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

730 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