I have a sheet that in Column M it has Date Visited and then I have put in a formula that then adds 6 months to the date which is displayed in Column N.
Then I have a hidden two columns that works out the date and and from that date it has been RAG assessed, Red Amber Green.
- Column M is Date Visited
- Column N is Next Visited
- Column Q is the formula that tells you how many days over or under
- Column R is where based on Column Q if it is G, A , R (Green, Amber or Red)
I have this formula which list all the dates and removes any blank cells in column N
=IFERROR(INDEX(Sheet2!$N$3:$N$78, SMALL(IF(LEN(Sheet2!$N$3:$N$78)=0,"", ROW(Sheet2!$N$3:$N$78)-MIN(ROW(Sheet2!$N$3:$N$78))+1), ROW(Sheet2!N2))),"")
What I want is when the below formula is true then the above to be triggered but only for cells that have R in Column R
=IF (CNI!R3="R",SHEET2!N3,"")
Hope this makes sense.
I don't mind using VBA if it is easier to achieve