View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.misc
Stefi Stefi is offline
external usenet poster
 
Posts: 2,646
Default Conditional formatting with IF statements

Sorry, I forgot to change ref A to D:
=AND(D1<0,NOT(ISERROR(MATCH(-D1,D:D,0))))
Stefi

€žStefi€ť ezt Ă*rta:

=AND(A1<0,NOT(ISERROR(MATCH(-A1,A:A,0))))
Stefi


€žEric D€ť ezt Ă*rta:

Thanks Stefi, this works great but is there a way for it to not highlight
cells that are blank?
--
Eric


"Stefi" wrote:

Select column D and crate Conditional formatting with this formula:
=NOT(ISERROR(MATCH(-D1,D:D,0)))

Regards,
Stefi

€žEric D€ť ezt Ă*rta:

Is there a way that I can use conditional formatting with an IF statement?

What I want to happen is, if in column D there appears a number that has an
opposite match (i.e. 500 and -500) that it highlights those. Is this
possible and if so, how?

Thanks
--
Eric