Hi,
I need code that will mark column "AN" as "Quote Required" if the dates between A - N are less then 12 years but more than 4 years, I have added an additional page showing the outcome in the example attached.
Many Thanks
Johnny
Hi,
I need code that will mark column "AN" as "Quote Required" if the dates between A - N are less then 12 years but more than 4 years, I have added an additional page showing the outcome in the example attached.
Many Thanks
Johnny
Hello Try this code
![]()
Please Login or Register to view this content.
< ----- Please click the little star * next to add reputation if my post helps you
Visit Forum : From Here
Why not a formula like this in AN2?
=IF(AND(YEAR(A2)-YEAR(N2)<12,YEAR(A2)-YEAR(N2)>4),"Quote Required","")
Teach me Excel VBA
Yes it is possible
Just try edit this line to add a line for that task
To![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Sorry just run across another problem - From time to time the date cells will contain " / / " is it possible to skip when this is the case?
May be
![]()
Please Login or Register to view this content.
For some reason it is picking up the " / /" is there code that will ignore if a date is not inputted?
May be before this line
You can add a condition of checking date using IsDate function![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks