?
Solved

conditional formatting formula error

Posted on 2016-11-15
4
Medium Priority
?
56 Views
Last Modified: 2016-11-15
Hi Experts using excel 2010

I have the following formula applying to cell U4

=And(X4<>"",Y4="C")
In cell X4 I have a date in the format 12/04/16 and cell Y4 text C..

Cannot get the CF to work.
0
Comment
Question by:route217
[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
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Missus Miss_Sellaneus earned 2000 total points
ID: 41888229
Is it giving you an error? What are the data types for X4 and Y4?

Break it down. Put =X4<>"" in one free call and =Y4="C" in another free cell. What are the results?
0
 

Author Comment

by:route217
ID: 41888244
Solved
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41888251
If you copy the whole formula into a spare cell, the result has to be TRUE for the CF to work.

I suspect the issue is with cell Y4, if the cell has "C" and leading or trailing spaces comparing to just "C" will give False result.

If X4 contains anything, date or other value, checking against <>"" will give TRUE.
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41888276
Out of interest, and completeness for the thread, what was the issue in the end?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

777 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