Conditional formatting error

beedistinct

Board Regular
Joined
Jun 24, 2011
Messages
62
This formula works when I use it in the cell. Why is it not working as a conditional formatting rule ? It complains when I intoduce the VLOOKUP.

Code:
=AND(IF($C$4="Day",$F7<=I$2,$F7<=I$2+6),$G7>=I$2,VLOOKUP($H7,ResourceTable,2,FALSE)="Programmer")
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
IF($C$4="Day",$F7<=I$2,$F7<=I$2+6)
what is this supposed to be doing?
should if be OR?
or($C$4="Day",$F7<=I$2,$F7<=I$2+6)
 
Upvote 0
What's the 'complaint'?

A dialog box pops-up saying "The formula you typed contains an error".

Am trying to create a Gantt chart and vary the color by the resource type like programmer. The Team table (called ResourceTable) has 2 columns the first one has name and second column has the resource type.

This is what I'm looking up.
 
Upvote 0
Thanks, Everyone! The issue is resolved.

The REsourceTAble was a table and not a Name. I guess excel does not accept table names in Conditional formatting. When I used a Name (named range), it worked!
 
Upvote 0
Never tried using a table reference in conditional formatting.

Aren't they usually enclosed in []?

Perhaps if you use [ResourceTable] it will work.:)
 
Upvote 0

Forum statistics

Threads
1,224,508
Messages
6,179,188
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top