vba - Multiple conditions for excel conditional formatting, with duplicates -


i'm bit of excel newbie, (i program in r, need in excel), , i'm having bit of trouble figuring out how program conditional format in excel.

currently, i'm looking conditional format based on 2 conditions.

  1. duplicates in column a

and

  1. for these duplicates, highlight dates in column b occur within 30 days /1 month of eachother

eg:

column    column b 1           30-nov-15  1           2-dec-15  2           4-jan-16 3           2-feb-16     2           30-jun-16  

i want first 2 rows highlighted.

i know how conditional format using dropdown menu duplicates.and know can use formula see if months within range:

countif((year(cell1)-year(cell2))*12+month(cell1)-month(cell2) < 1) 

but i'm not sure how put together! need use , statement?

any appreciated :)

thanks!


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -