Conditional Formatting Based on Multiple Variables - Formula Failing to Register

schaha

New Member
Joined
Jun 8, 2016
Messages
5
Hello,

I have been working in a spreadsheet with a really large data set and i need to identify a set based on 2 variables - not date related. Everything I have seen so far has a date in it and I have tried to copy those formulas, but get the error that says, "are you trying to create a formula?" Excel seems to see the =and then not recognize my input.

I tried to use a formula copying this:
=IF(AND(B1="NO",R1=>TODAY()+10))

and I tried to translate it to the following, which does NOT work:
=IF(AND(B1="E",R1=>"47500"))

Can anyone help me figure out what is wrong with my formula? Basically is the value in B is E and the value in R is below 47500, I need it to show me.

Thank you!!
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,750
Hi
Welcome to the board

THe syntax of IF() is

=IF(condition, value case TRUE, value case FALSE)

in your case you just have

=IF(condition)

which is a syntax error.

In this case, I think you don't need the IF(), just use

=AND( ... )
 

schaha

New Member
Joined
Jun 8, 2016
Messages
5
I just tried it - still getting the same message:

"We found a problem with your formula. Try inserting a function on the formulas tab or click help..."

What do you think?
 

schaha

New Member
Joined
Jun 8, 2016
Messages
5
Thanks I will try that!
 

schaha

New Member
Joined
Jun 8, 2016
Messages
5
So i tried =AND(N:N="E",O:O>="47500")) and I get the same error... am I misunderstanding what it should be written as? Sorry and thanks for your help.
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,750
This is a simple example that I just tried.

I want the cell A3 to be painted in red if the cell N3 (a text) is equal to "E" and the cell O3 (a date) is bigger or equal to today's date + 10

In A3, in the conditional formatting formula I used:

=AND(N3="E",O3>=TODAY()+10)


Does this example help?
 

schaha

New Member
Joined
Jun 8, 2016
Messages
5
So that is the example I found and originally tried to copy for my formula. I was trying to format the column of N, and then I thought maybe it wasn't recognizing it because it was in that column and there was a condition there, but even if i select column A and copy that formula basically to format with the formula =AND(N3="E",O3>="47500"), excel still errors out and doesn't recognize the formula.. not sure what to do at this point..

thanks for your help with all this though.

This is a simple example that I just tried.

I want the cell A3 to be painted in red if the cell N3 (a text) is equal to "E" and the cell O3 (a date) is bigger or equal to today's date + 10

In A3, in the conditional formatting formula I used:

=AND(N3="E",O3>=TODAY()+10)


Does this example help?
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,750
Hi

1 - I selected A3:A20, used in the coditional formatting the formula that I posted before and all the cells A3:A20 assumed the format OK

2 - Do you have the English installation of excel? in some countries you separate the function parameters with a semicolon ";" instead of a comma ","

Also you should use:

=AND(N3="E",O3>=47500)

not "47500", you don't want to compare a text, you want to compare a number.
 
Last edited:

Forum statistics

Threads
1,082,128
Messages
5,363,325
Members
400,725
Latest member
excelingtolearn

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top