Reference Date with Or Function

  • Thread starter Thread starter rac
  • Start date Start date
R

rac

I'm trying to use an Or() function to reference a cell which is formated
as a date. I get an error every time I try.

If(OR(A2={B2,B6}),"text","")

A2, B2 and B6 are all dates.


rac
 
=IF(OR(A2=B2,A2=B6)),"text","")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| I'm trying to use an Or() function to reference a cell which is formated
| as a date. I get an error every time I try.
|
| If(OR(A2={B2,B6}),"text","")
|
| A2, B2 and B6 are all dates.
|
|
| rac
 
You have a correct formula. All you have to commit ctrl+shift+enter (not just
enter)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top