ISEVEN Conditional Format Error

sbeatton

Active Member
Joined
May 19, 2004
Messages
411
I am experiencing a problem with Conditional Formatting. I am trying to format a Column based upon a cell value being even. When I make the conditional format, FORMULA IS = ISEVEN($A3), i am getting the error "You may not use references to other worksheets or workbooks for Conditional Formatting criteria"

Has anyone used ISEVEN in conditional formatting at all?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

sbeatton

Active Member
Joined
May 19, 2004
Messages
411
Thanks all.
Would you believe I also already use =MOD(ROW(),2) but had one of those moments.
 
Upvote 0

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
This is a good point! Non-resident functions will not work in CF. So because ISEVEN is from the Analysis ToolPak, CF can not use it. Likewise, CF can not use a UDF.

lenze
 
Upvote 0

Tom Urtis

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,283
Likewise, CF can not use a UDF.
Yes it can, example to CF cells with comments:

Public Function Test(rng As Range) As Boolean
Test = IIf(rng.Comment Is Nothing, 0, 1)
End Function


CF Formula is
=test(A1)
 
Upvote 0

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,427
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
You can also use add-in functions if you use them in a defined name and then use that defined name in the CF formula.
 
Upvote 0

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Yes it can, example to CF cells with comments:

Public Function Test(rng As Range) As Boolean
Test = IIf(rng.Comment Is Nothing, 0, 1)
End Function


CF Formula is
=test(A1)

Thanks Tom, I didn't know that. For some reason, I was under the impression they would not work!!

lenze
 
Upvote 0

Forum statistics

Threads
1,191,559
Messages
5,987,290
Members
440,089
Latest member
FahadSid

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
Top